Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultExpireDuration = time.Hour * 24 * 30
Variables ¶
View Source
var (
ErrTokenInvalid = errors.New("couldn't handle this token")
)
Functions ¶
func CreateToken ¶
CreateToken 创建Token
Types ¶
type CustomClaims ¶
type CustomClaims struct { Business string jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.