providers
Providerβ
Provider: <
P>OIDCConfig<P> |OAuth2Config<P> |EmailConfig|CredentialsConfig&InternalProviderOptions| (...args) =>OAuth2Config<P> |OIDCConfig<P> |EmailConfig|CredentialsConfig&InternalProviderOptions&InternalProviderOptions
Must be a supported authentication provider config:
- OAuthConfig
- EmailConfigInternal
- CredentialsConfigInternal
For more information, see the guides:
Seeβ
Type parametersβ
| Parameter | Default |
|---|---|
P extends Profile | any |
ProviderTypeβ
ProviderType:
"oidc"|"oauth"|"email"|"credentials"
Providers passed to Auth.js must define one of these types.
Seeβ
- RFC 6749 - The OAuth 2.0 Authorization Framework
- OpenID Connect Core 1.0
- Email or Passwordless Authentication
- Credentials-based Authentication
CommonProviderOptionsβ
Shared across all ProviderType
Propertiesβ
idβ
id:
string
Uniquely identifies the provider in AuthConfig.providers It's also part of the URL
nameβ
name:
string
The provider name used on the default sign-in page's sign-in button. For example if it's "Google", the corresponding button will say: "Sign in with Google"
typeβ
type:
ProviderType
See ProviderType