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', () => {