问题
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