From 2b4c06992c0b0d09afbd241f3b4d0537b47ef788 Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Thu, 9 Jan 2025 15:40:11 +0100 Subject: [PATCH] chore: specifically check for true in isAuthorizationChallengeEndpointEnabled as it is an optional endpoint --- packages/issuer-rest/lib/OID4VCIServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/issuer-rest/lib/OID4VCIServer.ts b/packages/issuer-rest/lib/OID4VCIServer.ts index 11adc1b2..4b936f29 100644 --- a/packages/issuer-rest/lib/OID4VCIServer.ts +++ b/packages/issuer-rest/lib/OID4VCIServer.ts @@ -193,7 +193,7 @@ export class OID4VCIServer { } private isAuthorizationChallengeEndpointEnabled(authorizationChallengeEndpointOpts?: IAuthorizationChallengeEndpointOpts) { - return authorizationChallengeEndpointOpts?.enabled !== false || process.env.AUTHORIZATION_CHALLENGE_ENDPOINT_ENABLED !== 'false' + return authorizationChallengeEndpointOpts?.enabled === true || process.env.AUTHORIZATION_CHALLENGE_ENDPOINT_ENABLED === 'true' } private assertAccessTokenHandling(tokenEndpointOpts?: ITokenEndpointOpts) {