How to use Refresh token of firebase

2019-08-21 09:04发布

问题:

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.