#Not recognizing login (Next.js & Payload serverless)

2 messages · Page 1 of 1 (latest)

waxen oriole
#

I setup a next project using create-next-app, then setup payload using next-payload's instruction. I have a user model with auth enabled.

I run it, everything compiles and runs. I navigate to the admin panel and it redirects me to create the initial user. Enter details, submit, and it creates the user successfully. It does not log me in as the user (which I thought it did previously) and instead redirects to login page. I enter the login details and it successfully submits and sets the payload-token cookie.

However, it's still not acknowledging that im logged in and just loads the login page again. Refresh, restart, etc. does not seem to fix it. Is this something that is my fault? Does this happen to anyone else?

edgy reefBOT