Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT interface {
// Token 生成 token
Token(data ...map[string]interface{}) (string, error)
// TokenWithKey 生成 token
TokenWithKey(key []byte, data ...map[string]interface{}) (string, error)
// Verify 验证 token,并获取自定义内容
Verify(s string) (map[string]interface{}, error)
// VerifyWithKey 验证 token,并获取自定义内容
VerifyWithKey(key []byte, s string) (map[string]interface{}, error)
}
JWT ..
Click to show internal directories.
Click to hide internal directories.