Disabling email scope on Github oath

Hey! I'm currently trying to use better-auth with drizzle. I want to use Github's oath to sign the users in, though I don't want to access their emails. I've tried adding scopes like read_user, read:user, profile or similar to the scopes yet nothing really works. They all still require emails to be read. Is there any way to add a scope that does this? Has this been added to better-auth yet? Doc link
OAuth | Better Auth
How Better Auth handles OAuth
Solution:
Got a fix: ```ts github: { // ... disableDefaultScope: true,...
Jump to solution
1 Reply
Solution
filyys
filyys4w ago
Got a fix:
github: {
// ...
disableDefaultScope: true,
scope: ["read:user"],
},
github: {
// ...
disableDefaultScope: true,
scope: ["read:user"],
},

Did you find this page helpful?