-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a delete user API #79
Comments
@inian actually, Gotrue has method for deleting users. Delete request to /admin/user/{user_id} will do what you need |
@icecream78 but this method doesn't exist on supabase-js |
I think we have this already:
might just need adding to gotrue-js as @NathBabs says |
@inian @NathBabs it looks like it does exist (as documented here): const { user, error } = await supabase.auth.api.deleteUser(
'715ed5db-f090-4b8c-a067-640ecee36aa0',
'YOUR_SERVICE_ROLE_KEY'
) |
yes fixed here: supabase/auth-js#85 |
Currently there is no Gotrue method for deleting users.
We do have a delete user on the dashboard, but Copple says it directly removes the user from
auth.users
. We should support this directly in Gotrue so that others can call this via supabase-js and better for our audit trails, etc.User request
The text was updated successfully, but these errors were encountered: