Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sign-In for Android Invalid ID Token

I am following the instructions on the Google Sign-In for Android guide (https://developers.google.com/identity/sign-in/android/backend-auth), and I am trying to validate my ID token. When I go to https://www.googleapis.com/oauth2/v3/tokeninfo?id_token=XYZ123 in my browser (where XYZ123 is my id token I retrieved using String idToken = acct.getIdToken();, I get this response:

{
 "error_description": "Invalid Value"
}

My id token starts with eyJ and is 1038 characters long.

I've also tried the solution here Android : Google Sign-in Invalid token to no avail.

Any help would be appreciated.

like image 692
VIN Avatar asked Feb 26 '16 21:02

VIN


People also ask

How do I fix invalid token?

Generate a New Link The “Invalid Token” message indicates that a link has either been used previously, or has expired. To generate a new link, reset your password again through the main login screen. If you continue to have trouble, ensure you are referencing the most current Password Reset link.

What does invalid ID token mean?

If you're trying to reset your password and you receive an error citing an “invalid token” or asking you for your token, it's likely that the link you clicked on to reset your password has expired. For security reasons, passwords are never sent out across the Internet.


1 Answers

It turns out my token just expired. I grabbed a new token and it works!

like image 108
VIN Avatar answered Sep 29 '22 09:09

VIN