custom exp and nbf

This commit is contained in:
ston1th 2018-09-13 13:27:32 +02:00
commit b4a92fe472
4 changed files with 60 additions and 29 deletions

View file

@ -3,6 +3,7 @@
package jwt
// Claims is the claim type of the token
// The Claims map is not goroutine safe
type Claims map[string]interface{}
// Get returns a value from the claims map
@ -70,3 +71,8 @@ func (c Claims) Set(key string, v interface{}) {
}
c[key] = v
}
// Delete removes the key from the claims map
func (c Claims) Delete(key string) {
delete(c, key)
}