diff --git a/packages/issuer-rest/lib/oid4vci-api-functions.ts b/packages/issuer-rest/lib/oid4vci-api-functions.ts index 73b04872..e01fddb7 100644 --- a/packages/issuer-rest/lib/oid4vci-api-functions.ts +++ b/packages/issuer-rest/lib/oid4vci-api-functions.ts @@ -71,7 +71,7 @@ export function accessTokenEndpoint( 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