Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("Invalid token")
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Option ¶
type Option func(*options)
func SetExpired ¶
func SetSigningKey ¶
func SetSigningMethod ¶
func SetSigningMethod(method jwt.SigningMethod) Option
type Store ¶
type Store interface { Set(ctx context.Context, token string, expiration time.Duration) error Delete(ctx context.Context, token string) error Check(ctx context.Context, token string) (bool, error) Close(ctx context.Context) error }
func NewStoreWithCache ¶
func NewStoreWithCache(cache cachex.Cache, opts ...StoreOption) Store
type StoreOption ¶
type StoreOption func(*storeOptions)
func WithCacheNS ¶
func WithCacheNS(ns string) StoreOption
Click to show internal directories.
Click to hide internal directories.