Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InMemoryTokenOption ¶
type InMemoryTokenOption func(c *inMemoryRefreshTokenStore)
func WithExpTime ¶
func WithExpTime(d time.Duration) InMemoryTokenOption
type Store ¶
type Store interface { Add(token, userID string) IsOwner(token, userID string) bool ExtendValidity(token string) Delete(token string) Valid(token string) bool ExpirationTime(token string) time.Time }
func NewInMemoryTokenStore ¶
func NewInMemoryTokenStore(opts ...func(s *inMemoryRefreshTokenStore)) Store
Click to show internal directories.
Click to hide internal directories.