Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Provide an action to clean rn-secure-storage in development mode #647

Open
itofarina opened this issue Mar 24, 2021 · 0 comments
Open

Provide an action to clean rn-secure-storage in development mode #647

itofarina opened this issue Mar 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@itofarina
Copy link
Contributor

itofarina commented Mar 24, 2021

Description
When the app is launched for the first time, it connects to the server and creates a user account. The server returns a key to the phone which is stored on the device using rn-secure-storage.
If the server is changed in the .env file, then the app will attempt to connect to the new server but no user exists there. Therefore, there needs to be a way to reset the app, including erasing the content stored in rn-secure-storage.
The current workaround is for the developer to completely uninstall the application, and reinstall it.

Proposed solution
The suggested fix would be if the app is running in development mode, had a button somewhere (perhaps the "me" page) to reset the app. This would erase all the content, and show a window that can not be closed. The developer can then completely close the app and relaunch it.

Description written by @jessgusclark (thanks!)

@itofarina itofarina added the enhancement New feature or request label Mar 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant