Cannot create a user with the same email after deleting it
Hello , I am using next 14 and server action, here's the thing
Step 1: I create a user using the api , it works fine.
const { error: authError, data: insert } = await supabase.auth.admin.createUser({
email: data.email,
password: data.password,
});
Step 2 : I delete the user , it get's deleted successfully.
Step 3 : I recreate the user , using the same data as the one that I created before and deleted. it doesn't get created even though I get no error message, In contrary I get success message and when I console log the insert value , I get the data of the created user, but I don't find it.. what I noticed is somehow It gets created each time with the same UUID as the one that got deleted o_O.. I'm lost right now, I'd appreciate your help.
Btw I'm hard deleting here not soft delete. I am using DeleteUser method from the js SDK.
Step 1: I create a user using the api , it works fine.
const { error: authError, data: insert } = await supabase.auth.admin.createUser({
email: data.email,
password: data.password,
});
Step 2 : I delete the user , it get's deleted successfully.
Step 3 : I recreate the user , using the same data as the one that I created before and deleted. it doesn't get created even though I get no error message, In contrary I get success message and when I console log the insert value , I get the data of the created user, but I don't find it.. what I noticed is somehow It gets created each time with the same UUID as the one that got deleted o_O.. I'm lost right now, I'd appreciate your help.
Btw I'm hard deleting here not soft delete. I am using DeleteUser method from the js SDK.