Custom runtime scope for microsoft provider
Hi, im having trouble requesting additional scopes when signing a user in specifically using microsoft, my auth is configured like this
and i have two different places where i want to either only read basic user info or also their mailbox
but using those would result in microsoft saying "scope" param is missing

Solution:Jump to solution
oh someone already did it: https://github.com/better-auth/better-auth/pull/3013
GitHub
fix: scope issues for Google and Microsoft by jafri · Pull Request...
For Microsoft: Allows incremental scope expansion
For Google: Return all granted scopes to current key, so that signIn does not overwrite previously granted scopes in db
2 Replies
nvm, it's a bug the the package, i'll submit a fix pr
Solution
oh someone already did it: https://github.com/better-auth/better-auth/pull/3013
GitHub
fix: scope issues for Google and Microsoft by jafri · Pull Request...
For Microsoft: Allows incremental scope expansion
For Google: Return all granted scopes to current key, so that signIn does not overwrite previously granted scopes in db