[Bug] Discord `oauthScopesOnSignIn` not taking effect
The following configuration is not respected, only the default identity and email scopes are used when signing in:
export const stackServerApp = new StackServerApp({
// ...
oauthScopesOnSignIn: {
discord: ["identify", "email", "guilds"],
}
});
I am not sure if this issue is limited to Discord.
Perhaps it would be interesting to be able to set default scopes for OAuth providers from the service dashboard, is this something that was ever considered?
I guess this was a result of connecting the account before specifying oauthScopesOnSignIn, since calling useConnectedAccount on the CurrentUser does update the connection to include the scopes.
How do you get the access token? So you still need to require the scopes when using useConnectedAccounts('discord', { scopes: [...scopes you need]} );
Can't reproduce this error. Let me know if anyone encounters this again