Versions in this module Expand all Collapse all v1 v1.202405300917.1 May 30, 2024 Changes in this version + var ErrInvalidAudience = errors.New("invalid token audience") + var ErrInvalidPayload = errors.New("invalid payload") + var ErrInvalidToken = errors.New("invalid token") + var ErrSignerError = errors.New("signer error") + var ErrTokenExpired = errors.New("token expired") + type ITokens interface + CryptoHash256 func(data []byte) (hash [32]byte) + IssueToken func(app istructs.AppQName, duration time.Duration, pointerToPayload interface{}) (token string, err error) + ValidateToken func(token string, pointerToPayload interface{}) (gp istructs.GenericPayload, err error) v1.202405300916.1-rc May 30, 2024