Skip to content

Commit bf1d9be

Browse files
fix(auth): provide browserPopupRedirectResolver on init (#9146)
1 parent 328b40a commit bf1d9be

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/firebase_auth/firebase_auth_web/lib/src/interop/auth.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export 'auth_interop.dart';
2222
/// Given an AppJSImp, return the Auth instance.
2323
Auth getAuthInstance(App app) {
2424
return Auth.getInstance(auth_interop.initializeAuth(
25-
app.jsObject, jsify({'errorMap': auth_interop.debugErrorMap})));
25+
app.jsObject,
26+
jsify({
27+
'errorMap': auth_interop.debugErrorMap,
28+
'popupRedirectResolver': auth_interop.browserPopupRedirectResolver
29+
})));
2630
}
2731

2832
/// User profile information, visible only to the Firebase project's apps.

packages/firebase_auth/firebase_auth_web/lib/src/interop/auth_interop.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,8 @@ class AuthSettings {
664664
// external factory AuthSettings({bool appVerificationDisabledForTesting});
665665
}
666666

667+
external dynamic get browserPopupRedirectResolver;
668+
667669
/// https://firebase.google.com/docs/reference/js/auth.multifactoruser.md#multifactoruser_interface
668670
@JS()
669671
@anonymous

0 commit comments

Comments
 (0)