Will Google API Client Library for JavaScript be unavailable after March 31, 2023?

651 views Asked by At

I am developing a Web Application based on Google App Engine. This application uses Google Sign-In JavaScript platform library for Web for Oauth 2.0 and Google API Client Library for JavaScript to access Google APIs.

We recently received the following notice.
https://developers.googleblog.com/2022/03/gis-jsweb-authz-migration.html

Complete your migration prior to March 31, 2023, after which the Platform Library will no longer be available for download and web apps relying upon deprecated authorization features to obtain access tokens for calling Google APIs will no longer work as intended.

Web applications using gapi.client from the Google API Client Library implicitly load and use the Platform Library’s soon to be deprecated gapi.auth2 module when working with access tokens to call Google APIs. Updates to your web app to explicitly include the new Identity Services library, manage access token requests, and replace auth2 module references with newer equivalent methods are necessary.

In accordance with this notice, I have replaced Google Sign-In JavaScript platform library for Web with Google Identity Services JavaScript library. But I plan to continue to use Google API Client Library for JavaScript for access to the Google API.

Will Google API Client Library for JavaScript be unavailable after March 31, 2023?

1

There are 1 answers

9
Linda Lawton - DaImTo On

There is a little confusion here - let me try to clean it up a bit.

Integrating Google Sign-In into your web app is for sign-in and authorization. It lets you

  1. login, sign-in authenticate a user.
  2. It also lets you authorize an application to access users' private data behind one of the google APIs (drive, calendar, ....)

There is a difference between sign-in and authorize. The Google API client library for JavaScript is for authorization.

Google has released a new web identity system. This system splits the two up. Identity / signin / authencation now falls under the authencation section of the documentation, and for JavaScript you get a bunch of shiny buttons you can click to login a user into your application.

While authorization is under a different system, called 3p authorization.

To answer your question: no, Google API Javascript client libary is not being deprecated. If it was, it would say so on the Github page. You can continue to use this. Or switch to 3p - it is still unclear to me if this is the same library or a new library. I have sent a message off to Google to find out.