Documentation ¶
Index ¶
- func CreateRefreshToken(secret string, method string, token string) (string, error)
- func CreateToken(secret string, method string, claims jwt.MapClaims, expire int) (string, error)
- func Validate(v interface{}) (string, error)
- func ValidateRefreshToken(secret string, method string, tokenString string) (jwt.MapClaims, error)
- func ValidateToken(secret string, signing string, bearerToken string) (jwt.MapClaims, error)
- type Cache
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRefreshToken ¶
func CreateToken ¶
func ValidateRefreshToken ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Invalidate ¶
Click to show internal directories.
Click to hide internal directories.