Prevent fresh logins from breaking restoration of existing accounts #51

Open
opened 2026-10-11 18:16:03 +02:00 by rayyan · 0 comments
Owner

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
streigen/echelon#51
No description provided.