Optionalparams: AuthParametersProtected_Protected_Protected_Protected_Protected_StaticUserThe User class reference to be used by the adapter.
Custom GitHub API call to check repository existence.
Custom GitHub API call to create a repository.
Deletes a user account from the auth store.
Target user entity.
Promise resolving to true.
Exchanges the temporary authorization code for an access token packet.
The temporary auth code.
OptionalredirectUri: stringOptional redirect URL context.
Access token payload.
Returns the authorization redirect URL.
OptionalredirectUri: stringThe callback URL.
Optionalscopes: string[]The requested authorization scopes.
Optionalstate: stringThe state parameters for CSRF protection.
The generated authorization URL.
Returns user details from GitHub by validating the access token.
Returns the pluggable API routes builder.
Retrieves a configuration parameter.
The parameter key to fetch.
The corresponding configuration value.
Express middleware capturing Bearer JWT tokens to execute auth verification.
The middleware function.
Initiates password recovery/reset process for a user.
The user email.
OptionalredirectTo: stringOptional redirect destination.
Refreshes an expired access token using a refresh token string.
Target refresh token.
Throws an error if refresh token logic is not implemented by the provider.
Registers a new user account (unsupported for OAuth adapters).
Target user entity.
OptionalclearPassword: stringOptional cleartext password.
Throws an error indicating registration is unsupported.
Revokes the access token (noop default).
Target token to revoke.
Inject custom claims (not supported by default).
Target user ID.
Payload claims.
Assigns a configuration parameter for the adapter.
The parameter key.
The parameter value.
Signs out the specified user session.
Target user entity.
Promise resolving to true.
Performs user signup with credentials (unsupported for OAuth adapters).
Login identifier string.
Password string.
Throws an error indicating signup should use exchangeCodeForToken.
Updates user profile attributes in the auth store.
Target user entity.
Attributes payload to update.
Promise resolving to true.
StaticfactoryFactory method to create a new instance from config credentials.
Authentication adapter for GitHub OAuth 2.0 Web Application Flow. Handles profiles, repository existence checks, and repository creation.