Force a User to Log Off if user is Suspended/Deleted

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.

Thoughts?

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.

Thank you this worked.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.