Known Issues¶
This section is for documenting known bugs developers may encounter and any temporary workarounds found.
Can't log in after deleting user records from database¶
Error message in terminal¶
1 2 3 4  |  | 
Workaround¶
Clear your browser's local storage for the IndEAA site. Guide on how to do this: Google Chrome, Firefox
You can also use the site in a private browser session for a temporary fix.
Causes¶
When working with IndEAA it's possible to delete a user's account from the database while they are logged in (e.g. using a tool such as Mongodb Compass).
When this user is logged out they will experience this bug.
The user's session stores their account's _id field in local storage (even when logged out). 
When a user attempts to log in with a given Google account, the browser will report the _id field which was in local storage. However, because the account was deleted from the database, the _id field will find no matches. This causes the error listed above.