mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
jwt: make the Blocklist an interface, so end-developers can implement their own storage (e.g. redis)
This commit is contained in:
@@ -63,7 +63,7 @@ func TestVerify(t *testing.T) {
|
||||
func testWriteVerifyBlockToken(t *testing.T, j *jwt.JWT) {
|
||||
t.Helper()
|
||||
|
||||
j.UseBlocklist()
|
||||
j.InitDefaultBlocklist()
|
||||
j.Extractors = append(j.Extractors, jwt.FromJSON("access_token"))
|
||||
|
||||
customClaims := &userClaims{
|
||||
|
||||
Reference in New Issue
Block a user