hey i am trying to follow along with this youtube tutorial.
If I sign up a user, the user gets saved on appwrite in the auth and database section but i am not redirect to the logged in page and i dont get an user session cookie token (cookieFallback) in the local storage.
The code is absolutely the same from the tutorial.
in the console i got a 401 error.
Summary
User is following a YouTube tutorial to create a social media app using JSM. After signing up a user, the user is not redirected to the logged-in page and there is no user session cookie token in the local storage. Console shows a 401 error. Another user suggested disabling one of the lines in the useEffect, specifically `cookieFallback === null ||`. The original user tried the suggestion but it didn't solve the issue. Another user suggested adding a console log before the `navigate("/sign-in")` line in the useEffect. Another user insists that their code is correct and the issue may be that the useEffect is not being triggered.
beppoh
Nov 1, 2023, 17:44
It's the use effect, you have to disable one of the lines. I forget which one
Hurricane105
Rank 1: Thread
Nov 1, 2023, 18:13
hey thanks for the answer. i tried everything with the useEffect. i dont get the cookieFallback.