Skip to content

Google, Microsoft and GitHub sign-in

Let people sign in with an account they already have, using your own credentials.

As well as email and password, your app can let people sign in with Google, Microsoft or GitHub. The button appears on your sign-in and sign-up screens once you've set the provider up.

The credentials are yours, not YeshBe's. That means the consent screen shows your app's name, and the connection belongs to you.

Where it is#

Under Users in the dashboard, below the list of accounts. One card per provider; click one to open it.

Each card carries its own instructions — the exact menu path through Google Cloud Console, Microsoft Entra or GitHub's developer settings, with a link straight to the right page. So you don't have to find your way around a console you may never have opened.

Set one up#

  1. Follow the steps on the card

    They end with a callback URL — sometimes called a redirect URI — which the card shows with a copy button. The provider needs it exactly as it is.

  2. Create the credentials

    In the provider's console, create an OAuth client for a web application and paste the callback URL into its allowed redirect URIs. You get back a client ID and a client secret.

  3. Paste them in

    Both fields show the shape each provider's values take, so you can tell at a glance whether you've copied the right thing. The secret is stored encrypted and never shown again or sent to a browser.

  4. Save, then test

    Test opens a real sign-in in a popup, with your saved keys. Nobody is signed in to your app by it — the popup reports whether the provider accepted the keys and the address, and the card keeps a pass or fail mark from the last test.

    A callback URL that doesn't match is the usual problem, and the provider's own error message says so clearly.

  5. Turn it on

    Tick the switch that activates the provider, and the button appears in your app.

Test stays disabled until both the ID and the secret are saved, since there is nothing to test without them.

New accounts#

Each provider has its own allow sign-up switch, and the two cases are different:

  • On — anyone with that kind of account can create an account in your app by pressing the button.
  • Off — the button only signs in people who already have an account. Someone new is turned away.

Off is what you want for an internal tool where you create the accounts. On is what you want for anything open to the public.

Matching to an existing account#

Someone who signed up with an email and password, and later presses the provider button with the same address, is signed in to the same account. They don't end up with two.

Changing or removing#

Paste a new secret and save. Leaving the secret blank keeps the one already stored — so you can change the client ID, or the sign-up switch, without having to find the key again.

Remove clears the credentials for that provider and takes its button out of your app. It appears only once something is saved.

Next#