Versions in this module Expand all Collapse all v0 v0.1.0 Aug 26, 2018 Changes in this version + type Claims struct + Audience string + Auth interface{} + ExpiresAt time.Time + IssuedAt time.Time + Issuer string + Subject string + type JWT struct + func New(issuer, audience, key string, expiry time.Duration) (*JWT, error) + func (j *JWT) Generate(subject string, auth interface{}) (string, error) + func (j *JWT) Parse(token string, auth interface{}) error + func (j *JWT) ParseWithClaims(token string, auth interface{}) (*Claims, error)