diff --git a/packages/client/lib/AuthorizationCodeClient.ts b/packages/client/lib/AuthorizationCodeClient.ts index 81cd166f..fb18816e 100644 --- a/packages/client/lib/AuthorizationCodeClient.ts +++ b/packages/client/lib/AuthorizationCodeClient.ts @@ -104,7 +104,7 @@ export const createAuthorizationRequestUrl = async ({ console.log(`QUERY obj: ` + JSON.stringify(queryObj, null, 2)); const url = convertJsonToURI(queryObj, { baseUrl: endpointMetadata.authorization_endpoint, - uriTypeProperties: ['client_id', 'request_uri', 'redirect_uri', 'scope', /*'authorization_details', */'issuer_state'], + uriTypeProperties: ['client_id', 'request_uri', 'redirect_uri', 'scope', /*'authorization_details', */ 'issuer_state'], arrayTypeProperties: ['authorization_details'], mode: JsonURIMode.X_FORM_WWW_URLENCODED, // We do not add the version here, as this always needs to be form encoded diff --git a/packages/client/lib/OpenID4VCIClient.ts b/packages/client/lib/OpenID4VCIClient.ts index 09063b75..ccf610fd 100644 --- a/packages/client/lib/OpenID4VCIClient.ts +++ b/packages/client/lib/OpenID4VCIClient.ts @@ -462,6 +462,10 @@ export class OpenID4VCIClient { return this._clientId; } + public hasAccessTokenResponse(): boolean { + return !!this._accessTokenResponse; + } + get accessTokenResponse(): AccessTokenResponse { this.assertAccessToken(); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion @@ -470,7 +474,7 @@ export class OpenID4VCIClient { public getIssuer(): string { this.assertIssuerData(); - return this._credentialIssuer!; + return this._credentialIssuer; } public getAccessTokenEndpoint(): string {