Skip to content

Commit

Permalink
fix(auth): provide browserPopupRedirectResolver on init (#9146)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Jul 21, 2022
1 parent 328b40a commit bf1d9be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -22,7 +22,11 @@ export 'auth_interop.dart';
/// Given an AppJSImp, return the Auth instance.
Auth getAuthInstance(App app) {
return Auth.getInstance(auth_interop.initializeAuth(
app.jsObject, jsify({'errorMap': auth_interop.debugErrorMap})));
app.jsObject,
jsify({
'errorMap': auth_interop.debugErrorMap,
'popupRedirectResolver': auth_interop.browserPopupRedirectResolver
})));
}

/// User profile information, visible only to the Firebase project's apps.
Expand Down
Expand Up @@ -664,6 +664,8 @@ class AuthSettings {
// external factory AuthSettings({bool appVerificationDisabledForTesting});
}

external dynamic get browserPopupRedirectResolver;

/// https://firebase.google.com/docs/reference/js/auth.multifactoruser.md#multifactoruser_interface
@JS()
@anonymous
Expand Down

0 comments on commit bf1d9be

Please sign in to comment.