Error with multiple accounts on a single login

If you experience the following error: Another account from your organization is already signed in on this device.

There is a simple way to fix this:

If you back up all the contents of the following folders and then delete everything within these folders, this will let you re-sign in again:

%localappdata%/Microsoft/OneAuth

%localappdata%/Microsoft/IdentityCache

Matt Scott