Versions in this module Expand all Collapse all v0 v0.2.0 Jan 14, 2024 Changes in this version + type RedisTokenStorage struct + func NewRedisTokenStorage(redis *redis.Client) *RedisTokenStorage + func (r *RedisTokenStorage) CheckToken(ctx context.Context, token string) (bool, error) + func (r *RedisTokenStorage) Close() error + func (r *RedisTokenStorage) DeleteToken(ctx context.Context, token string) error + func (r *RedisTokenStorage) SaveToken(ctx context.Context, token string, lifeDuration time.Duration) error + type TokenStorage interface + CheckToken func(ctx context.Context, token string) (bool, error) + Close func() error + DeleteToken func(ctx context.Context, token string) error + SaveToken func(ctx context.Context, token string, lifeDuration time.Duration) error