useSession returns unauthorized

I am using the standard t3 stack setup with NextAuth - session provider wrapped around it all. My middleware is set to protect all pages (default export). When i log in with credentials, and try to use useSession from my Component, i get status:unauthorized. In addition: The first initial page of my app loads, since i just authorized but when navigating to any other page, i have to auth again. What did I forget to implement ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server