Documentation ¶
Index ¶
Constants ¶
View Source
const (
MinPasswordLength int = 8
)
Variables ¶
View Source
var ( ErrNoToken = errors.New("no token context") ErrInvalidToken = errors.New("invalid token") ErrInvalidClaimUser = errors.New("invalid claim userId") ErrSessionUser = errors.New("invalid session user") )
View Source
var (
ErrPasswordResetExpired = errors.New("password reset link is expired")
)
Functions ¶
func Authenticator ¶
Authenticator enforces the validity of the jwt token.
func VerifyPassword ¶
bcrypt compare hash with given password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.