Skip to content

Commit 042b183

Browse files
committed
feat: Allow to set the clientId at a later point on the VCI client
1 parent dfb2280 commit 042b183

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/client/lib/OpenID4VCIClient.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class OpenID4VCIClient {
8383
'com.sphereon.ssi.wallet';
8484
this._pkce = { ...this._pkce, ...pkce };
8585
this._authorizationRequestOpts = this.syncAuthorizationRequestOpts(authorizationRequest);
86-
console.log(`Authorization req options: ${JSON.stringify(this._authorizationRequestOpts, null, 2)}`);
86+
debug(`Authorization req options: ${JSON.stringify(this._authorizationRequestOpts, null, 2)}`);
8787
}
8888

8989
public static async fromCredentialIssuer({
@@ -160,9 +160,8 @@ export class OpenID4VCIClient {
160160
credentialOfferClient.supportedFlows.includes(AuthzFlowType.AUTHORIZATION_CODE_FLOW) &&
161161
(createAuthorizationRequestURL === undefined || createAuthorizationRequestURL)
162162
) {
163-
console.log(`AUTH REQ`);
164163
await client.createAuthorizationRequestUrl({ authorizationRequest, pkce });
165-
console.log(`AUTH REQ URL: ${client._authorizationURL}`);
164+
debug(`Authorization Request URL: ${client._authorizationURL}`);
166165
}
167166

168167
return client;
@@ -487,9 +486,8 @@ export class OpenID4VCIClient {
487486
return this._alg;
488487
}
489488

490-
491489
set clientId(value: string | undefined) {
492-
this._clientId = value
490+
this._clientId = value;
493491
}
494492

495493
get clientId(): string | undefined {

0 commit comments

Comments
 (0)