nxpm/stack

Generated AuthStore needs to verify authenticated connection after login/register

beeman opened this issue · 1 comments

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

Fixed here.