Skip to content

Commit d99304c

Browse files
committed
fix: allow token endpoint to be defined in metadata without triggering logic for external AS
1 parent 5aff4fc commit d99304c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/issuer-rest/lib/oid4vci-api-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function accessTokenEndpoint<DIDDoc extends object>(
7171
opts: ITokenEndpointOpts & ISingleEndpointOpts & { baseUrl: string | URL },
7272
) {
7373
const tokenEndpoint = issuer.issuerMetadata.token_endpoint
74-
const externalAS = !!tokenEndpoint
74+
const externalAS = issuer.issuerMetadata.authorization_server
7575
if (externalAS) {
7676
console.log(`[OID4VCI] External Authorization Server ${tokenEndpoint} is being used. Not enabling issuer token endpoint`)
7777
return

0 commit comments

Comments
 (0)