User not stay logged in

I am currently creating a native app and I want the user to stay logged in. I checked the “Stay logged in” box, but when I try the app on the preview, I have to reconnect each time. How can I make sure that the user stays logged in?