In the scenario where a company deletes an employee, their node will be removed from the realtime database but we will keep their user in the authentication. This way, upon login, we will check if the user from the realtime database exists. If it exists, then go to landing, otherwise sign out the user and/or redirect to an empty page saying their account was suspended, and block their access to every page in the website.
In the scenario where a company deletes an employee, their node will be removed from the realtime database but we will keep their user in the authentication. This way, upon login, we will check if the user from the realtime database exists. If it exists, then go to landing, otherwise sign out the user and/or redirect to an empty page saying their account was suspended, and block their access to every page in the website.