简体   繁体   中英

What is the best way to manage Firebase user across Ionic Tabs

I am building an Ionic1 tabs application using Firebase for the Authentication part and the Realtime Database.

What is the best way / best practices to manage user across the tabs.

Assuming all pages/tabs must be accessible only if user is authenticated.

Do you have any recommandation or documentation?

Where to put the UserStateChange listener? Should I implement a isAuthenticated control in routes.js? etc.

Thanks!

I have adapted the following tutorial, eventually: https://ionicthemes.com/tutorials/about/add-ionic-platform-authentication-to-your-ionic-app#step1

If it can be of any help for someone else.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM