Skip to content

GoogleOAuthProvider

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

An OAuth 2.0 authorization-code provider that can build a login redirect and turn a returned code into a normalised OAuthUserProfile.

new GoogleOAuthProvider(credentials, http): GoogleOAuthProvider

Defined in: packages/auth/src/oauth/google.provider.ts:31

OAuthProviderCredentials

OAuthHttpClient

GoogleOAuthProvider

readonly name: "google"

Defined in: packages/auth/src/oauth/google.provider.ts:29

OAuthProvider.name

exchangeCodeForProfile(params): Promise<OAuthUserProfile>

Defined in: packages/auth/src/oauth/google.provider.ts:49

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

ExchangeCodeParams

Promise<OAuthUserProfile>

OAuthProvider.exchangeCodeForProfile


getAuthorizationUrl(params): string

Defined in: packages/auth/src/oauth/google.provider.ts:36

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

AuthorizationUrlParams

string

OAuthProvider.getAuthorizationUrl