Skip to content

Commit

Permalink
chore: specifically check for true in isAuthorizationChallengeEndpoin…
Browse files Browse the repository at this point in the history
…tEnabled as it is an optional endpoint
  • Loading branch information
Brummos committed Jan 9, 2025
1 parent ce3ef0b commit 2b4c069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/issuer-rest/lib/OID4VCIServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class OID4VCIServer<DIDDoc extends object> {
}

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) {
Expand Down

0 comments on commit 2b4c069

Please sign in to comment.