iMerica / dj-rest-auth

Authentication for Django Rest Framework
https://dj-rest-auth.readthedocs.io/en/latest/index.html
MIT License
1.66k stars 310 forks source link

How to unregister user with dj-rest-auth.registation? #519

Open jsw4215 opened 1 year ago

jsw4215 commented 1 year ago

I want to delete user who want to unregister my app.

how can I do this?

flange-ipb commented 1 year ago

Hi @jsw4215,

this is a very simplified solution without any verification step (e.g. send out email with a confirmation code):

Edit: To be honest, this is a very sloppy solution that nobody should use. If you use JWT the token_refresh endpoint happily hands out fresh tokens without even checking whether the user still exists. Edit: The issues with JWT are discussed in djangorestframework-simplejwt#402 and djangorestframework-simplejwt#193.