adrianhajdin / banking

Horizon is a modern banking platform for everyone.
https://banking-jet.vercel.app
MIT License
1.9k stars 578 forks source link

Problem with Sign-In after log out #43

Open alanahmad558192 opened 2 months ago

alanahmad558192 commented 2 months ago

Hi, I followed the steps on your YouTube channel until the timestamp 03:23:27. After sign-up a user and log-out. When I tried to sign in using the same registered email, which had been signed. The page does not change to the main page i.e., the page remains at the sign-in page. When I looked at the VS Code terminal the status was 200 Sign-in. Could you please advise on which part I need to amend the code?

Thank you.

KudoC0nan commented 1 month ago

It wasn't setting the session cookie which I think will be covered later in the video. if (response) { cookies().set("appwrite-session", response.secret, { path: "/", httpOnly: true, sameSite: "strict", secure: true, }); } We just have to add this to the sign-in function