How to use Refresh token of firebase

2019-08-21 08:28发布

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条回答
趁早两清
2楼-- · 2019-08-21 09:23

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.

查看更多
登录 后发表回答