Skip to content

Commit

Permalink
chore: correct dpop response param
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Aug 11, 2024
1 parent 77ceb0a commit 5e06969
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/client/lib/OpenID4VCIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class OpenID4VCIClient {
authorizationResponse?: string | AuthorizationResponse; // Pass in an auth response, either as URI/redirect, or object
additionalRequestParams?: Record<string, any>;
},
): Promise<AccessTokenResponse & DPoPResponseParams> {
): Promise<AccessTokenResponse & {params?: DPoPResponseParams}> {
const { pin, clientId = this._state.clientId ?? this._state.authorizationRequestOpts?.clientId } = opts ?? {};
let { redirectUri } = opts ?? {};
if (opts?.authorizationResponse) {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/lib/OpenID4VCIClientV1_0_11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class OpenID4VCIClientV1_0_11 {
authorizationResponse?: string | AuthorizationResponse; // Pass in an auth response, either as URI/redirect, or object
additionalRequestParams?: Record<string, any>;
},
): Promise<AccessTokenResponse> {
): Promise<AccessTokenResponse & {params?: DPoPResponseParams}> {
const { pin, clientId = this._state.clientId ?? this._state.authorizationRequestOpts?.clientId } = opts ?? {};
let { redirectUri } = opts ?? {};
if (opts?.authorizationResponse) {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/lib/OpenID4VCIClientV1_0_13.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class OpenID4VCIClientV1_0_13 {
authorizationResponse?: string | AuthorizationResponse; // Pass in an auth response, either as URI/redirect, or object
additionalRequestParams?: Record<string, any>;
},
): Promise<AccessTokenResponse> {
): Promise<AccessTokenResponse & {params?: DPoPResponseParams}> {
const { pin, clientId = this._state.clientId ?? this._state.authorizationRequestOpts?.clientId } = opts ?? {};
let { redirectUri } = opts ?? {};
if (opts?.authorizationResponse) {
Expand Down

0 comments on commit 5e06969

Please sign in to comment.