custom exp and nbf
This commit is contained in:
parent
f2d57c6e18
commit
b4a92fe472
4 changed files with 60 additions and 29 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue