tRPC throwing UNAUTHORIZED after logging in

After I'm logging in using my custom sign-in page (next-auth), I get a redirect to /dashboard. But there, all my tRPC queries are failing and throwing UNAUTHORIZED error. After I simply reload the page everything seems to be working, why is it so?

Here's the code: https://github.com/Bartek532/rssmarkable
GitHub
Open source app for syncing RSS feeds to reMarkable tablet 🔄
  • GitHub - Bartek532/rssmarkable: Open source app for syncing RSS feeds to reMarkable tablet 🔄
Was this page helpful?