Auth.js · Type Alias
Provider
Provider is the Auth.js type for authentication provider configurations. It supports OAuth, OIDC, email, credentials, and WebAuthn providers.
Last updated
Syntax
type Provider<P extends Profile = any> = OIDCConfig<P> | OAuth2Config<P> | EmailConfig | CredentialsConfig | WebAuthnConfig & InternalProviderOptions | ((...args: any[]) => OIDCConfig<P> | OAuth2Config<P> | EmailConfig | CredentialsConfig | WebAuthnConfig & InternalProviderOptions)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ProviderTypeProviderIdOAuth2ConfigOIDCConfigEmailConfigCredentialsConfigWebAuthnConfigProfileCallback