When restarting my app, is there a way I can have the user log back in using the session object, so the user doesn’t have to re-enter their credentials?
Since the SDK automatically persists sessions, the user is already authenticated the next time they come back to your app.
The typical pattern is to do the following on app start:
- Call
account.get()2a. If that returns successfully, the user is already authenticated and you can redirect them into the app. 2b. If an exception is thrown, they don't have a session so redirect them to the login page
Recommended threads
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...