Google Identity Services is migrating to FedCM APIs. Follow the
migration guide to review potential changes and avoid negative impacts for user sign-in to your website.
Load the client library
Be sure to load the client library on any page that a user might sign in on. Use
the following code snippet:
<script src="https://accounts.google.com/gsi/client" async></script>
You can optimize your pages loading speed if you load the script with the
async
attribute.
Refer to the HTML and JavaScript API references for the list of
methods and properties the library supports.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["The Google Identity Services client library must be loaded on any webpage where users might sign in, using the provided code snippet."],["Loading the script with the `async` attribute improves page loading performance."],["Developers can find details about the library's functionalities in the HTML and JavaScript API references."]]],[]]