-
Notifications
You must be signed in to change notification settings - Fork 143
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
Authentication failed: invalid_token #3
Comments
Seem using firebase-server-sdk 3.0.1 solve the problem |
Is it possible to update the SDK in the sample? Thanks |
@winstonma done! |
Thanks This is the solution I found in Stackoverflow. Although your sample code have no problem. Some people (like me) would use your code a reference and expand their work. It would be great if any other developer didn't face the same problem and spend time searching stackoverflow. |
@winstonma totally agree, this one is my fault for not upgrading the sample dependency version as soon as |
I created a Firebase project and downloaded this repo, created service-account.json.
In addition in the Database.java I added some sample code from the Firebase QuickStart Guide - Save Data to store some data. However I got the following error
[WARN] PersistentConnection: pc_0 - Authentication failed: invalid_token (Access denied.)
Here is my database rules.
It should allows any read/write.
I have no idea how to get the auth done. Thanks for the help
The text was updated successfully, but these errors were encountered: