You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remember how annoying it is to log in every time you run the app? It would be great if the user could stay logged in.
While you could go the easy route and use UserDefaults to store the session ID, this won't be encrypted (a really bad security problem!)
Instead, you may have some luck using the keychain. It can be a bit overwhelming, but there are wrappers that make using it just like UserDefaults.
This issue may be a bit advanced, especially if you haven't seen persistence on iOS yet, but as you learn more, leveraging some kind of persistence for the user's session would definitely improve the app's usability.
The text was updated successfully, but these errors were encountered:
Remember how annoying it is to log in every time you run the app? It would be great if the user could stay logged in.
While you could go the easy route and use
UserDefaults
to store the session ID, this won't be encrypted (a really bad security problem!)Instead, you may have some luck using the keychain. It can be a bit overwhelming, but there are wrappers that make using it just like
UserDefaults
.This issue may be a bit advanced, especially if you haven't seen persistence on iOS yet, but as you learn more, leveraging some kind of persistence for the user's session would definitely improve the app's usability.
The text was updated successfully, but these errors were encountered: