Dima Malko
Dima Malko

Reputation: 293

how to test firebase App Check and reCaptcha v3

I just added reCAPTCHA v3 to my project.

Also did all neccesery stuff at firebase, like allowed firebase App Check atc.

At this point I`m sending App Check token with cloud funtion, like here https://firebase.google.com/docs/app-check/cloud-functions

I allways get app token Valid. How can i test if it's invalid. Also why i added reCAPTCHA to firebase App Check? Is reCAPTCHA generating the App Token? I`m so confused after all day. Thank you for your answers.

Upvotes: 1

Views: 1406

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599776

Recaptcha in this scenario is used to validate it's your web site making the call. Since this is using reCAPTCHA v3, your users won't even notice it is being used. It works invisibly to establish the identity of your app/site.

To test without a valid token, you can try to call the Cloud Function from any other web site, for example one where you didn't implement the reCAPTCHA.

Upvotes: 1

Related Questions