OAuthProvider
Defined in: packages/auth/src/oauth/oauth-provider.ts:27
An OAuth 2.0 authorization-code provider that can build a login redirect and
turn a returned code into a normalised OAuthUserProfile.
Properties
Section titled “Properties”
readonlyname:OAuthProviderName
Defined in: packages/auth/src/oauth/oauth-provider.ts:28
Methods
Section titled “Methods”exchangeCodeForProfile()
Section titled “exchangeCodeForProfile()”exchangeCodeForProfile(
params):Promise<OAuthUserProfile>
Defined in: packages/auth/src/oauth/oauth-provider.ts:32
Exchange an authorization code for the authenticated user’s profile.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<OAuthUserProfile>
getAuthorizationUrl()
Section titled “getAuthorizationUrl()”getAuthorizationUrl(
params):string
Defined in: packages/auth/src/oauth/oauth-provider.ts:30
Build the URL to redirect the user-agent to for consent.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”string