amazon-cognito-identity-js icon indicating copy to clipboard operation
amazon-cognito-identity-js copied to clipboard

Support for disable or soft delete

Open clintfoster opened this issue 8 years ago • 3 comments

Have you considered supporting disable() from the cognito-identity SDK (not just the admin API)? An app would then be able to effectively "soft delete" an account in a way that the user could later reinstate it by calling customer support, who could re-enable it via the console.

If the DISABLED status isn't meant to be used in this way, perhaps a DELETED status and corresponding softDelete() function could be introduced.

clintfoster avatar Jul 26 '17 21:07 clintfoster

Can you give an example of why an end user would want to disable their account?

behrooziAWS avatar Jul 28 '17 16:07 behrooziAWS

Suppose a user closes their account and later has a question. We won't be able to look them up if their contact details have been deleted. Having said that, we must ensure the user retains full control of their personal information. This could be addressed with an interaction like the following:

  1. User selects Close account.
  2. "Are you sure?" dialog is presented with a checkbox:

☐ Delete contact details. (We will not be able to look you up if you have questions later.)

If the checkbox is selected, the app calls delete(). Otherwise it calls disable() or softDelete().

clintfoster avatar Aug 04 '17 14:08 clintfoster

Makes sense, we will consider exposing it to the end user as a feature request.

behrooziAWS avatar Dec 15 '17 01:12 behrooziAWS