This seems to me like it could be a common problem but i have found no solution , sorry if there’s a similar thread because i couldn’t find it!
Basically the problem boils down to having 2 different GitHub Social Connections with different scopes.
Most of our applications need nothing more than just login through GitHub. It’s helpful that the default GitHub connection is already well set up and we even match with existing users that logged through Gmail with an extension.
But for a particular app (and possibly more in the near future) we want to ask for the
repo scope. Thus we need a second connection of the same social service but the Dashboard doesn’t seem to allow this. Is there a way that i missed? It would be so much easier that what follows.
So i created a Custom Social Connection with OAuth for GitHub, but i can’t seem to get the email for accounts that work for the default gmail connection (as an aside, i’d say the “Fetch User Profile Script” documentation could do with some more love ). Moreover (and probably related to this), these accounts are not joined with existing user accounts in Auth0. This problem could probably be solved by knowing exactly how the default GitHub connection is set up so that i can just replicate it in the new one.
Thank you in advance and if anything wasn’t clear don’t hesitate in replying!