Skip to content

GitHubOAuthProvider

Defined in: packages/auth/src/oauth/github.provider.ts:37

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

new GitHubOAuthProvider(credentials, http): GitHubOAuthProvider

Defined in: packages/auth/src/oauth/github.provider.ts:40

OAuthProviderCredentials

OAuthHttpClient

GitHubOAuthProvider

readonly name: "github"

Defined in: packages/auth/src/oauth/github.provider.ts:38

OAuthProvider.name

exchangeCodeForProfile(params): Promise<OAuthUserProfile>

Defined in: packages/auth/src/oauth/github.provider.ts:56

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

ExchangeCodeParams

Promise<OAuthUserProfile>

OAuthProvider.exchangeCodeForProfile


getAuthorizationUrl(params): string

Defined in: packages/auth/src/oauth/github.provider.ts:45

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

AuthorizationUrlParams

string

OAuthProvider.getAuthorizationUrl