Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Verified Commit bbe869ee authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

fix: resolve issue with Murena and Google account sync, and fix authState update logic

For a non-SSO Murena account already set up, if users try to add a Google or Yahoo account later, Account Manager would incorrectly update the Murena account's authState with Google/Yahoo's authState.

Users would see no Google/Yahoo account added in the Account Manager and the affected Murena account would behave incorrectly too.

The fix checks the new account's name and type with the existing non-SSO Murena accounts and only proceeds if there's a match.

Additionally, it resolved auth state updating logic.

updateAuthState() method now correctly updates the associated account and saves them inside user data.

Previously, for re-auth and SSO migration, the update method would **incorrectly** replace all existing account's auth state with the latest one.
parent 32e7c8cf
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment