Can anyone give flow chart for this service?
After registering the app and enforcing the app check, how does firebase send token on every request?
const appCheck = firebase.appCheck();
// Pass your reCAPTCHA v3 site key (public key) to activate(). Make sure this
// key is the counterpart to the secret key you set in the Firebase console.
appCheck.activate(
'<ReCaptcha V3 site key>',
// Optional argument. If true, the SDK automatically refreshes App Check
// tokens as needed.
true);
const token = appCheck.getToken()
token.then(()=>{
console.log("success", token)
}).catch(()=>{
console.log("failed")
})
getToken() returns a promise which has a jwt token (with expiration time as defined while registering the app) which includes the details for app on firebase. Now what to do with this token and how to include it in request? There isnt much to go on in App Check documentation.