Firebase 3.x - 令牌/会话过期 [英] Firebase 3.x - Token / Session Expiration

查看:199
本文介绍了Firebase 3.x - 令牌/会话过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道令牌过期需要多长时间?现在没有选项来设置控制台上的令牌有效性。在最新的Firebase身份验证版本中,登录会话不会过期。相反,它使用长寿命的账户令牌和短暂的自动刷新访问令牌来获得两全其美的效果。



如果你想结束用户的会话中,您可以调用 signOut( )


Does anyone know how long would it take for the token to expire? There no option now to set the token validity on the console.

解决方案

In the latest release of Firebase Authentication, login sessions don't expire anymore. Instead it uses a combination of long-lived account tokens and short-lived, auto-refreshed access tokens to get the best of both worlds.

If you want to end a user's session, you can call signOut().

这篇关于Firebase 3.x - 令牌/会话过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆