Versions in this module Expand all Collapse all v5 v5.0.0 Apr 22, 2024 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.Options, keyNamespace ...string) *TokenStore + func NewRedisStoreWithCli(cli *redis.Client, keyNamespace ...string) *TokenStore + func NewRedisStoreWithInterface(cli clienter, 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