mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
jwt: add redis blocklist
This commit is contained in:
@@ -16,6 +16,9 @@ type Signer struct {
|
||||
Alg Alg
|
||||
Key interface{}
|
||||
|
||||
// MaxAge to set "exp" and "iat".
|
||||
// Recommended value for access tokens: 15 minutes.
|
||||
// Defaults to 0, no limit.
|
||||
MaxAge time.Duration
|
||||
|
||||
Encrypt func([]byte) ([]byte, error)
|
||||
|
||||
Reference in New Issue
Block a user