erquhart
erquhart5mo ago

Setting oauth scopes with Convex Auth

This may be Auth.js specific, but I'm hoping it can be handled in the Convex Auth api. The default scope for GitHub OAuth includes a user's private profile data, rather than just their email. I'd like to use read:user scope only. Is there a way to do that currently?
2 Replies
Michal Srb
Michal Srb5mo ago
I think right now it's read:user user:email You can customize it via:
Github({
authorization: {
params: { scope: "read:user" },
},
})
Github({
authorization: {
params: { scope: "read:user" },
},
})
erquhart
erquhartOP5mo ago
Nice, figured there was an api - thank you!