implementing firebase auth in an ionic app with AngularFireAuth, I am looking to have access to Firebase Auth User across the ionic app. would ionic storage be a good option?
in the login page, I would listen to the AuthState Observable. how can I observe the AuthState changes across the ionic app? and can I store that in ionic storage whenever AuthState Changes?
given the User Auth Data is Sensitive should I prefer secure storage to regular ionic storage?
update solution Listening to Auth State Changes across the ionic app (all components) we need a Service that maintains this Auth State Observable. And any component should be able to plugin into that and listen to changes.
example: After login user reaches the landing page, and if the auth logout(for any reason), he should be taken to login page. For this, the landing page component will listen to the AuthState Service's user observable. when null it logs him out. some code