Documentation ¶
Index ¶
- func NewInvalidToken(text string) error
- func Reset()
- func Sign(payload map[string]interface{}) (token string, err error)
- func SignUseKey(key string, payload map[string]interface{}) (token string, err error)
- func Verify(token string) (data map[string]interface{}, err error)
- func VerifyUseKey(key string, token string) (data map[string]interface{}, err error)
- type InvalidToken
- type JWT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInvalidToken ¶
func SignUseKey ¶
Types ¶
type InvalidToken ¶
type InvalidToken struct {
// contains filtered or unexported fields
}
func (*InvalidToken) Error ¶
func (e *InvalidToken) Error() string
Click to show internal directories.
Click to hide internal directories.