tiki-deprecated / app

TIKI DAO 🤫
MIT License
13 stars 6 forks source link

App should not logout on upgrade #519

Closed ricardobrg closed 2 years ago

ricardobrg commented 2 years ago

As a user I should not be logged out after app upgrade.

Users reported that the app logs out after upgrading from 0.4.0 to 0.4.1.

Acceptance criteria 1 - Reproduce the error and explain why it happens 2 - Open issue to fix it

ricardobrg commented 2 years ago

Login was not initiated when we check if the user is logged in to clean secure storage. That ends up cleaning secure storage data even for logged-in users from prior versions.

Changed the login init order and updated the first-run flag after the home 'inject' method run.

https://github.com/tiki/app/blob/develop/lib/main.dart#L49-L55