Documentation ¶
Index ¶
Constants ¶
View Source
const ( JWTSigningMethodHS256 = "HS256" JWTSigningMethodHS384 = "HS384" JWTSigningMethodHS512 = "HS512" )
View Source
const CallBackToken = "OpsRockToken"
View Source
const JWTClaimsKey = "JWT_CLAIMS"
View Source
const SaltLength = 8
View Source
const UserKey = "LOGIN_USER"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateToken ¶
create jwt token
func (*JWT) ParseToken ¶
parse token
func (*JWT) RefreshToken ¶
update token
type JWTClaims ¶
type JWTClaims struct {
jwt.StandardClaims
}
Click to show internal directories.
Click to hide internal directories.