Skip to content

Commit 08d8be0

Browse files
committed
fix: mobile brave window block
1 parent fe0600b commit 08d8be0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

packages/shared/src/components/auth/AuthOptionsInner.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ import {
2121
betterAuthSendVerificationOTP,
2222
betterAuthVerifyEmailOTP,
2323
} from '../../lib/betterAuth';
24-
import { webappUrl, broadcastChannel, isTesting } from '../../lib/constants';
24+
import {
25+
webappUrl,
26+
broadcastChannel,
27+
isTesting,
28+
isBrave,
29+
} from '../../lib/constants';
2530
import { getUserDefaultTimezone } from '../../lib/timezones';
26-
import { isIOSNative } from '../../lib/func';
31+
import { isIOSNative, isMobile } from '../../lib/func';
2732
import { generateNameFromEmail } from '../../lib/strings';
2833
import { generateUsername, claimClaimableItem } from '../../graphql/users';
2934
import useRegistration from '../../hooks/useRegistration';
@@ -531,7 +536,7 @@ function AuthOptionsInner({
531536
onAuthStateUpdate?.({ isLoading: false });
532537
return;
533538
}
534-
if (isIOSApp || router?.query?.brave) {
539+
if (isIOSApp || (isBrave() && isMobile())) {
535540
window.location.href = socialUrl;
536541
return;
537542
}

0 commit comments

Comments
 (0)