Skip to content

Commit e0b2b5a

Browse files
committedDec 9, 2022
feat(app-check): allow specifying your own debug token
1 parent 282b6bc commit e0b2b5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎src/app-check/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export function useAppCheckToken() {
2525
export interface VueFireAppCheckOptions extends AppCheckOptions {
2626
/**
2727
* 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).
28+
* set to false in production (or not set it at all). It can be set to a string to force a specific token.
2929
*/
30-
debug?: boolean
30+
debug?: boolean | string
3131
}
3232

3333
/**
@@ -56,7 +56,7 @@ export function VueFireAppCheck(options: VueFireAppCheckOptions) {
5656

5757
if (options.debug) {
5858
// @ts-expect-error: local override
59-
self.FIREBASE_APPCHECK_DEBUG_TOKEN = true
59+
self.FIREBASE_APPCHECK_DEBUG_TOKEN = options.debug
6060
}
6161

6262
const appCheck = initializeAppCheck(firebaseApp, options)

0 commit comments

Comments
 (0)
Please sign in to comment.