Skip to content

ksachdeva/firebase-custom-auth-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 : ksachdeva@someemail.com
Password: password1

About

Custom authentication example for Firebase & AngularFire2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published