Versions in this module Expand all Collapse all v0 v0.9.1 Oct 1, 2015 Changes in this version + var ErrTokenIsExpired = errors.New("token is expired") + var ErrTokenNotYetValid = errors.New("token is not yet valid") + type Claims map[string]interface + func (c *Claims) UnmarshalJSON(b []byte) error + func (c Claims) Base64() ([]byte, error) + func (c Claims) Del(key string) + func (c Claims) Get(key string) interface{} + func (c Claims) Has(key string) bool + func (c Claims) MarshalJSON() ([]byte, error) + func (c Claims) Set(key string, val interface{}) + func (c Claims) Validate(now, expLeeway, nbfLeeway int64) error + type JWT interface + Claims func() Claims + Serialize func(key interface{}) ([]byte, error) + Verify func(key interface{}, method crypto.SigningMethod, o ...Opts) error + type Opts struct + EXP int64 + Fn ValidateFunc + NBF int64 + type ValidateFunc func(Claims) error