Skip to content

Commit 7b38685

Browse files
committed
Update App Check from v1beta to v1
1 parent e9e5f6b commit 7b38685

File tree

2 files changed

+3
-3
lines changed

2 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
@@ -47,7 +47,7 @@ describe('client', () => {
4747
const { projectId, appId, apiKey } = app.options;
4848

4949
expect(request).to.deep.equal({
50-
url: `${BASE_ENDPOINT}/projects/${projectId}/apps/${appId}:exchangeRecaptchaToken?key=${apiKey}`,
50+
url: `${BASE_ENDPOINT}/projects/${projectId}/apps/${appId}:exchangeRecaptchaV3Token?key=${apiKey}`,
5151
body: {
5252
// eslint-disable-next-line camelcase
5353
recaptcha_token: 'fake-recaptcha-token'

packages/app-check/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* limitations under the License.
1616
*/
1717
export const BASE_ENDPOINT =
18-
'https://content-firebaseappcheck.googleapis.com/v1beta';
18+
'https://content-firebaseappcheck.googleapis.com/v1';
1919

20-
export const EXCHANGE_RECAPTCHA_TOKEN_METHOD = 'exchangeRecaptchaToken';
20+
export const EXCHANGE_RECAPTCHA_TOKEN_METHOD = 'exchangeRecaptchaV3Token';
2121
export const EXCHANGE_RECAPTCHA_ENTERPRISE_TOKEN_METHOD =
2222
'exchangeRecaptchaEnterpriseToken';
2323
export const EXCHANGE_DEBUG_TOKEN_METHOD = 'exchangeDebugToken';

0 commit comments

Comments
 (0)