@edgedev/firebase 1.9.9 → 1.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/edgeFirebase.ts +7 -3
- package/package.json +1 -1
package/edgeFirebase.ts
CHANGED
|
@@ -195,7 +195,8 @@ export const EdgeFirebase = class {
|
|
|
195
195
|
emulatorFirestore: "",
|
|
196
196
|
emulatorFunctions: ""
|
|
197
197
|
},
|
|
198
|
-
isPersistant: false
|
|
198
|
+
isPersistant: false,
|
|
199
|
+
enablePopupRedirect: false,
|
|
199
200
|
) {
|
|
200
201
|
this.firebaseConfig = firebaseConfig;
|
|
201
202
|
this.app = initializeApp(this.firebaseConfig);
|
|
@@ -203,8 +204,11 @@ export const EdgeFirebase = class {
|
|
|
203
204
|
if (isPersistant) {
|
|
204
205
|
persistence = browserLocalPersistence;
|
|
205
206
|
}
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
if (enablePopupRedirect) {
|
|
208
|
+
this.auth = initializeAuth(this.app, { persistence, popupRedirectResolver: browserPopupRedirectResolver });
|
|
209
|
+
} else {
|
|
210
|
+
this.auth = initializeAuth(this.app, { persistence });
|
|
211
|
+
}
|
|
208
212
|
if (this.firebaseConfig.emulatorAuth) {
|
|
209
213
|
connectAuthEmulator(this.auth, `http://localhost:${this.firebaseConfig.emulatorAuth}`)
|
|
210
214
|
}
|