Retrieving the GitHub username from the session object.

I'm looking for a way to retrieve the username of the GitHub account used for authentication and pass it into my session object. If you have a solution, I'm all ears!
2 Replies
Mocha
Mocha10mo ago
You can retrieve it in trpc.ts if you’re using tRPC context. The same function you’re using to pass the session and verify that the session has a user id. Happy to help if you can post that part of your file.
Swiichy
SwiichyOP10mo ago
I don't use TRPC, is there a way to do this without? https://github.com/SwiichyCode/GitShareSpace/blob/main/src/server/auth.ts
GitHub
GitShareSpace/src/server/auth.ts at main · SwiichyCode/GitShareSpace
GitShareSpace is a community-driven platform for sharing GitHub repositories, fostering collaboration, and connecting developers worldwide. With GitShareSpace, users can effortlessly share their re...
Want results from more Discord servers?
Add your server