Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Cache store.CacheStore // contains filtered or unexported fields }
func (*Service) Create ¶
Create will create a new JWT token with the user_id as a claim it will then cache to redis
func (*Service) Expire ¶
func (s *Service) Expire(token *store.AccessToken) error
Expire invalidates a token and removes it from the cache
Click to show internal directories.
Click to hide internal directories.