AlexTelon / FlexiCharge-Backend

6 stars 10 forks source link

Implement an endpoint for Deleting User Account #184

Open foal20ym opened 1 year ago

foal20ym commented 1 year ago

Description

We need to implement a new API endpoint that allows users to delete their accounts. Currently, the application lacks this functionality, and it's essential to provide users with the option to delete their accounts when they choose to do so.

The goal of this issue is to create a secure API endpoint that allows users to request the deletion of their accounts. When a user sends a delete request to this endpoint, their account should be permanently removed from the system, and any associated data should be appropriately handled (e.g., anonymized or deleted).

Tasks

I leave this for the PO/SM or devs to fill in :)

Requirements

  1. Implement a RESTful API endpoint for deleting user accounts.
  2. Ensure the endpoint is secure and requires proper authentication to prevent unauthorized deletions.
  3. Handle the removal of user data in compliance with data protection regulations.
  4. Provide appropriate responses and error messages to users.

Acceptance Criteria

  1. Users can successfully delete their accounts via the new API endpoint.
  2. Unauthorized access to the endpoint is prevented.
  3. Proper data handling and anonymization/deletion processes are in place.
  4. User-friendly error messages and responses are provided.