I am using appcheck in my web project and setting it up like so:
const appCheck = firebase.appCheck();
appCheck.activate( "my site key", true);
appCheck.onTokenChanged((token) => {
console.log("Token:", token);
});
Am I correct to assume that if the onTokenChanged callback is invoked then the browser has passed appcheck attestation?
If this is so then my intention is that I would enable analytics when the callback is invoked as I can be reasonably sure that it is a legitimate user not a bot.
When you call onTokenChanged
your callback will be:
In addition:
In any of these cases, the app has passed the checks by the attestation provider.