Spotify Login
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 points to localhost:3001 (where the API is hosted)
Auth file: https://paste.learnspigot.com/unekivulit.php
Let me know if you need to see any other fileLearnSpigot: Send and save code snippets on our pastebin
LearnSpigot provides a free web-based pastebin service for storing and sharing code snippets with anyone. Powered by hastebin.

1 Reply
@Ping Hi, Sorry mate, any idea?
any help?