/** *
( config: OAuthUserConfig
& { apiBaseUrl?: string } ): OAuthConfig
{ const apiBaseUrl = config?.apiBaseUrl ?? "https://webexapis.com/v1" return { id: "webex", name: "Webex", type: "oauth", authorization: { url: `${apiBaseUrl}/authorize`, params: { scope: "spark:kms spark:people_read" }, }, token: `${apiBaseUrl}/access_token`, userinfo: `${apiBaseUrl}/people/me`, profile(profile) { return { id: profile.id, email: profile.emails[0], name: profile.displayName, image: profile.avatar, } }, options: config, } }