-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Credentials - Issue #606
Comments
Hey @dibeesh, Not sure if this will help, but had a similar
|
The API returns an expiry_date, store it along with the tokens and use it in the following requests and everything should play nicely. See #261 (comment) |
Hi @dibeesh - is this still an issue for you? If not, mind if I close this? |
Greetings! If this is still an issue, let us know! |
If you guys are using Firebase, then I advice y'all to switch to MongoDB since idToken can be a problem while implementing Google Authentication in your react native android project. Anyways idToken doesn't hold any significance other than verifying the user's identity, which can be done through other methods(accessTokens and sessions) too. We basically use googleapis in our project, which only requires the accessToken(it can be obtained in though simple google sign in, no matter what third-party platforms we use). |
0
down vote
favorite
I have an issue with Google plus access token. It is giving me "Invalid Credentials" error message sometimes, sometimes the same token show as active.
Following are the steps
The user confirms permission to access Google account with selected scopes.
The refresh token and access token is retrieved and saved to long time storage.
Used to refresh the token when ever needed by using stored refresh token
But sometimes I've experienced strange behaviour: Requests to Google APIs return Invalid Credentials (401) error. Refreshing the access token (using the stored refresh token) does not work.
Access token refresh method Using
googleapis npm module to refresh token https://www.npmjs.com/package/googleapis
Questions: What can be the reason for this behaviour?
Does this behaviour related to with any google api rate limit? because the same token works sometimes and not other-times.
Is there a way to validate the refresh token?
The text was updated successfully, but these errors were encountered: