Skip to content

@tyravel/auth

Authentication and authorization for Tyravel

Install

bash
npm install @tyravel/auth

Metadata

FieldValue
Version1.0.1
Sourcepackages/auth
CategoryPlatform services
Node.js>=26

Tyravel dependencies

Public exports

From the package entry point (dist/index.d.ts). Deep imports are not supported.

Values

  • AppleOAuthDriver
  • AuthManager
  • AuthenticationException
  • AuthorizationException
  • BitbucketOAuthDriver
  • DatabaseSessionStore
  • DiscordOAuthDriver
  • EloquentUserProvider
  • FacebookOAuthDriver
  • Gate
  • GithubOAuthDriver
  • GitlabOAuthDriver
  • GoogleOAuthDriver
  • Hasher
  • InvalidCredentialsException
  • InvalidResetTokenException
  • LinkedInOAuthDriver
  • MemorySessionStore
  • MicrosoftOAuthDriver
  • OAuthManager
  • PasswordResetBroker
  • PersonalAccessTokenRepository
  • Policy
  • RedisSessionStore
  • ResolvedAccessToken
  • Session
  • SessionGuard
  • SessionManager
  • SlackOAuthDriver
  • SpotifyOAuthDriver
  • TokenGuard
  • TokenLookupContext
  • TwitchOAuthDriver
  • VerifyCsrfTokenException
  • XOAuthDriver
  • clearOAuthDriversForTesting
  • createAuthMiddleware
  • createAuthorizeMiddleware
  • createGuestMiddleware
  • createPkcePair
  • createStartSessionMiddleware
  • createTokenAbilityMiddleware
  • createVerifyCsrfTokenMiddleware
  • parseExpiresIn
  • parseTokenAbilities
  • registerOAuthDriver
  • tokenCan
  • tokenCanAny

Types

  • AuthConfig
  • AuthSessionConfig
  • Authenticatable
  • CreateTokenOptions
  • EloquentUserProviderConfig
  • Guard
  • GuardConfig
  • NewAccessToken
  • OAuthAuthorizeContext
  • OAuthDriver
  • OAuthDriverConstructor
  • OAuthExchangeContext
  • OAuthProviderConfig
  • OAuthUserProfile
  • PasswordBrokerConfig
  • PkcePair
  • PolicyConstructor
  • SessionDriver
  • SessionGuardConfig
  • SocialOAuthDriver
  • SocialOAuthDriverConstructor
  • TokenGuardConfig
  • TokenRepositoryConfig
  • UserModelConstructor
  • UserProvider
  • VerifyCsrfTokenOptions

Guide

See the Authentication guide for usage examples.

Released under the MIT License.