Versions in this module Expand all Collapse all v0 v0.1.1 Feb 25, 2020 v0.1.0 Feb 25, 2020 Changes in this version + var ErrInvalidToken = errors.New("invalid token") + type Auther interface + DestroyToken func(ctx context.Context, accessToken string) error + GenerateToken func(ctx context.Context, userID string) (TokenInfo, error) + ParseUserID func(ctx context.Context, accessToken string) (string, error) + Release func() error + type TokenInfo interface + EncodeToJSON func() ([]byte, error) + GetAccessToken func() string + GetExpiresAt func() int64 + GetTokenType func() string