Skip to content

Commit

Permalink
chore: investigate req opts not properly filled
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jan 25, 2024
1 parent 0bbb58c commit 136ff2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/lib/AuthorizationCodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion packages/client/lib/OpenID4VCIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -470,7 +474,7 @@ export class OpenID4VCIClient {

public getIssuer(): string {
this.assertIssuerData();
return this._credentialIssuer!;
return this._credentialIssuer;
}

public getAccessTokenEndpoint(): string {
Expand Down

0 comments on commit 136ff2f

Please sign in to comment.