File tree Expand file tree Collapse file tree
packages/shared/src/components/auth Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ;
2530import { getUserDefaultTimezone } from '../../lib/timezones' ;
26- import { isIOSNative } from '../../lib/func' ;
31+ import { isIOSNative , isMobile } from '../../lib/func' ;
2732import { generateNameFromEmail } from '../../lib/strings' ;
2833import { generateUsername , claimClaimableItem } from '../../graphql/users' ;
2934import 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 }
You can’t perform that action at this time.
0 commit comments