nxpm / stack

🥭 nxpm-stack lets you generate a complete and opinionated full-stack application in a Nx Workspace, ready to extend and deploy!
https://npm.im/@nxpm/stack
MIT License
108 stars 14 forks source link

Generated AuthStore needs to verify authenticated connection after login/register #62

Closed beeman closed 3 years ago

beeman commented 3 years ago

Expected Behavior

After login or register, the authenticated connection should verified by retrieving the me Query.

Current Behavior

The session is not verified. When a login success but somehow the cookie does not get set, the session is invalid and will not work. This should be prevented by checking the session.

Steps to Reproduce (for bugs)

  1. Deploy a generated app on Heroku
  2. By default, cookie will not be set because of missing API_COOKIE_DOMAIN env var.
  3. Register: the UI will let you in, you won't have a session
beeman commented 3 years ago

Fixed here.