1
0
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:
Gerasimos (Makis) Maropoulos
2020-11-02 06:31:28 +02:00
parent 836fb18c57
commit f1ebddb6d9
8 changed files with 388 additions and 48 deletions

View File

@@ -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)