pulling session data on server?

Is there a good solution for getting an authenticated user's id on the server? I need to pull a resource from the database based on a user's projects, which means I need the userId of the authenticated user. Is there a good solution to pull the userId on the server? I'd really hate to make my api calls on the client if I don't have to.
Solution:
The solution was to RTFM. https://create.t3.gg/en/usage/next-auth...
Create T3 App
NextAuth.js 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
Jump to solution
1 Reply
Solution
MaxControl
MaxControl9mo ago
The solution was to RTFM. https://create.t3.gg/en/usage/next-auth
Create T3 App
NextAuth.js 🚀 Create T3 App
The best way to start a full-stack, typesafe Next.js app.
Want results from more Discord servers?
Add your server