Versions in this module Expand all Collapse all v1 v1.4.1 Mar 21, 2020 Changes in this version + type Base struct + Domain string + Name string + Secret string + TTL int + type ConfigJWT struct + Base Base + type JWT struct + func New(c *ConfigJWT) *JWT + func (s *JWT) Cookie(t []byte) *http.Cookie + func (s *JWT) IsExpired(err error) bool + func (s *JWT) IsNeedUpdate(err error) bool + func (s *JWT) Read(r *http.Request) []byte + func (s *JWT) Sign(d interface{}) ([]byte, error) + func (s *JWT) Verify(token []byte) (interface{}, string, error)