The beta test program for this API is currently closed. We are improving the API's cross-browser functionality and will provide updates here in the coming months.

Get started with automatic sign-in and one-tap sign-up

To use Google's streamlined sign-in and sign-up flows, first get your Google API client ID. Then, on each page users can sign in on, load the googleyolo client library.

Get your Google API client ID

  1. Open the Credentials page of the Google APIs console.
  2. Create or select a Google APIs project. If you already have a Google Sign-In button you should use the existing project and web client ID.
  3. If your project does not have a Web application type client ID, click Create credentials > OAuth client ID to create one. Be sure to include your site's domain in the Authorized JavaScript origins field.
  4. Take note of the client ID string displayed in the console. A client ID looks like the following example:

    You will need this value when you make credential and hint requests, and when you verify ID tokens on your backend.

Load the JavaScript client library

  1. Load the googleyolo client library on any page a user might sign in on:

    <script src=""></script>

    You can optimize your page's loading speed by loading the script with the async and defer attributes.

  2. Register a onGoogleYoloLoad callback to be notified when the library has loaded:

    window.onGoogleYoloLoad = (googleyolo) => {
      // The 'googleyolo' object is ready for use.