Documentation
¶
Index ¶
Constants ¶
View Source
const (
PrefixBearer = "Bearer"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtCfg ¶
type JwtCfg struct { TokenExpireDuration time.Duration //默认为永不过期 Issuer string // contains filtered or unexported fields }
func (*JwtCfg) ParseToken ¶
ParseToken 解析 jwt token
func (*JwtCfg) SignedTokenStr ¶
SignedTokenStr 签发jwt token
type OptionFunc ¶
type OptionFunc func(cfg *JwtCfg)
Click to show internal directories.
Click to hide internal directories.