Prevent fresh logins from breaking restoration of existing accounts #51
Labels
No labels
bug
core
documentation
duplicate
enhancement
experiment
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
streigen/echelon#51
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Password and OAuth logins save the new session before opening the account SQLite DB, that DB contains encryption states for a different device, then the SDK rejects restoration with MismatchedAccount, but the previous credentials have already been overwritten. Subsequent app launches repeat the failure which needs manual cleanup (nuke the directory), so ideally this would be fixed in the PR for account switching.
We should also add tests so we catch this in the future.