hvalls / node-firebase-auth-example Goto Github PK
View Code? Open in Web Editor NEWNodeJS Firebase authentication example
NodeJS Firebase authentication example
Error: Firebase.createUser failed: First argument must contain the key "email" with type "string"
at Error (native)
at rg (E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\firebase\lib\firebase-node.js:130:331)
at X.re (E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\firebase\lib\firebase-node.js:272:109)
at Object.addUser (E:\xampp\htdocs\node\firebase\node-firebase-auth\user_service.js:7:14)
at E:\xampp\htdocs\node\firebase\node-firebase-auth\server.js:12:14
at Layer.handle [as handle_request] (E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\express\lib\router\layer.js:95:5)
at next (E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\express\lib\router\layer.js:95:5)
at E:\xampp\htdocs\node\firebase\node-firebase-auth\node_modules\express\lib\router\index.js:281:22
getting this error when trying to sign in
error: "fb.auth is not a function"
C:\Users\robot\Documents\panelRandom>firebase deploy
=== Deploying to 'Random-panel-00000'...
i deploying functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint
functions@ lint C:\Users\robot\Documents\panelRandom\functions
eslint .
C:\Users\robot\Documents\panelRandom\functions\index.js
1:7 error 'functions' is assigned a value but never used no-unused-vars
✖ 1 problem (1 error, 0 warnings)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functions@ lint: eslint .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\robot\AppData\Roaming\npm-cache_logs\2021-03-13T10_58_16_431Z-debug.log
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn npm --prefix "%RESOURCE_DIR%" run lint ENOENT
at notFoundError (C:\Users\robot\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\robot\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (C:\Users\robot\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.cp.emit (C:\Users\robot\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn npm --prefix "%RESOURCE_DIR%" run lint',
path: 'npm --prefix "%RESOURCE_DIR%" run lint',
spawnargs: []
}
Error: functions predeploy error: Command terminated with non-zero exit code1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.