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');