We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b3efa commit 6ba3c3fCopy full SHA for 6ba3c3f
web/pages/_app.tsx
@@ -67,8 +67,12 @@ function MyApp({Component, pageProps}: AppProps<PageProps>) {
67
useEffect(() => {
68
async function oauthRedirect(event: any) {
69
console.log('Received oauthRedirect event:', event);
70
- const detail = event
+ const detail = event.data
71
console.log('OAuth data:', detail);
72
+ if (!detail) {
73
+ console.error('No detail found in event');
74
+ return;
75
+ }
76
const url = new URL(detail);
77
78
const code = url.searchParams.get('code');
0 commit comments