Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccessTokenExpired = errors.New("security.jwt.access_token_expired") ErrAccessTokenInvalid = errors.New("security.jwt.access_token_invalid") )
Functions ¶
This section is empty.
Types ¶
type Bcrypt ¶
type Bcrypt struct{}
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
func NewJWT ¶
func NewJWT(accessToken, refreshToken JWTTokenConfig) JWT
func (*JWT) GenerateAccessToken ¶
func (*JWT) GenerateRefreshToken ¶
type JWTTokenConfig ¶
Click to show internal directories.
Click to hide internal directories.