This commit is contained in:
MartinBraquet
2025-10-30 13:53:59 +01:00
parent 67b3efad4c
commit 6ba3c3ffbd

View File

@@ -67,8 +67,12 @@ function MyApp({Component, pageProps}: AppProps<PageProps>) {
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');