How to use Refresh token of firebase

ぐ巨炮叔叔 提交于 2019-12-12 05:28:56

问题


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 .


回答1:


Firebase Authentication uses two tokens:

  • a long-lived/permanent refresh token that identifies the user.
  • a short-lived ID token that grants the user access to backend services.

The refresh token doesn't expire.

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.



来源:https://stackoverflow.com/questions/45181548/how-to-use-refresh-token-of-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!