Skip to content

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.

readonly name: OAuthProviderName

Defined in: packages/auth/src/oauth/oauth-provider.ts:28

exchangeCodeForProfile(params): Promise<OAuthUserProfile>

Defined in: packages/auth/src/oauth/oauth-provider.ts:32

Exchange an authorization code for the authenticated user’s profile.

ExchangeCodeParams

Promise<OAuthUserProfile>


getAuthorizationUrl(params): string

Defined in: packages/auth/src/oauth/oauth-provider.ts:30

Build the URL to redirect the user-agent to for consent.

AuthorizationUrlParams

string