Chipi
Chipi•3mo ago

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 🤔
2 Replies
Convex Bot
Convex Bot•3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart•2mo ago
You can customize the profile to include the access token: https://labs.convex.dev/auth/config/oauth#retrieving-other-profile-information
OAuth - Convex Auth
Authentication library for your Convex backend

Did you find this page helpful?