yieniggu
yieniggu

Reputation: 404

Persisting user on device with flutter and firebase auth

currently I made my first flutter app so there are things still uncertain for me. One of them is if there is a way to store the FireBaseUser in the device or construct it from information stored there, first to be able to get a new token to send http requests to my firebase backend adn second to maintain a login session after the app is closed until the user hits logout.

Thanks for any answer!

Upvotes: 2

Views: 2680

Answers (1)

Bryson Thill
Bryson Thill

Reputation: 531

The Firebase plugin is smart enough to cache the user for you. You can just check the current user after the app has restarted.

Upvotes: 5

Related Questions