Versions in this module Expand all Collapse all v4 v4.1.4 Dec 4, 2023 Changes in this version + type TokenStore struct + func NewRedisClusterStore(opts *redis.ClusterOptions, keyNamespace ...string) *TokenStore + func NewRedisClusterStoreWithCli(cli *redis.ClusterClient, keyNamespace ...string) *TokenStore + func NewRedisStore(opts *redis.UniversalOptions, keyNamespace ...string) *TokenStore + func NewRedisStoreWithCli(cli redis.UniversalClient, keyNamespace ...string) *TokenStore + func (s *TokenStore) Close() error + func (s *TokenStore) Create(ctx context.Context, info oauth2.TokenInfo) error + func (s *TokenStore) GetByAccess(ctx context.Context, access string) (oauth2.TokenInfo, error) + func (s *TokenStore) GetByCode(ctx context.Context, code string) (oauth2.TokenInfo, error) + func (s *TokenStore) GetByRefresh(ctx context.Context, refresh string) (oauth2.TokenInfo, error) + func (s *TokenStore) RemoveByAccess(ctx context.Context, access string) error + func (s *TokenStore) RemoveByCode(ctx context.Context, code string) error + func (s *TokenStore) RemoveByRefresh(ctx context.Context, refresh string) error