I am currently implementing a soft delete feature, where someone can “delete” a user.
In my program, there is a data type called invited_user, which shares the same email as the User. When a user gets “deleted” there is a yes/no field called “removed” which gets set to yes.
I want the user to get logged out once their invited user’s “removed” is ‘yes’. I have setup a database trigger, as shown below, but I noticed there’s no action to log out a certain user.
Does anyone happen to know how to force log out another user?