Skip to content

Delete own account from the profile page or from admin API with own credentials? #445

Answered by frankie567
shrike71 asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, there is currently no self-service endpoint for a user to delete its own account.

The main difficulty when removing a user is all the implications that might happen to your own app: what do you do with all the data related to that user? The answer highly depends on your app.

My advice would be to, like you suggest, implement an endpoint in your app for this purpose. The logic is up to you but it can be something like:

  • Remove or anonymize the user data
  • Put the user in a deletion queue that get flushed after X days
  • etc.

Regarding calling the Fief Admin API from your backend, there is nothing wrong with that. What you need is to keep the Admin API token safe in your backend (e.g. a…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@shrike71
Comment options

@frankie567
Comment options

Answer selected by shrike71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants