Firebase身份验证令牌的有效期限 [英] Firebase authentication tokens expiration duration

查看:404
本文介绍了Firebase身份验证令牌的有效期限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级到Firebase的新版本,找不到在哪里可以设置Firebase身份验证令牌的有效期限.它曾经在Firebase的旧版式中的身份验证"部分下(我将其设置为1年). Firebase仍然有这个吗?

I just upgraded to the new version of Firebase and I can't find where I can set the expiration duration of my Firebase authentication tokens. It used to be under the authentication section in Firebase's old layout (I had it set for 1 year). Does Firebase still have this?

推荐答案

如果继续使用Firebase 2.x SDK,则到期时间将与以前相同.不过,您无法再更改该值.

If you keep using the Firebase 2.x SDK, your expiration period will be the same as before. You cannot change the value anymore though.

如果您升级代码以使用3.x SDK,它将切换为用户永不过期的ID令牌和快速过期的访问令牌.有关更多信息,请参见以下答案: Firebase身份验证的持续时间太长了

If you upgrade your code to use the 3.x SDK, it'll switch to user a never-expiring ID token and a quickly expiring access token. See this answer for more on that: Firebase authentication duration is too persistent

这篇关于Firebase身份验证令牌的有效期限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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