Session Cookie

Improving Login and Signup Flows with Session Management
👨‍💼 Let's start in the
app/utils/auth.server.ts
where we can update the exported userIdKey to sessionKey, and then you can go to the
app/routes/_auth+/login.tsx
and the
app/routes/_auth+/signup.tsx
routes to fix those.
Aside from the normal refactoring variable names, we also now have the ability to use the session's expiration time instead of calculating that at the time we commit the cookie. Enjoy!

Please set the playground first

Loading "Session Cookie"
Loading "Session Cookie"