Google and GitHub

Every My Auths sign-in and sign-up page has Continue with Google and Continue with GitHub buttons. They work for every application with nothing to set up: you don't create a Google or GitHub app, register redirect URLs with them, or store their secrets. My Auths is the one talking to Google and GitHub.

For your application, a user who signs in with Google or GitHub looks exactly like one who used a password. You get the same tokens, the same claims and the same sub.

One account, several ways in

My Auths links sign-in methods by email, so a person keeps one account however they sign in:

  • The first time someone uses Google or GitHub, My Auths looks for an account with that email. If there is one, the Google or GitHub account is linked to it; otherwise a new account is created.
  • After that, the linked Google or GitHub account always signs in to the same My Auths account.
  • Accounts created through Google or GitHub have a verified email, so email_verified is true.

Linking also protects the real owner of an email. If someone had created a password account with an email they never verified, and the owner of that email later signs in with Google or GitHub, the unverified password is removed. Whoever set it never proved the email was theirs. The owner can add a password of their own at any time with Forgot password?.

Two-step verification

Users who turned on two-step verification are asked for their code after Google or GitHub too, before they return to your application.

Signing out

Signing out of your application and of My Auths (see Sign-in Flow) doesn't sign the user out of Google or GitHub.