# Signing up with Github instead of Signing In, even if there is already a logged in user

**URL:** <https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872>\
**Category:** Get Help\
**Tags:** github, signup, signin\
**Created:** [September 17, 2021, 10:39pm UTC](https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872 "2021-09-17T22:39:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zev\_izenberg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zev_izenberg/32/14541_2.png) [@zev\_izenberg](https://community.auth0.com/u/zev_izenberg)\
**Post date:** [September 17, 2021, 10:39pm UTC](https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872/1 "2021-09-17T22:39:21Z")

</div>

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](https://auth0.com/docs/libraries/auth0js#webauth-authorize-), but it had no effect. Here is my code:

const signUpWithGithub = () =\> {  
webAuth.authorize(  
{  
connection: ‘github’,  
prompt: ‘login’,  
},  
function (err) {  
if (err) displayError(err);  
},  
);  
}  
const loginWithGithub = () =\> {  
webAuth.authorize(  
{  
connection: ‘github’,  
},  
function (err) {  
if (err) displayError(err);  
},  
);  
};

Any ideas what I could be missing?

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [September 20, 2021, 5:22pm UTC](https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872/2 "2021-09-20T17:22:04Z")

</div>

Hi @zev_izenberg , welcome to the community!

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:

- [Pass Parameters to Identity Providers](https://auth0.com/docs/connections/pass-parameters-to-idps)

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:

- [Authorizing OAuth Apps - GitHub Docs](https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#web-application-flow)

(I removed the second [option](https://auth0.com/docs/connections/adding-scopes-for-an-external-idp#2-pass-scopes-to-authorize-endpoint) I previously posted as I realised this would only work for scopes and not additional parameters)

---

<div class="post-metadata">

**Author:** ![zev\_izenberg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zev_izenberg/32/14541_2.png) [@zev\_izenberg](https://community.auth0.com/u/zev_izenberg)\
**Post date:** [September 20, 2021, 5:29pm UTC](https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872/3 "2021-09-20T17:29:10Z")

</div>

Awesome, thanks so much for the reply. I’ll try those out.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 30, 2021, 9:55am UTC](https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872/4 "2021-09-30T09:55:37Z")

</div>

No worries! We’re here for you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 6, 2021, 12:18pm UTC](https://community.auth0.com/t/signing-up-with-github-instead-of-signing-in-even-if-there-is-already-a-logged-in-user/69872/5 "2021-10-06T12:18:48Z")

</div>


