Android : Google Sign-in Invalid Token
I am getting an error from the token I am receiving through google sign in android: { 'error': 'invalid_token', 'error_description': 'Invalid Value' } I also noticed that my tok
Solution 1:
Ok so I found the answer, the scopes must be written like this:
Stringscopes="oauth2:"
+ Scopes.PLUS_LOGIN
+ " "
+ Scopes.PROFILE;
And the endpoint differs from android to iOS
'https://www.googleapis.com/oauth2/v1/tokeninfo?id_token='; //for iOS
'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token='; //for android
Post a Comment for "Android : Google Sign-in Invalid Token"