Storer is the interface that storage the token.
| 7 | |
| 8 | // Storer is the interface that storage the token. |
| 9 | type Storer interface { |
| 10 | Set(ctx context.Context, tokenStr string, expiration time.Duration) error |
| 11 | Delete(ctx context.Context, tokenStr string) error |
| 12 | Check(ctx context.Context, tokenStr string) (bool, error) |
| 13 | Close(ctx context.Context) error |
| 14 | } |
| 15 | |
| 16 | type storeOptions struct { |
| 17 | CacheNS string // default "jwt" |
no outgoing calls
no test coverage detected