File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
97
97
// plugins
98
98
99
99
if ( options . appCheck ) {
100
+ if ( process . env . FIREBASE_APPCHECK_DEBUG_TOKEN ) {
101
+ options . appCheck . debug = process . env . FIREBASE_APPCHECK_DEBUG_TOKEN
102
+ }
100
103
addPlugin ( resolve ( runtimeDir , 'app-check/plugin.client' ) )
101
104
// TODO: With emulators a different plugin should be used, one that doesn't instantiate app check as it will error on the server anyway
102
105
if ( hasServiceAccount || emulatorsConfig ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function useAppCheckToken() {
25
25
export interface VueFireAppCheckOptions extends AppCheckOptions {
26
26
/**
27
27
* Setups the debug token global. See https://firebase.google.com/docs/app-check/web/debug-provider. Note you should
28
- * set to false in production (or not set it at all). It can be set to a string to force a specific token.
28
+ * set to false in production (or not set it at all). It can be set to a string to force a specific debug token.
29
29
*/
30
30
debug ?: boolean | string
31
31
}
You can’t perform that action at this time.
0 commit comments