I am trying to figure out a way to boot/log off a user if the moderator suspends or delete the user. Currently if I delete the user, the user can remain logged in and continue to use the app until they choose to log off or I update the app.
Add a true/false parameter to the user collection and call it “user suspended”.
Drop a 1 second countdown timer onto the main screens of your app (like the home screen and maybe a few other screens that are important) and set the visibility of this timer to sometimes visible if logged in user > user suspended is equal to true.
Add the logout action and a link to a different screen.
You can hide the countdown timer by setting the colors to the same as your background color for the screen and/or by adding a rectangle over it.