Skip to content

Commit 7e06eb3

Browse files
committed
set tx_code in request
Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
1 parent 57ca020 commit 7e06eb3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/client/lib/AccessTokenClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class AccessTokenClient {
104104

105105
if (credentialOfferRequest?.supportedFlows.includes(AuthzFlowType.PRE_AUTHORIZED_CODE_FLOW)) {
106106
this.assertAlphanumericPin(opts.pinMetadata, pin);
107-
request.user_pin = pin;
107+
request.tx_code = pin;
108108

109109
request.grant_type = GrantTypes.PRE_AUTHORIZED_CODE;
110110
// we actually know it is there because of the isPreAuthCode call

packages/common/lib/types/Authorization.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ export interface AccessTokenRequest {
312312
'pre-authorized_code': string;
313313
redirect_uri?: string;
314314
scope?: string;
315-
user_pin?: string; //pre draft 13
315+
user_pin?: string; //this is for v11, not required in v13 anymore
316316
tx_code?: string; //draft 13
317317
[s: string]: unknown;
318318
}

0 commit comments

Comments
 (0)