All Projects → ksachdeva → Firebase Custom Auth Example

ksachdeva / Firebase Custom Auth Example

Licence: mit
Custom authentication example for Firebase & AngularFire2

Programming Languages

javascript
184084 projects - #8 most used programming language

Note at this time the application is not functional because of the bug in AngularFire2 beta 2

Custom authentication using AngularFire2

Custom authentication means that your server is going to take care of authenticating the user. On successful authentication the server will return a JWT (JSON Web Token) that the front end client application will submit to the firebase.

Setup

Both the server and client applicaticons require their corresponsing credentials.

Server setup

Client setup

  • Go to your firebase console
  • Go to the Auth menu
  • Click on Web Setup and copy the client credentials
  • In client/src/app/main.ts update the constants to use the values from Web Setup

Running

Server

cd firebase-custom-auth-example/server
npm install
nodemon app.js

You will have the application running at http://localhost:8080

Client

cd firebase-custom-auth-example/server
npm install
typings install
npm start

You will have the application running at http://localhost:3000

Test Credentials

Email : [email protected]
Password: password1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].