diff --git a/src/components/profile/ProfileAccounts/index.tsx b/src/components/profile/ProfileAccounts/index.tsx index 7760457e..a720dae0 100644 --- a/src/components/profile/ProfileAccounts/index.tsx +++ b/src/components/profile/ProfileAccounts/index.tsx @@ -31,8 +31,11 @@ const ProfileAccountsUnconnected: FC = ({ is_loading, }) => { const onMessage = useCallback(event => { + // TODO: handle errors if (event?.data?.type !== 'oauth_attach' || !event?.data?.payload?.token) return; + const token = event?.data?.payload?.token; + console.log('GOT TOKEN!!!', token); }, []);