🚀 Authentication features
Authentication features are SDK composers, not Express middleware; authService mounts the Authentication features and additional Invitation/OAuth features with the required stores and drivers.
Inventory
| Feature | Composed schema(s) | Composed route(s) | Purpose |
|---|---|---|---|
loginWithCredentialsFeature | loginWithCredentialsSchema | loginWithCredentialsRoute | Sign in with credentials. |
logoutFeature | Mode-selected logoutCookieSchema or logoutBearerSchema | logoutRoute | End a session. |
resendMfaCodeFeature | resendMfaCodeSchema | resendMfaCodeRoute | Replace an MFA challenge. |
verifyMfaCodeFeature | verifyMfaCodeSchema | verifyMfaCodeRoute | Complete MFA. |
loginWithOnetimeTokenFeature | loginWithOnetimeTokenSchema | loginWithOnetimeTokenRoute | Complete passwordless login. |
registerCredentialsFeature | registerCredentialsSchema | registerCredentialsRoute | Register credentials. |
emailVerificationFeature | sendVerificationEmailSchema | sendVerificationEmailRoute | Send an email-verification token. |
confirmEmailFeature | confirmEmailSchema | confirmEmailRoute | Confirm an email token. |
changeEmailFeature | changeEmailSchema | changeEmailRoute | Start email change. |
checkTokenFeature | checkTokenSchema | checkTokenRoute | Inspect a token. |
confirmNewEmailFeature | confirmNewEmailSchema | confirmNewEmailRoute | Confirm changed email. |
sendResetPasswordLinkEmailFeature | sendResetPasswordLinkEmailSchema | sendResetPasswordLinkEmailRoute | Send reset email. |
completePasswordResetFeature | completePasswordResetSchema | completePasswordResetRoute | Reset password. |
changePasswordFeature | changePasswordSchema | changePasswordRoute | Change password. |
deactivateFeature | deactivateSchema | deactivateRoute | Deactivate identity. |
activateFeature | activateSchema | activateRoute | Activate identity. |
refreshTokenFeature | Mode-selected refreshTokenCookieSchema or refreshTokenBearerSchema | refreshTokenRoute | Rotate tokens. |
deleteRefreshTokensFeature | deleteRefreshTokensSchema | deleteRefreshTokensRoute | Revoke identity refresh tokens. |
Details
Each feature is mounted by authService. The source definitions below show the exact schema-to-route composition.
loginWithCredentialsFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
logoutFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.
Selects the cookie schema only when configuration.authMode is cookie mode.View complete source
resendMfaCodeFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
verifyMfaCodeFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
loginWithOnetimeTokenFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
registerCredentialsFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
emailVerificationFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
confirmEmailFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
changeEmailFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
checkTokenFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
confirmNewEmailFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
sendResetPasswordLinkEmailFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
completePasswordResetFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
changePasswordFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
deactivateFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
activateFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source
refreshTokenFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.
Selects the cookie schema only when configuration.authMode is cookie mode.View complete source
deleteRefreshTokensFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by authService or a compatible custom service context.View complete source