Set adds the given key and value to the map of extra claims.
(key string, value interface{})
| 53 | |
| 54 | // Set adds the given key and value to the map of extra claims. |
| 55 | func (c *Claims) Set(key string, value interface{}) { |
| 56 | if c.ExtraClaims == nil { |
| 57 | c.ExtraClaims = make(map[string]interface{}) |
| 58 | } |
| 59 | c.ExtraClaims[key] = value |
| 60 | } |
| 61 | |
| 62 | // SetHeader adds the given key and value to the map of extra headers. |
| 63 | func (c *Claims) SetHeader(key string, value interface{}) { |
no outgoing calls