javascript - Javascript - Firebase 自动注销
问题描述
我在我的项目和电子邮件身份验证中使用 firebase。我想在用户登录后 1 小时自动注销。如果这不可能,我想在用户关闭网站时自动注销。谁能帮我?非常感谢。
解决方案
对于第二点,设置firebase.auth.Auth.Persistence.SESSION
或NONE
。
推荐阅读
- pyspark - 在 Databricks 中使用 Spark API 连接到 ADLS
- arrays - 谷歌表格数组求和文本
- ruby-on-rails - 为什么我在尝试播种 csv 数据时看到此错误消息
- docker - docker-jenkins 容器无法访问互联网
- python - 将存储过程结果存储在数据框中时,MySql 命令不同步
- reactjs - 如何使用 React Native (Expo) 将文件/图像上传到 Azure Blob?
- perl - 如何在 nginx mod_perl 中获取 http_referer
- php - 如何将上次修改日期添加到我的 WooCommerce 产品
- sql - 为缺少的聚合创建空/默认行的最佳方法是什么
- java - 如何将密码添加到 base 64 pdf?