All user sessions being signed out when I delete a user from auth.users from the dashboard
I noticed that when I delete a user from the auth.users with the Supabase dashboard, all of my existing signed in sessions get logged out. This seems to happen because of an after delete trigger that I have set up on the auth.users table to cascade down several layers of tables to delete the related entries within those tables. Within the supabase postgres logs, I see errors:
for a corresponding query of:
Note that I've only observed this logging out issue happen when I delete a user that has entries in my other tables. If I create a user manually within auth.users and then delete, this doesn't happen. How can I fix this?
for a corresponding query of:
Note that I've only observed this logging out issue happen when I delete a user that has entries in my other tables. If I create a user manually within auth.users and then delete, this doesn't happen. How can I fix this?