Versions in this module Expand all Collapse all v0 v0.1.1 May 27, 2022 v0.1.0 May 27, 2022 Changes in this version + type JWT struct + func New(privateKey *rsa.PrivateKey, publicKey *rsa.PublicKey) *JWT + func (j JWT) CreatAndSign(ttl time.Duration, claims jwt.MapClaims) (string, error) + func (j JWT) Create(ttl time.Duration, claims jwt.MapClaims) (*Token, error) + func (j JWT) Parse(token string, validate bool) (*Token, error) + func (j JWT) Sign(token *Token) (string, error) + type Token struct + func NewToken(t *jwt.Token) *Token + func (t Token) Claims() (value jwt.MapClaims, exists bool) + func (t Token) Get(key string) (value interface{}, exists bool) + func (t Token) GetBool(key string) (b bool) + func (t Token) GetDuration(key string) (d time.Duration) + func (t Token) GetFloat64(key string) (f64 float64) + func (t Token) GetInt(key string) (i int) + func (t Token) GetInt64(key string) (i64 int64) + func (t Token) GetSlice(key string) []interface{} + func (t Token) GetString(key string) (s string) + func (t Token) GetStringSlice(key string) (ss []string) + func (t Token) GetTime(key string) (tm time.Time) + func (t Token) GetUint(key string) (ui uint) + func (t Token) GetUint64(key string) (ui64 uint64) + func (t Token) ParseError() error