Open joaom182 opened 6 years ago
This issue is because my project not use babel
to transpile and enbale async
feature.
Please can you tell me how do you solve this problem ?
I'm still seeing this error
"dependencies": { "firebase": "^4.12.1", "firebase-admin": "^5.12.0", "hapi": "^17.3.1", "hapi-auth-firebase": "^1.0.4", "hapi-pino": "^4.0.4", "inert": "^5.1.0", "regenerator-runtime": "^0.11.1" }
The solution for me was to copy/paste src/index.js into my project, and then require my local file in project
More easily, you can try :
const hapiAuthFirebase = require('hapi-auth-firebase/src');
Getting the following error when following the advice from @Quentintin
node_modules/hapi-auth-firebase/src/index.js:71
function verifyToken(firebaseAdmin, token: String) {
^
SyntaxError: Unexpected token :
Any ideas?
I'm using
node v7.10.0
andhapi 16.6.2
andhapi-auth-firebase 1.0.4