Re-implement authentication (#136)
* Remove hasura and hasura-auth * Implement authentication
This commit is contained in:
@ -6,8 +6,7 @@ function Login() {
|
||||
const navigate = useNavigate();
|
||||
useEffect(() => {
|
||||
if (!hasAccessToken()) {
|
||||
window.location.href =
|
||||
process.env.REACT_APP_AUTH_URL + '/signin/provider/google' || '';
|
||||
window.location.href = process.env.REACT_APP_AUTH_URL + '/google' || '';
|
||||
} else {
|
||||
navigate('/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user