Skip to content

Commit

Permalink
fix: Disable token endpoint in case asClientMetadata is found
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Feb 17, 2025
1 parent abbc01b commit 362da1a
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 @@ -181,7 +181,7 @@ export class OID4VCIServer {
getCredentialOfferEndpoint(this.router, this.issuer, opts?.endpointOpts?.getCredentialOfferOpts)
getCredentialEndpoint(this.router, this.issuer, { ...opts?.endpointOpts?.tokenEndpointOpts, baseUrl: this.baseUrl })
this.assertAccessTokenHandling()
if (!this.isTokenEndpointDisabled(opts?.endpointOpts?.tokenEndpointOpts)) {
if (!this.isTokenEndpointDisabled(opts?.endpointOpts?.tokenEndpointOpts, opts?.asClientOpts)) {
accessTokenEndpoint(this.router, this.issuer, { ...opts?.endpointOpts?.tokenEndpointOpts, baseUrl: this.baseUrl })
}
if (this.isStatusEndpointEnabled(opts?.endpointOpts?.getStatusOpts)) {
Expand Down

0 comments on commit 362da1a

Please sign in to comment.