Replies: 5 comments 3 replies
-
If you leave You must set it to not true, and not a string, in order for it to use reCAPTCHA (or a custom provider). |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation! After testing myself, I'll sum it up in simpler terms: Do not set it to true in production, otherwise appcheck will not pass. (Sorry I should've tried it before asking. Actually I thought I tried and succeeded, but that must've been false memory) |
Beta Was this translation helpful? Give feedback.
-
So, what's your suggestion on how to turn it off in production? Is it safe to do something like this?: <script>
if (location.hostname === 'localhost') self.FIREBASE_APPCHECK_DEBUG_TOKEN = true;
</script>
<script src="app.js"></script> |
Beta Was this translation helpful? Give feedback.
-
We're planning to make some changes so that debug mode is set in the |
Beta Was this translation helpful? Give feedback.
-
what is the params name for |
Beta Was this translation helpful? Give feedback.
-
Currently, to use app check debug token on local development, one prerequisite is to set
self.FIREBASE_APPCHECK_DEBUG_TOKEN = true
.Since it must be set before firebase is imported, the best bet is to do it in the html file. However, doing it in the html file makes it less convenient to disable it in production builds.
So my question is, what happens I left it true in production?
If the answer is no and no, why not remove this step and set it to true for everybody by default?
Beta Was this translation helpful? Give feedback.
All reactions