'Firebase Cloud Function validate debug AppCheck Token

I have written my own cloud functions and followed Verify App Check tokens from a custom backend to enforce AppCheck on my API. I now want to test my deployed functions with POSTMAN, but the verification denies it with the following message: Decoding App Check token failed. Make sure you passed the entire string JWT which represents the Firebase App Check token. I can make it work by running the android or iOS app, print the token, copy, and paste it on POSTMAN, but that takes a lot of time. I have also tried generating debug token for Android and iOS and pass that in the X-Firebase-AppCheck header and no luck.

How can I make this work?

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source