Persisting user on device with flutter and firebase auth

Viewed 2469

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!

1 Answers

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

Related