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.
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.
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.
It turns out my token just expired. I grabbed a new token and it works!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With