AbstractProtected_Protected_StaticUserThe User class reference to be used by the adapter.
AbstractdeleteHard-deletes a user from the authentication provider.
The User to delete.
A promise resolving on successful deletion.
AbstractgetValidates and decodes an incoming authentication token.
The raw token string (e.g. JWT).
The decoded token data payload.
Returns the pluggable endpoint handler function for this adapter, if any.
The EndpointHandler callback or null.
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.
AbstractrefreshRefreshes an expired access token using a valid refresh token.
The refresh token string.
A promise resolving to the new access token payload.
AbstractregisterRegisters a new user directly in the authentication provider.
The User object.
OptionalclearPassword: stringThe plaintext password.
A promise resolving to the registration response.
AbstractrevokeInvalidates a specific access token explicitly.
The token string to revoke.
Action response from the provider.
AbstractsetInjects custom claims (e.g. role, tenant info) into the user's token structure.
The user ID.
The payload of claims to merge.
Action response from the provider.
Assigns a configuration parameter for the adapter.
The parameter key.
The parameter value.
AbstractsignoutTerminates the current authentication session.
The User footprint.
A promise resolving to the provider's signout response.
AbstractsignupAuthenticates a user by login and password (generates tokens).
User's email or login name.
Plaintext password.
A promise resolving to the token payload.
AbstractupdateUpdates user credentials or metadata within the external auth provider.
The User to modify.
The delta payload of properties to update.
A promise resolving when the update completes.
Abstract base class that defines the contract for all authentication adapters. Implementations should adapt standard authentication methods to specific providers (e.g. Firebase, Supabase, basic auth).