FirebaseUI-Flutter icon indicating copy to clipboard operation
FirebaseUI-Flutter copied to clipboard

🐛 As a developer I want to override the modal before deleting a user account

Open EArminjon opened this issue 7 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues and found no duplicates.

What plugin is this bug for?

Firebase UI Auth

What platform(s) does this bug affect?

Android, iOS, Windows, Linux, Web, macOS

List of dependencies used.

flutter pub deps -s list
  firebase_ui_auth: 1.16.1
  firebase_ui_oauth_google: 1.4.1
  firebase_ui_oauth_apple: 1.3.1

Steps to reproduce

Check the profile page from Firebase UI Auth.

We have no way to prevent a deletion if for example the user is engaged somewhere and didn't cancel some pending critical actions. What i mean is it could be interesting to have a way to run a function before deleting any user account, if we could override the default modal that could be a solution. Also, a custom modal can allow developer to force user to type something to confirm that he well want to delete his account and so prevent any miss click.

Expected Behavior

I think we should have a way to override the default behavior of the delete action to insert our own logic. Overall, it could be interesting to increase the way users can customise or override this package.

Actual Behavior

No callback exist to override the default action.

Additional Information

No response

EArminjon avatar Apr 16 '25 13:04 EArminjon

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar May 14 '25 14:05 github-actions[bot]

Get out bot

EArminjon avatar May 14 '25 14:05 EArminjon

I ran into a similar issue where I want to delete my user profile data in Firestore before their auth data is removed, and because of their auth removal right after confirming the deletion from the UI, they immediately lose the permission to access Firestore, thus not able to remove that related document. I looked at the source code of the delete button, currently there's no way to interfere it with another custom logic , I think this widget could take an optional callback function as an argument to handle scenarios like this.

I do have some workarounds for my issue, like using a cloud function to clean up after user deletion in auth, or provide my own customized UI to start the account deletion workflow, but that sort of beats the purpose of having a plugin to do the work for us.

quanlinc avatar May 20 '25 09:05 quanlinc

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Jun 17 '25 10:06 github-actions[bot]

Get out bot !

EArminjon avatar Jun 17 '25 10:06 EArminjon

Still not seeing any maintainer's response, might have to contribute ourselves after all, or the bot can call his AI brother to help implementing this feature.

quanlinc avatar Jul 03 '25 00:07 quanlinc