1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

added todo

This commit is contained in:
Fedor Katurov 2020-07-27 14:17:57 +07:00
parent e94d776ee5
commit 2466f01b0b

View file

@ -31,8 +31,11 @@ const ProfileAccountsUnconnected: FC<IProps> = ({
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);
}, []);