mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-16 12:38:19 -04:00
Fix
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user