【问题标题】:How can have website without local-storage or session-storage if connected with firebase?如果与 Firebase 连接,如何拥有没有本地存储或会话存储的网站?
【发布时间】:2017-08-17 09:01:10
【问题描述】:

我使用 firebase 开始了我的第一个网站,但我有一些问题。具有 Firebase 的网站是否需要本地存储或会话存储?如何保持所有页面的管理员登录(其他页面的currentUser为空)??

【问题讨论】:

    标签: javascript html firebase firebase-authentication


    【解决方案1】:

    你的问题不清楚。 Firebase Auth 将用户保存在 localStorage/indexedDB(默认)、sessionStorage 或内存中。你有能力选择任何一个。有关身份验证状态持久性的更多信息,请查看:https://firebase.google.com/docs/auth/web/auth-state-persistence

    【讨论】:

      猜你喜欢
      • 2011-07-28
      • 1970-01-01
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 2020-12-26
      • 2017-02-11
      • 2017-11-05
      相关资源
      最近更新 更多