Versions in this module Expand all Collapse all v1 v1.8.0 Aug 19, 2020 Changes in this version type JWT + func (v *JWT) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *JWT) UnmarshalJSON(data []byte) error + func (v JWT) MarshalEasyJSON(w *jwriter.Writer) + func (v JWT) MarshalJSON() ([]byte, error) v1.7.0 Jul 12, 2020 Changes in this version + type Base struct + Secret string + type ConfigJWT struct + Base Base + type JWT struct + func New(c *ConfigJWT) *JWT + func (s *JWT) IsExpired(err error) bool + func (s *JWT) IsNeedUpdate(err error) bool + func (s *JWT) Sign(d interface{}, ttl time.Duration) ([]byte, error) + func (s *JWT) Verify(token []byte) (interface{}, string, error)