Keep user logged in, Firebase

Hello! No matter what i do i am unable to keep the user logged in! Could you please help me with some examples on how i should do it and where i shall place the code! I’ve seen examples on stack overflow but those are outdated.

Thanks,
Vlad

Hi Vlad, you can save a Boolean isUserLoggedIn in UserDefaults

And check that boolean every time the app loads

Yes I’ve tried that, maybe I didn’t do it right. Could you please give me an example?

First are you using SwiftUI or UIKit? That will change the example I give you

I am using UIKit