Skip to content

Commit

Permalink
fix: allow token endpoint to be defined in metadata without triggerin…
Browse files Browse the repository at this point in the history
…g logic for external AS
  • Loading branch information
nklomp committed Sep 29, 2023
1 parent 5aff4fc commit d99304c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/issuer-rest/lib/oid4vci-api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function accessTokenEndpoint<DIDDoc extends object>(
opts: ITokenEndpointOpts & ISingleEndpointOpts & { baseUrl: string | URL },
) {
const tokenEndpoint = issuer.issuerMetadata.token_endpoint
const externalAS = !!tokenEndpoint
const externalAS = issuer.issuerMetadata.authorization_server
if (externalAS) {
console.log(`[OID4VCI] External Authorization Server ${tokenEndpoint} is being used. Not enabling issuer token endpoint`)
return
Expand Down

0 comments on commit d99304c

Please sign in to comment.