fix: JTI revocation returns error, LogoutHandler returns 500 on failure

This commit is contained in:
2026-07-11 14:35:34 +01:00
parent 9e85bc766b
commit 7a51bcc49a
4 changed files with 41 additions and 22 deletions
+3 -1
View File
@@ -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")