Documentation ¶
Index ¶
- func Init(opts ...Option)
- func Token(data ...map[string]interface{}) (string, error)
- func TokenWithKey(key []byte, data ...map[string]interface{}) (string, error)
- func Verify(s string) (map[string]interface{}, error)
- func VerifyWithKey(key []byte, s string) (map[string]interface{}, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenWithKey ¶ added in v0.21.3
TokenWithKey 生成 token
Types ¶
Click to show internal directories.
Click to hide internal directories.