Firebase 3.x - Token / Session Expiration

2019-01-06 15:31发布

Does anyone know how long would it take for the token to expire? There no option now to set the token validity on the console.

2条回答
贼婆χ
2楼-- · 2019-01-06 15:40

In the latest release of Firebase Authentication, login sessions don't expire anymore. Instead it uses a combination of long-lived account tokens and short-lived, auto-refreshed access tokens to get the best of both worlds.

If you want to end a user's session, you can call signOut().

查看更多
三岁会撩人
3楼-- · 2019-01-06 15:59

Its does expire. After one hour logged in the token id expire. If you try to verify sdk returns a error "Error: Firebase ID token has expired. Get a fresh token from your client app and try again. See https://firebase.google.com/docs/auth/server/verify-id-tokens for details on how to retrieve an ID token."

Is There such a way to change expiration time to Firebase token, not custom token.

Anybody that know how this really works.

查看更多
登录 后发表回答