[英]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. 我正在使用Firebase的身份验证部分和实时数据库构建Ionic1选项卡应用程序。
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? 在哪里放置UserStateChange侦听器? Should I implement a isAuthenticated control in routes.js?
我应该在route.js中实现isAuthenticated控件吗? etc.
等等
Thanks! 谢谢!
I have adapted the following tutorial, eventually: https://ionicthemes.com/tutorials/about/add-ionic-platform-authentication-to-your-ionic-app#step1 我最终改编了以下教程: https : //ionicthemes.com/tutorials/about/add-ionic-platform-authentication-to-your-ionic-app#step1
If it can be of any help for someone else. 如果对别人有帮助的话。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.