Skip to content

Commit 4c0e6c9

Browse files
committed
Update request JSON object for recaptcha.
1 parent 7209f6a commit 4c0e6c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/app-check/src/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('client', () => {
5050
url: `${BASE_ENDPOINT}/projects/${projectId}/apps/${appId}:exchangeRecaptchaV3Token?key=${apiKey}`,
5151
body: {
5252
// eslint-disable-next-line camelcase
53-
recaptcha_token: 'fake-recaptcha-token'
53+
recaptcha_v3_token: 'fake-recaptcha-token'
5454
}
5555
});
5656
});

packages/app-check/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function getExchangeRecaptchaV3TokenRequest(
116116
return {
117117
url: `${BASE_ENDPOINT}/projects/${projectId}/apps/${appId}:${EXCHANGE_RECAPTCHA_TOKEN_METHOD}?key=${apiKey}`,
118118
body: {
119-
'recaptcha_token': reCAPTCHAToken
119+
'recaptcha_v3_token': reCAPTCHAToken
120120
}
121121
};
122122
}

packages/app-check/src/internal-api.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('internal api', () => {
111111

112112
expect(reCAPTCHASpy).to.be.called;
113113

114-
expect(exchangeTokenStub.args[0][0].body['recaptcha_token']).to.equal(
114+
expect(exchangeTokenStub.args[0][0].body['recaptcha_v3_token']).to.equal(
115115
fakeRecaptchaToken
116116
);
117117
expect(token).to.deep.equal({ token: fakeRecaptchaAppCheckToken.token });

0 commit comments

Comments
 (0)