Closed ca1c closed 2 years ago
I recently changed the authentication function on the frontend from this:
useEffect(() => { AuthenticateUser.then((username) => { setUserData({ username: username }); setAuthenticated(true); }) .catch((err) => { console.log(err); }) },[])
to this
useEffect(() => { AuthenticateUser.then((data) => { setAuthenticated(data.success); }) .catch((err) => { console.log(err); setAuthenticated(false); }) },[])
This needs to be updated on all pages.
I recently changed the authentication function on the frontend from this:
to this
This needs to be updated on all pages.