Files
twenty_crm/front/src/pages/AuthCallback.tsx
2023-02-02 20:40:44 +01:00

17 lines
324 B
TypeScript

import React, { useEffect } from 'react';
import { useGetAccessToken } from '../hooks/AuthenticationHooks';
function AuthCallback() {
const { token } = useGetAccessToken();
useEffect(() => {
if (token) {
window.location.href = '/';
}
}, [token]);
return <div></div>;
}
export default AuthCallback;