Does anyone have any examples on how to declare global user context from database with t3 stack?
I know I can get the session from next-auth with useSession() but I need a way to get current user ID from the database. useSession() is not connected to the database.
3 Replies