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.
It turns out my token just expired. I grabbed a new token and it works!