Hello, i'm having trouble with Spotify login on my NextJS & tRPC app, basically the login with Spotify works in the sense that the user is created in the database without issues, but after the redirect back to my site, I’m not actually logged in — the session isn’t recognized in the frontend.
I assume it might be a cookie issue, since spotify doesn't allow to use localhost as callback URL for safety reason, i chose to put my domain (actually a tunnel, but still), i'm really lost here, i'd appreciate any type of help!
Note:
api.samueledamico.com
api.samueledamico.com
points to localhost:3001 (where the API is hosted)