Skip to main content

Module: providers

Interfaces​

Type Aliases​

EndpointHandler​

Ƭ EndpointHandler<P, C, R>: AdvancedEndpointHandler<P, C, R>

Either an URL (containing all the parameters) or an object with more granular control.

Type parameters​

NameType
Pextends UrlParams
Cany
Rany

Provider​

Ƭ Provider<P>: OIDCConfig<P> | OAuth2Config<P> | EmailConfig | CredentialsConfig & { options: Record<string, unknown> }

Must be a supported authentication provider config:

  • OAuthConfig
  • EmailConfigInternal
  • CredentialsConfigInternal

For more information, see the guides:

See

Type parameters​

NameType
Pextends Profile = Profile

ProviderType​

Ƭ ProviderType: "oidc" | "oauth" | "email" | "credentials"

Providers passed to Auth.js must define one of these types.

See