Reload when auth token mismatch is detected #6897

Merged
infinite-persistence merged 1 commit from ip/prevent.wallet.merge into master 2021-08-18 16:49:10 +02:00

1 commit

Author SHA1 Message Date
infinite-persistence
fccd278bb7
Reload when auth token mismatch is detected
## Tickets
- 5504 Signing out of account causes page to break in other tabs
- 6829 merged accounts - force log out / fail sync when x-auth-token and cookie auth token are different

## Steps to replicate
1. Login to odysee with account-A.
2. Open another tab, and split both tabs on the screen.
3. Logout from the 1st tab. Do not activate (focus) the 2nd tab.
4. On the 1st tab, login with account-B.
5. Activate (focus) the 2nd tab. The wallet would have been merged, and we are still logged in as account-A.

## Approach
Reload when the LBRY API token no longer matches the auth token.
2021-08-18 12:54:33 +08:00