diff --git a/src/components/ui/NeynarAuthButton/AuthDialog.tsx b/src/components/ui/NeynarAuthButton/AuthDialog.tsx index 69c2c9a..724d018 100644 --- a/src/components/ui/NeynarAuthButton/AuthDialog.tsx +++ b/src/components/ui/NeynarAuthButton/AuthDialog.tsx @@ -118,9 +118,9 @@ export function AuthDialog({ const content = getStepContent(); return ( -
-
-
+
+
+

{isError ? 'Error' : content.title}

@@ -144,73 +144,75 @@ export function AuthDialog({
- {isError ? ( -
-
- {error?.message || 'Unknown error, please try again.'} +
+ {isError ? ( +
+
+ {error?.message || 'Unknown error, please try again.'} +
-
- ) : ( -
-
- {typeof content.description === 'string' ? ( -

- {content.description} -

- ) : ( - content.description + ) : ( +
+
+ {typeof content.description === 'string' ? ( +

+ {content.description} +

+ ) : ( + content.description + )} +
+ +
+ {content.showQR && content.qrUrl ? ( +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + QR Code +
+ ) : step === 'loading' || isLoading ? ( +
+
+
+ + {step === 'loading' + ? 'Setting up access...' + : 'Loading...'} + +
+
+ ) : null} +
+ + {content.showOpenButton && content.qrUrl && ( + )}
- -
- {content.showQR && content.qrUrl ? ( -
- {/* eslint-disable-next-line @next/next/no-img-element */} - QR Code -
- ) : step === 'loading' || isLoading ? ( -
-
-
- - {step === 'loading' - ? 'Setting up access...' - : 'Loading...'} - -
-
- ) : null} -
- - {content.showOpenButton && content.qrUrl && ( - - )} -
- )} + )} +
); diff --git a/src/components/ui/NeynarAuthButton/index.tsx b/src/components/ui/NeynarAuthButton/index.tsx index 0391818..c78516e 100644 --- a/src/components/ui/NeynarAuthButton/index.tsx +++ b/src/components/ui/NeynarAuthButton/index.tsx @@ -378,7 +378,7 @@ export function NeynarAuthButton() { } // For backend flow, the session will be handled by NextAuth }, - [useBackendFlow] + [useBackendFlow, fetchUserData] ); // Error callback @@ -538,12 +538,7 @@ export function NeynarAuthButton() { setDialogStep('signin'); setShowDialog(true); frontendSignIn(); - - // Open mobile app if on mobile and URL is available - if (url && isMobile()) { - window.open(url, '_blank'); - } - }, [isError, reconnect, frontendSignIn, url]); + }, [isError, reconnect, frontendSignIn]); const handleSignOut = useCallback(async () => { try {