Firebase auth delete user in React and Next.js, with a Delete account button

On the web, Firebase deletes the signed-in user with deleteUser(auth.currentUser) from firebase/auth. It's free and it's the whole job, as long as the user signed in recently. If not, it throws auth/requires-recent-login, and you sign them in again before trying once more. For an admin page or a server action, firebase-admin deletes by uid. Hold to Delete can be the button: a 1.2 second hold, five seconds to undo, then the delete.

Hold to Delete, preview
One payment$3

By buying you agree to the Terms.

Ready forCursorv0Lovableshadcn CLI

Full product pageReact · Tailwind · TypeScript