We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ad1de commit 3b0971dCopy full SHA for 3b0971d
1 file changed
packages/issuer/lib/tokens/index.ts
@@ -110,7 +110,7 @@ export const assertValidAccessTokenRequest = async (
110
invalid_request:
111
the Authorization Server does not expect a PIN in the pre-authorized flow but the client provides a PIN
112
*/
113
- if (!credentialOfferSession.credentialOffer.credential_offer?.grants?.[GrantTypes.PRE_AUTHORIZED_CODE]?.user_pin_required && request.user_pin) {
+ if (!credentialOfferSession.credentialOffer.credential_offer?.grants?.[GrantTypes.PRE_AUTHORIZED_CODE]?.tx_code && request.user_pin) {
114
throw new TokenError(400, TokenErrorResponse.invalid_request, USER_PIN_NOT_REQUIRED_ERROR)
115
}
116
/*
0 commit comments