This guide helps you to understand the necessary changes and steps to successfully migrate JavaScript libraries from the older Google Sign-In platform

Migrating from Google Sign-In

submited by
Style Pass
2021-08-12 04:30:06

This guide helps you to understand the necessary changes and steps to successfully migrate JavaScript libraries from the older Google Sign-In platform library to the newer Google Identity Services library.

For developers, our focus has been to reduce complexity, improve security, and make your integration as quick and easy as possible. Some of these improvements include:

If you are migrating from the existing Google Sign-In button and are only interested in signing users into your site, the most straightforward change is to simply update to the new personalized button. This can be accomplished by swapping JavaScript libraries and updating your codebase to use a new sign-in object.

The older Google Sign-In platform library: apis.google.com/js/platform.js, and Google APIs client library for JavaScript: gapi.client, are no longer required for user authentication and authorization. They have been replaced by a single new Google Identity Services JavaScript library: accounts.google.com/gsi/client.

The older three JavaScript modules: api, client, and platform used for sign-in are all loaded from apis.google.com. To help you identify locations where the old library might be included in your site, typically:

Leave a Comment