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.
1 Reply
Solution
The solution was to RTFM.
https://create.t3.gg/en/usage/next-auth