Hi everyone,
I’ve implemented an account deletion workflow in my app. When a user confirms they want to delete their account, the workflow triggers a simple “Delete Row” action targeting the Current User’s row in the Users table.
The data is wiped from the database perfectly. However, even after their row is deleted, the user remains logged into the app on their physical device. They can still see their local profile state until they either manually log out or uninstall app.
Since Glide doesn’t have a native “Log Out User” action that we can trigger within a custom workflow, is there a workaround to force the client-side app to log out, refresh, or redirect to the login screen immediately after their user row is deleted? Thanks in advance
Do you allow anyone to sign in, or only those whitelisted in the user table. I do recall in the past that whitelisted (private) apps would kick a user out once their user row was deleted. Not sure about public apps where anyone can sign in though.
Thanks for the response. My app is a public app where anyone can sign in, so I don’t use a whitelist in the users table.
As a temporary workaround, I currently redirect the user to a screen after the deletion process to make them manually sign out. However, it doesn’t feel very satisfying. It would be very helpful if Glide had a sign out action.
I can confirm what Jeff said. It’s only possible to have them automatically signed out if your App is private.
Thanks for confirming this. Good to know for sure that it’s currently not possible for public apps.
It’s not a major dealbreaker, but hopefully we have a sign out action in the future.
Thanks again to both of you, have a nice weekend.