Documentation
¶
Overview ¶
Package token provides secure random token generation for authentication.
Index ¶
Constants ¶
View Source
const ( // ContextSession is for session tokens (login) ContextSession = "session" // ContextMagic is for magic link tokens (passwordless login) ContextMagic = "magic" // ContextReset is for password reset tokens ContextReset = "reset" // ContextConfirm is for email confirmation tokens ContextConfirm = "confirm" // ContextAPI is for API bearer tokens ContextAPI = "api" )
Token context constants for different use cases. These are stored in the database to identify the token's purpose.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.