首页 > 解决方案 > Javascript - Firebase 自动注销

问题描述

我在我的项目和电子邮件身份验证中使用 firebase。我想在用户登录后 1 小时自动注销。如果这不可能,我想在用户关闭网站时自动注销。谁能帮我?非常感谢。

标签: javascriptfirebase

解决方案


对于第二点,设置firebase.auth.Auth.Persistence.SESSIONNONE

阅读更多内容:https ://firebase.google.com/docs/auth/web/auth-state-persistence#modifying_the_auth_state_persistence


推荐阅读