Skip to main content

All Questions

1 vote
0 answers
230 views

Error calling gapi.client.oauth2.userinfo.get() getting profile information

I'm attempting to authenticate users with their google account using the implicit flow in order to retrieve that user's profile information, including: Email Phone number Organizational information (...
Jeff Fischer's user avatar
  • 2,139
3 votes
0 answers
347 views

Calling ` google.accounts.id.prompt` returns error 400 for browser that is does not have a google session

When calling prompt() from a browser that has a google session google.accounts.id.initialize({ client_id: MY_GOOGLE_CLIENT_ID, auto_select: false, callback: handleCredentialResponse }) ...
Petros Makris's user avatar
1 vote
1 answer
2k views

How to get profile information from Google Identity Services?

I am using the GAPI async/await example from https://developers.google.com/identity/oauth2/web/guides/migration-to-gis#gapi-asyncawait I'm having difficulty figuring out how to get information about ...
Jon H's user avatar
  • 313
2 votes
2 answers
718 views

Drive file picker from the older Google Sign-In platform library to the newer Google Identity Services library for authentication

I have a code where I read the file data as blob. I have implemented using the old gapi, how do I migrate from the older Google Sign-In platform library to the newer Google Identity Services library ...
Code Guy's user avatar
  • 3,200
3 votes
1 answer
379 views

Require Permission On Sign In With GIS Client

gapi.oauth2 is being deprecated so I'm trying to set up Google Sign In using the new GIS Client. However I'm having a serious issue when the user grants access to scopes. The checkbox for one of the ...
Dallin Davis's user avatar
2 votes
1 answer
1k views

Google Identity Service (GIS) and id_token

I'm using the new Google Identity Services to login a user to my web app, calling google.accounts.id.initialize(). I then send that id_token as credentials to the server on every request, which uses ...
codedread's user avatar
  • 1,382
1 vote
1 answer
2k views

Google - "Migrate to the new Google Identity Services library as soon as possible". Do we need to remove our use of google-api-php-client?

I received an email from Google stating that 'One or more of your web applications uses the legacy Google Sign-In JavaScript library. Please migrate your project(s) to the new Google Identity Services ...
dev's user avatar
  • 990
5 votes
1 answer
2k views

Migrating off of GAPI to Google Identity Services (GIS), server side question

How do I get a refreshed id token using the new system (GIS)? I have a web app that uses Google sign-in and sends an id_token to my servers to use some GCP services. I was using GAPI signin2/auth2 in ...
codedread's user avatar
  • 1,382
3 votes
2 answers
6k views

How do I use new google identity JS library to work with sheets?

Google introduced new Sign In JS library(gsi) a long time ago but Google Sheets documentation still shows examples using gapi. What would be the best approach to combine/replace gapi with gsi? May I ...
Kostiantyn's user avatar
  • 1,823
1 vote
0 answers
820 views

verifying the integrity of the ID token causes the error

I'm trying to add Google auth and I faced an issue: I'm using this repo code: https://github.com/conorbailey90/Google-Auth Here I have the front-end code. this is just sending a post request with ...
Sara Ree's user avatar
  • 3,533
0 votes
1 answer
1k views

How to use Google Identity API and Sign in without a popup window?

I am new to StackOverflow and I am implementing a Google Sign-in for my application.I am following the guide from here https://developers.google.com/identity/sign-in/web/sign-in But i do not not want ...
PurpleBottle's user avatar
0 votes
1 answer
1k views

How to retrieve email address from id_token Google Javascript API client (GAPI)

I have an SPA with Firebase backend and have integrated Google Calendar access. To be able to authorise a user to use his/her Google Calendar I am using the gapi.auth2.authorize(params, callback) ...
mesqueeb's user avatar
  • 6,195
7 votes
1 answer
7k views

How to use the Google API client for JavaScript with a One-Tap sign in flow?

I'm using Google One-Tap sign in to authenticate users, and after the user is authenticated I get an access token. I know that I can use this access token in order to work with the Google API client ...
mesqueeb's user avatar
  • 6,195
1 vote
1 answer
985 views

How does Google One-Tap manage my refresh tokens? How does it differ from GAPI?

In the documents of Google One-Tap sign in, it says: Returning users are signed in automatically, even when they switch devices or platforms, or after their session expires. Question 1: But it ...
mesqueeb's user avatar
  • 6,195
3 votes
0 answers
885 views

Incremental combined authorization with Google SignIn for Server-Side Apps

When login with Server-Side flow, or ask authorization for additional scopes, with auth2.grantOfflineAccess, the result access/refresh token is not getting combined with previous authorized scopes, ...
Mael's user avatar
  • 427