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.
Loading
Please register or sign in to comment