Cache authentication by turbo-ios

Hi,

I’m completely new to iOS app development but I need to implement basic app based on my web app.

In my web app I use devise to authenticate and mobile version is available on the /p endpoint.

I run the demo from the repository, I return 401 status code for not authenticated user and it redirects me to /p/mobile_user/sign_up endpoint to login.

I have two issues here:

  1. I don’t know how to store session after login so a user don’t need to login every time he or she open the application.
  2. I don’t want to have possibility to back in the top navigation to login pages.

Thank you in advance for any help here.