Hi!
My application allows users to either Sign Up or Sign In with Github. However, if a user is already logged in via github, they are silently authenticated and bypass Github’s login screen. This is a problem, because we want users with multiple github accounts to be able to login with their different accounts.
I tried setting “prompt” to “login” as described in the documentation for authorize, but it had no effect. Here is my code:
This mainly depends on how GitHub handles a user who has a session already, the prompt: login you are currently using will only make Auth0 prompt the user to login again, but as soon as the user selects GitHub, it is down to how GitHub handles the authorization request.
In order to always prompt the user to login to a GitHub account, you could try passing the prompt: login parameter as an upstream parameter by adding it at the connection level:
Whilst prompt wasn’t listed as an option on the GitHub docs, it did appear to ask me to login to a GitHub account despite having a GitHub session when I tested it: