File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function useAppCheckToken() {
1717export function VueFireAppCheck ( options : AppCheckOptions ) {
1818 return ( firebaseApp : FirebaseApp , app : App ) => {
1919 const appCheck = initializeAppCheck ( firebaseApp , options )
20- const token = getGlobalScope ( app , firebaseApp ) . run ( ( ) => ref < string > ( ) ) !
20+ const token = getGlobalScope ( firebaseApp , app ) . run ( ( ) => ref < string > ( ) ) !
2121 onTokenChanged ( appCheck , ( newToken ) => {
2222 token . value = newToken . token
2323 } )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ modules: [VueFireAuth()]`)
1717 }
1818
1919 return ( firebaseApp : FirebaseApp , app : App ) => {
20- const user = getGlobalScope ( app , firebaseApp ) . run ( ( ) =>
20+ const user = getGlobalScope ( firebaseApp , app ) . run ( ( ) =>
2121 shallowRef < User | null | undefined > ( )
2222 ) !
2323 // userMap.set(app, user)
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const scopeMap = new WeakMap<FirebaseApp, EffectScope>()
1111 * @param app - Vue App
1212 * @returns
1313 */
14- export function getGlobalScope ( app : App , firebaseApp : FirebaseApp ) {
14+ export function getGlobalScope ( firebaseApp : FirebaseApp , app : App ) {
1515 // we use the firebaseApp as a key because we are more likely to have access to it and it's supposed to be also unique
1616 // per app since it contains user data.
1717 if ( ! scopeMap . has ( firebaseApp ) ) {
You can’t perform that action at this time.
0 commit comments