@pondoknusa/auth
Authentication and authorization for Pondoknusa
Install
bash
npm install @pondoknusa/auth @pondoknusa/databasePeer dependencies must be installed in the app (they are not auto-installed on older npm). Drivers that call extend() share one instance of the host package.
Metadata
| Field | Value |
|---|---|
| Version | 4.0.1 |
| Source | packages/auth |
| Category | Platform services |
| Node.js | >=26 |
Peer dependencies
Pondoknusa dependencies
Public exports
From the package entry point (dist/index.d.ts). Deep imports are not supported.
Values
AppleOAuthDriverAuthManagerAuthenticationExceptionAuthorizationExceptionBitbucketOAuthDriverDatabaseSessionStoreDiscordOAuthDriverEloquentUserProviderFacebookOAuthDriverGateGithubOAuthDriverGitlabOAuthDriverGoogleOAuthDriverHasherInvalidCredentialsExceptionInvalidResetTokenExceptionLinkedInOAuthDriverMemorySessionStoreMicrosoftOAuthDriverOAuthManagerPasswordResetBrokerPersonalAccessTokenRepositoryPolicyRedisSessionStoreResolvedAccessTokenSessionSessionGuardSessionIntegritySessionManagerSlackOAuthDriverSpotifyOAuthDriverTokenGuardTokenLookupContextTwitchOAuthDriverVerifyCsrfTokenExceptionXOAuthDriverbindOAuthStateclearOAuthDriversForTestingcompilePathPatternconsumeOAuthStatecreateAuthMiddlewarecreateAuthorizeMiddlewarecreateGuestMiddlewarecreatePkcePaircreateStartSessionMiddlewarecreateTokenAbilityMiddlewarecreateVerifyCsrfTokenMiddlewareensureSessionCsrfTokenparseExpiresInparseTokenAbilitiesregisterOAuthDriverresolveSessionIntegrityKeytokenCantokenCanAny
Types
AuthConfigAuthSessionConfigAuthenticatableCreateTokenOptionsCsrfFailureCodeEloquentUserProviderConfigGuardGuardConfigNewAccessTokenOAuthAuthorizeContextOAuthDriverOAuthDriverConstructorOAuthExchangeContextOAuthProviderConfigOAuthUserProfilePasswordBrokerConfigPkcePairPolicyConstructorSessionDriverSessionGuardConfigSocialOAuthDriverSocialOAuthDriverConstructorTokenGuardConfigTokenRepositoryConfigUserModelConstructorUserProviderVerifyCsrfTokenOptions
Guide
See the Authentication guide for usage examples.