Skip to content

Commit 4732a65

Browse files
committed
Add correct resolver to user methods
1 parent 217d9e8 commit 4732a65

File tree

1 file changed

+5
-4
lines changed
  • packages-exp/auth-compat-exp/src

1 file changed

+5
-4
lines changed

packages-exp/auth-compat-exp/src/user.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import * as exp from '@firebase/auth-exp/internal';
1919
import * as compat from '@firebase/auth-types';
20+
import { CompatPopupRedirectResolver } from './popup_redirect';
2021
import {
2122
convertConfirmationResult,
2223
convertCredential
@@ -91,15 +92,15 @@ export class User implements compat.User, Wrapper<exp.User> {
9192
exp.linkWithPopup(
9293
this.user,
9394
provider as exp.AuthProvider,
94-
exp.browserPopupRedirectResolver
95+
CompatPopupRedirectResolver
9596
)
9697
);
9798
}
9899
linkWithRedirect(provider: compat.AuthProvider): Promise<void> {
99100
return exp.linkWithRedirect(
100101
this.user,
101102
provider as exp.AuthProvider,
102-
exp.browserPopupRedirectResolver
103+
CompatPopupRedirectResolver
103104
);
104105
}
105106
reauthenticateAndRetrieveDataWithCredential(
@@ -139,15 +140,15 @@ export class User implements compat.User, Wrapper<exp.User> {
139140
exp.reauthenticateWithPopup(
140141
this.user,
141142
provider as exp.AuthProvider,
142-
exp.browserPopupRedirectResolver
143+
CompatPopupRedirectResolver
143144
)
144145
);
145146
}
146147
reauthenticateWithRedirect(provider: compat.AuthProvider): Promise<void> {
147148
return exp.reauthenticateWithRedirect(
148149
this.user,
149150
provider as exp.AuthProvider,
150-
exp.browserPopupRedirectResolver
151+
CompatPopupRedirectResolver
151152
);
152153
}
153154
sendEmailVerification(

0 commit comments

Comments
 (0)