You want to:
Know if there is a way of setting some items in the AsyncStorage that are going to be erased whenever the user kills the app, the phone battery dies, etc. I want to accomplish something similar as the concept of session storage on the web where registries are deleted once the browser is closed (session expired).
Details:
I'm implementing a login form in react native which has a "Remember me" checkbox which defines whether the user session token should be persisted in the future or not. The idea is to remove all user saved information once the user kills the app or the phone battery dies (or any other case).
You want to:
Know if there is a way of setting some items in the AsyncStorage that are going to be erased whenever the user kills the app, the phone battery dies, etc. I want to accomplish something similar as the concept of session storage on the web where registries are deleted once the browser is closed (session expired).
Details:
I'm implementing a login form in react native which has a "Remember me" checkbox which defines whether the user session token should be persisted in the future or not. The idea is to remove all user saved information once the user kills the app or the phone battery dies (or any other case).