Simple Google authentication with Angular Firebase
https://github.com/pbakondy/fbauth.git
This project was generated with Angular CLI version 8.3.19.
ng new fbauth
cd fbauth
npm install @angular/fire firebase --save
ng generate service services/auth
ng generate component components/index
ng generate component components/user-profile
ng generate guard guards/auth
app.module.ts to initialize firebase settingsapp-routing.module.ts to add routing rulesuser-profile.component.ts and user-profile.component.html to setup Google loginauth.guard.ts to implement permission check for routesGoogle authentication handles only the login process.
You can restrict access (authorization) only by Firebase access rules: Firebase Console / Database / Rules .