google-identity
Documentation for the automatic “Continue as” Google popup
Edit (October 29, 2020): The first link is now working again (as pointed out by @ManSamVampire): https://developers.google.com/identity/one-tap/web Edit (November 9, 2019): It seems the links now lead to 404s. I can’t find any information about the disappearance of One Tap sign-in. Original Answer: I had the same question and found this (I Googled “google automatic … Read more
How to refresh expired google sign-in logins?
If the token is expired, you can call gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse(). It returns a Promise.
Error 12501 authenticating with google sign-in
Well, this is very embarrassing, but I figured it out: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(AuthenticatedActivity.this.getResources().getString(R.string.server_client_id)) .requestEmail().build(); I was sending it the resource ID instead of dereferenced string resource.
New Google sign in Android
I had exactly the same problem and i have found the solution. If you follow the documentation found here: https://developers.google.com/identity/sign-in/android/start-integrating The first step tells you to create the configuration file (which creates an OAuth 2.0 client ID for you and inserts it into the google-services.json) Then later, it says again about creating a OAuth 2.0 … Read more