On app login or page refresh, the auth hook looks for a cookie that contains a currentAccountId value.
We need to add logic to confirm the currentAccountId in cookie exists in the accounts array, otherwise we'll just default to the first in the accounts array and overwrite it.
This issue will cause a user to be stuck in "limbo" if they have a cookie with currentAccId for an account they've been removed from by another user.
On app login or page refresh, the auth hook looks for a cookie that contains a currentAccountId value.
We need to add logic to confirm the currentAccountId in cookie exists in the accounts array, otherwise we'll just default to the first in the accounts array and overwrite it.
This issue will cause a user to be stuck in "limbo" if they have a cookie with currentAccId for an account they've been removed from by another user.