/** *
( options: OAuthUserConfig
& { connection?: string } ): OAuthConfig
{ const { issuer = "https://api.workos.com/", connection = "" } = options const connectionParams = new URLSearchParams({ connection }) return { id: "workos", name: "WorkOS", type: "oauth", authorization: `${issuer}sso/authorize?${connectionParams}`, token: `${issuer}sso/token`, client: { token_endpoint_auth_method: "client_secret_post", }, userinfo: `${issuer}sso/profile`, profile(profile) { return { id: profile.id, name: `${profile.first_name} ${profile.last_name}`, email: profile.email, image: profile.raw_attributes.picture ?? null, } }, style: { bg: "#6363f1", text: "#fff" }, options, } }