delete user with password doesn't work if sendDeleteAccountVerification is set up
As the title says. I'm trying to implement user deletion with both: password (for credentials & phoneNumber users) & email verification (for OAuth users). I set up sendDeleteAccountVerification, deleting account by sendingDeleteVerification works, but by using password doesn't work. It just gives success state (if the password is correct) but doesn't work..
auth.ts:
delete-user-dialog.tsx
1 Reply
Also, It sends an deletion email even though I passed the password. Is there any workaround for that?
I made a workaround for it by implementing it myself lol.
actions/auth.ts