如何使用Firebase的刷新令牌 [英] How to use Refresh token of firebase

查看:83
本文介绍了如何使用Firebase的刷新令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刷新令牌的到期时间是多少?如果与刷新令牌一起使用,是否可以获取新令牌.如果是,刷新令牌是否有任何时间限制.

What is the expiry time of refresh token? Can I get new token if used with refresh token. If yes Is there any time limit for refresh token .

推荐答案

Firebase身份验证使用两个令牌:

Firebase Authentication uses two tokens:

  • 可以长期/永久地刷新令牌,用于标识用户.
  • 短暂的 ID令牌,授予用户访问后端服务的权限.
  • a long-lived/permanent refresh token that identifies the user.
  • a short-lived ID token that grants the user access to backend services.

刷新令牌没有过期.

默认情况下, ID令牌每小时收费一次.如果您铸造自定义令牌,则可以设置自定义到期时间,该时间不得超过一个小时.

The ID token by default expires hourly. If you mint a custom token you can set a custom expiration, which can never be longer than an hour.

这篇关于如何使用Firebase的刷新令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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