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 187ce7c commit bd044d9Copy full SHA for bd044d9
src/react/client.tsx
@@ -243,7 +243,7 @@ export function AuthProvider({
243
const url = new URL(result.redirect);
244
await storageSet(VERIFIER_STORAGE_KEY, result.verifier!);
245
// Do not redirect in React Native
246
- if (window.location !== undefined) {
+ if (window.location?.href !== undefined) {
247
window.location.href = url.toString();
248
}
249
return { signingIn: false, redirect: url };
@@ -359,7 +359,7 @@ export function AuthProvider({
359
return;
360
361
const code =
362
- typeof window?.location !== "undefined"
+ typeof window?.location?.search !== "undefined"
363
? new URLSearchParams(window.location.search).get("code")
364
: null;
365
// code from URL is only consumed initially,
0 commit comments