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 71c16e5 commit f7b16abCopy full SHA for f7b16ab
src/react/client.tsx
@@ -243,7 +243,10 @@ 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?.href !== undefined) {
+ // Using a deprecated property because it's the only explicit check
247
+ // available, and they set it explicitly and intentionally for this
248
+ // purpose.
249
+ if (navigator.product !== "ReactNative") {
250
window.location.href = url.toString();
251
}
252
return { signingIn: false, redirect: url };
0 commit comments