Versions in this module Expand all Collapse all v1 v1.0.0 May 18, 2021 Changes in this version + const TokenAlg + const TokenType + var ErrorInvalidHeader = errors.New("invalid header") + var ErrorInvalidSignature = errors.New("invalid signature") + var ErrorInvalidToken = errors.New("") + var ErrorMalformedToken = errors.New("malformed token") + func GenerateToken(key *ecdsa.PrivateKey, claims Claims) (string, error) + func Verify(key *ecdsa.PublicKey, token string) error + type Claims struct + DeviceID int64 + ExpiresAt time.Time + IssuedAt time.Time + Issuer int64 + Subject string + func Parse(token string) (*Claims, error) + type Header struct + Alg string + Type string