When I log in with two accounts (account1, account2), localStorage will store two sessions (session1, session2) and the list will record these two sessions (availableSessions). The account sidebar queries all logged-in accounts based on the list, but when I delete session2 from localStorage, the list still has a record of session2, but I can't switch from account1 to account2.
I'm not sure if this is a problem, after all, I deleted session2 through the debugging tool. This causes the list data to be out of sync. If this is a problem, should do a check when getting availableSessions?
When I log in with two accounts (account1, account2), localStorage will store two sessions (session1, session2) and the list will record these two sessions (availableSessions). The account sidebar queries all logged-in accounts based on the list, but when I delete session2 from localStorage, the list still has a record of session2, but I can't switch from account1 to account2.
I'm not sure if this is a problem, after all, I deleted session2 through the debugging tool. This causes the list data to be out of sync. If this is a problem, should do a check when getting availableSessions?