Fetch jwt token from hasura-auth with refresh_token

This commit is contained in:
Charles Bochet
2023-04-21 14:07:02 +02:00
parent f98f0e942e
commit c5f2850a3b
26 changed files with 212 additions and 61 deletions

View File

@ -6,7 +6,8 @@ function Login() {
const navigate = useNavigate();
useEffect(() => {
if (!refreshToken) {
window.location.href = process.env.REACT_APP_LOGIN_PROVIDER_URL || '';
window.location.href =
process.env.REACT_APP_AUTH_URL + '/signin/provider/google' || '';
}
navigate('/');
}, [refreshToken, navigate]);