We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f216807 commit 19935a5Copy full SHA for 19935a5
packages/auth-compat/test/integration/webdriver/static/redirect.js
@@ -39,8 +39,14 @@ export function idpLinkRedirect() {
39
.currentUser.linkWithRedirect(new compat.auth.GoogleAuthProvider());
40
}
41
42
-export function redirectResult() {
43
- return compat.auth().getRedirectResult();
+export async function redirectResult() {
+ const result = await compat.auth().getRedirectResult();
44
+ if (result.user === null && result.credential === null) {
45
+ // In the new SDK (and consequently the tests), null is returned instead of
46
+ // a credential with a null user/cred
47
+ return null;
48
+ }
49
+ return result;
50
51
52
export async function generateCredentialFromRedirectResultAndStore() {
0 commit comments