fix: JTI revocation returns error, LogoutHandler returns 500 on failure
This commit is contained in:
@@ -1731,7 +1731,9 @@ func TestJTI_Revocation_PostgreSQL(t *testing.T) {
|
||||
t.Fatalf("token should be valid before revocation: %v", err)
|
||||
}
|
||||
|
||||
auth.RevokeJTI(ctx, jti, clock.Now().Add(1*time.Hour))
|
||||
if err := auth.RevokeJTI(ctx, jti, clock.Now().Add(1*time.Hour)); err != nil {
|
||||
t.Fatalf("RevokeJTI() failed: %v", err)
|
||||
}
|
||||
|
||||
if !auth.IsJTIRevoked(ctx, jti) {
|
||||
t.Error("JTI should be revoked after RevokeJTI call")
|
||||
|
||||
Reference in New Issue
Block a user