扩展Firebase匿名Auth会话到期 [英] Extending Firebase Anonymous Auth Session Expiry
本文介绍了扩展Firebase匿名Auth会话到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Firebase进行匿名身份验证.我知道我可以设置x
小时的会话超时.
I am using anonymous authentication with Firebase. I know that I can set x
hours of session timeout.
对我来说,当用户在站点上处于活动状态时,使其超时没有任何意义.当网站被积极使用时,是否可以扩展用户会话?
To me, it doesn't make sense to timeout a user when he/she is active on the site. Is there a way to extend a user's session when the website is being used actively?
推荐答案
在铸造Firebase身份验证令牌后,目前无法扩展或刷新它.
There is currently no way to extend or refresh a Firebase authentication token after it's been minted.
您可以显示器.info/authenticated
检测用户未经身份验证的时间.
You can monitor .info/authenticated
to detect when the user gets unauthenticated.
这篇关于扩展Firebase匿名Auth会话到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文