Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyJwtAccess ¶
KeyJwtAccess returns the kv key which holds a JWT access token
func KeyJwtRefresh ¶
KeyJwtRefresh returns the kv key which holds a JWT refresh token
func KeySession ¶ added in v0.0.4
func KeySession() string
KeySession returns the base kv key prefix
Types ¶
type JWT ¶
type JWT interface { DeleteJWTAccessToken(ctx context.Context, accessTokenID string) error DeleteJWTRefreshToken(ctx context.Context, refreshTokenID string) error GetJWTAccessToken(ctx context.Context, accessTokenID string) (string, error) GetJWTRefreshToken(ctx context.Context, refreshTokenID string) (string, error) SetJWTAccessToken(ctx context.Context, accessTokenID, userID string, expire time.Duration) error SetJWTRefreshToken(ctx context.Context, refreshTokenID, userID string, expire time.Duration) error }
JWT represents a jwt interface for a KV store
Click to show internal directories.
Click to hide internal directories.