This is not a full proof way to validate but it will ensure that only a specific UID can. Make sure that you install via Bower angular-local-storage
- Link it in the HTML
- Add
'LocalStorageModule'
to your App (dependency)- Pass
'localStorageService'
to any controllers that need to get the user- set
let currentUser = localStorageService.get("currentUser");
in the controller.
- Local Storage is used to cache the user locally since Firebase does not keep them logged in on a refresh