Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TFATokenScope = "tfa" UserTokenScope = "user" RefreshTokenScope = "refresh" )
View Source
var ( RefreshAccessTokenExpiration = time.Second * 60 * 60 * 24 // one day UserAccessTokenExpiration = time.Second * 60 * 10 // 10 minutes TFATokenExpiration = time.Second * 60 * 2 // 2 minutes ForgotPassExpiration = time.Second * 60 * 5 // 5 minutes EmailVerificationExpiration = time.Second * 60 * 2 // 2 minutes )
Functions ¶
func ComparePassword ¶
func GenerateOTP ¶
func GenerateUUID ¶
func GenerateUUID() string
func HashPassword ¶
Types ¶
type AccessToken ¶
func CreateAccessToken ¶
func CreateAccessToken(user userland.User, jwtSecret string, options AccessTokenOptions) (AccessToken, error)
Click to show internal directories.
Click to hide internal directories.