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

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

问题描述

有谁知道令牌需要多长时间才能过期?现在没有选项可以在控制台上设置令牌有效性.

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.

推荐答案

在最新版本的 Firebase 身份验证中,登录会话不再过期.相反,它结合使用长期存在的帐户令牌和短期的、自动刷新的访问令牌来获得两全其美的效果.

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.

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

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

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

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