Skip to content
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

Firebase auth adater requires an credential #5

Open
apoleo88 opened this issue Jul 19, 2020 · 0 comments
Open

Firebase auth adater requires an credential #5

apoleo88 opened this issue Jul 19, 2020 · 0 comments

Comments

@apoleo88
Copy link

Hi!

After an endless search of the generic error Uncaught internal server error.

I found out that the real error was: Firebase auth adater requires an credential. It is triggered in util.js and it isn't properly caught by index.js.

Because somehow it wasn't able to find the credential when passed in ParseServer({..}) and neither when inserted in the .env file or initiated with export.

ParseServer({..}) example:

"auth" : {
     "firebase" : {
         "module" : "parse-server-firebase-auth-adapter",
         "databaseURL" : "https://MY.firebaseio.com",
         "credential" : "./serviceAccountKey.json",
     }
},

To fix the error I had to install dotenv and add require('dotenv').config() to my app.js to make it reads the environment variables.

I wonder if you know why originally it didn't read the credential?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant