In this project, I show you how to create a user and authenticate it against your Firebase app, using her email and password.
Export FIREBASE_API_KEY environment variable before run. It is used in user_service.js
file to connect to your Firebase app.
$ yarn install
$ yarn start
$ npm install
$ npm start
POST /signup
{ "email": "john.doe@mail.com", "password": "1234" }
POST /signin
{ "email": "john.doe@mail.com", "password": "1234" }
Both endpoints return a Firebase UserCredential (https://firebase.google.com/docs/reference/js/firebase.auth#usercredential)