From 6ba3c3ffbd20abd5a2364a4b7f02f8d98e58d516 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 30 Oct 2025 13:53:59 +0100 Subject: [PATCH] Fix --- web/pages/_app.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index 68a8e9cc..1103ff4d 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -67,8 +67,12 @@ function MyApp({Component, pageProps}: AppProps) { useEffect(() => { async function oauthRedirect(event: any) { console.log('Received oauthRedirect event:', event); - const detail = event + const detail = event.data console.log('OAuth data:', detail); + if (!detail) { + console.error('No detail found in event'); + return; + } const url = new URL(detail); const code = url.searchParams.get('code');