Refresh invalid token

Once users log into my iOS app I don’t want them to have to log in again. I see in the docs that the session token can become invalid and you can check whether it’s valid or not. But then how can I refresh it? I don’t want to sign the user out and ask them to enter their username and password again.


I need to verify it with the dev team, but my understanding is that a user token will last as long as the session timeout configured using the Users > Login > Enable Session Timeout option.

Also, make sure to call the setStayLoggedIn method to enable “persistent” logins.