From 2186d8b230dc4292b2cb8815fd8150b58c835aee Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 27 Nov 2026 22:30:03 +0100 Subject: [PATCH] test(oidc): narrow the logout token check with in, as the server compiles without strictNullChecks --- server/tests/unit/nest/oidc-backchannel.service.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/unit/nest/oidc-backchannel.service.test.ts b/server/tests/unit/nest/oidc-backchannel.service.test.ts index be7329165..a61f9aedf 100644 --- a/server/tests/unit/nest/oidc-backchannel.service.test.ts +++ b/server/tests/unit/nest/oidc-backchannel.service.test.ts @@ -150,7 +150,7 @@ async function revokedAt(id: string): Promise { /** The reason validateLogoutToken gives for a token. */ async function reasonFor(token: string, config: OidcConfig = CONFIG): Promise { const check = await service().validateLogoutToken(token, config); - return check.valid ? 'valid' : check.reason; + return 'reason' in check ? check.reason : 'valid'; } describe('OidcBackchannelService.validateLogoutToken: section 2.6, one refusal per check', () => {