Hi there!
I started a new project with RW v8 , and wanted to host it on Vercel.
The project is on a dbAuth setup.
In local, everything is working fine, but on Vercel i have an auth issue.
After some explorations and after reading many articles about it i noted that the auth cookie is not sent with auth response on Vercel.
Seems to have something similar with Flightcontrol: App hosted with Flightcontrol, issue logging in/signing up - auth resetting cookie - #22 by Bennettbishop1
And also here: [Bug?]: Cookie/auth issues for vercel deployment on versions v8 + · Issue #11641 · redwoodjs/redwood · GitHub
I tried the solution proposed by @rob and @dthyresson about including credentials, but that not solve the issue.
I also played with cookie attributes in api/src/functions/auth.ts, but no combination of them works…
I’m using the vercel postgres db, but i don’t think it’s about the db connection, cause, i have no error, my auth transaction is responding ok (200). Juste the set-cookie is not sent then not stored, then redwood cannot detect the authenticated current user…
I created a similar repo to be able to demonstrate the issue:
And deployed it on vercel:
https://redwood-test-alpha.vercel.app
If anyone have any information to solve it, it could be marvelous!
Thanks a lot in advance