Giter Club home page Giter Club logo

Comments (9)

richdho avatar richdho commented on July 19, 2024 12

@mitjarobic @foxted @kevin1193
You might use a wrong secret. Please make sure that you got it from the right place:
It is in the project setting -> database tab
http://stackoverflow.com/a/37418932

from firebase-php.

chroda avatar chroda commented on July 19, 2024 3

Dudes, go to https://console.firebase.google.com/project/[projectname]/settings/serviceaccounts/databasesecrets

Copy secret.

from firebase-php.

kevin1193 avatar kevin1193 commented on July 19, 2024 1

I think this is resolved already. Just use the database secret instead of token.

from firebase-php.

mitjarobic avatar mitjarobic commented on July 19, 2024

I am using the database secret and i get the error:

"""
{\n
"error" : "Could not parse auth token."\n
}\n
"""

Does it still work for you?

from firebase-php.

foxted avatar foxted commented on July 19, 2024

Still getting this error as well:

"""
{\n
"error" : "Could not parse auth token."\n
}\n
"""

Any tips?

from firebase-php.

Bikeshtri avatar Bikeshtri commented on July 19, 2024

thanks @richdho it is working now

from firebase-php.

dusko23 avatar dusko23 commented on July 19, 2024

Hi kevin1193, mitjarobic
what about this statement.
Authenticating with a database secret has been officially deprecated since November 2016 and will be removed from this library in Release 3.0.
[http://firebase-php.readthedocs.io/en/latest/authentication.html]
Using secret appears to be of short life time. Building app on secret does not feel safe in medium run.
Any other suggestion how to make protected database to work with token ?

from firebase-php.

ivent avatar ivent commented on July 19, 2024

Hello, I also had problems with the token error with the latest interface of firebase that was resolved when changing through the secret, but there is a big alert saying that it has been discontinued, you could do an update to update this script and do the Login as updated?

from firebase-php.

thiagopnobre avatar thiagopnobre commented on July 19, 2024

The link https://console.firebase.google.com/project/[projectname]/settings/serviceaccounts/databasesecrets is deprecated now.

This issue needs to be reopened because the new available key does not works with the gem.

from firebase-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.