auth
@webda/auth
@webda/auth
Authentication for Webda: login providers, account linking, access/refresh tokens, email + password with verification and recovery, and v3 data compatibility.
Install
pnpm add @webda/auth
Minimal configuration
{
"services": {
"Authentication": { "type": "Webda/Authentication" },
"emailAuth": { "type": "Webda/EmailPasswordProvider", "mailer": "Mailer" },
"db": { "type": "MemoryStore", "models": ["Webda/User", "Webda/Ident", "Webda/RefreshToken"] }
}
}
Documentation
Classes
- AccountExists
- Authentication
- AuthenticationParameters
- EmailDomainNotAllowed
- EmailPasswordParameters
- EmailPasswordProvider
- IdentConflict
- IdentLinkedElsewhere
- InvalidCredentials
- InvalidIdent
- LastLoginMethod
- OAuthProvider
- OAuthProviderParameters
- PasswordPolicyError
- RegistrationDisabled
- Throttled
- TokenExpired
- TokenInvalid
- UnsupportedMediaType
Interfaces
- AuthenticationCompatibility
- AuthProvider
- EmailTokenClaims
- MigrationCounts
- MigrationReport
- OAuthAuthorizationRequest
- OAuthCallbackRequest
- OAuthRedirects
- OAuthTokenRequest
- OAuthTokens
- ProviderEmailPolicy