David Ferris
David Ferris

Reputation: 2325

What is the default persistence time for a Firebase auth token?

The firebase docs indicate that auth tokens can be persisted locally, and that the expiry date of these tokens can be modified. This is the default behaviour, since you can log into a firebase app and not have to re-log in for quite some time.

https://firebase.google.com/docs/auth/web/auth-state-persistence

Does anyone know what is the default length of time for these local auth tokens to expire? Is it 24 hours? 30 days? Never?

Upvotes: 1

Views: 1090

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599031

If using LOCAL persistence (the default on most platforms), the stored credentials data does not expire.

From the docs:

Indicates that the state will be persisted even when the browser window is closed or the activity is destroyed in React Native. An explicit sign out is needed to clear that state

Upvotes: 1

Related Questions