Documentation ¶
Index ¶
- func NewToken(fields map[string]interface{}, key []byte) (string, error)
- func ParseToken(token string, key []byte) (map[string]interface{}, bool, error)
- func VerifyExp(exp interface{}, now int64) bool
- func VerifyFields(fields map[string]interface{}) bool
- func VerifyIat(iat interface{}, now int64) bool
- func VerifyNbf(nbf interface{}, now int64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseToken ¶
ParseToken parses a JWT token and validates (only) the signature
func VerifyFields ¶
VerifyFields verifies all fields
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.