ChipiC
Convex Communityβ€’8mo agoβ€’
2 replies
Chipi

Using the GitHub API for an OAuth user

I've followed the instructions for setting up OAuth via GitHub and I have authentication working for my app πŸ™Œ

I've created some Convex actions to do various things with GitHub REST API (via the Octokit npm package) but for now I'm just using my own Personal Access Token. I'd like to change this to use the logged in users credentials instead of my own token.

I couldn't find how to access the users token once they've logged in.
Any advice for how I can make this work?

I've found this page from Auth.js but as I'm not using Auth.js directly and just using Convex Auth, I'm not sure how to do this πŸ€”
Was this page helpful?