Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func NewRedisStorage ¶
func NewRedisStorage(redis *redis.Client) *RedisStorage
func (*RedisStorage) CreateSession ¶
func (s *RedisStorage) CreateSession(ctx context.Context, session *types.Session, expire int) (string, error)
Add refresh token in redis
func (*RedisStorage) DeleteSession ¶
func (s *RedisStorage) DeleteSession(ctx context.Context, refreshToken string) error
Delete session cookie
Click to show internal directories.
Click to hide internal directories.