Open jsw4215 opened 1 year ago
Hi @jsw4215,
this is a very simplified solution without any verification step (e.g. send out email with a confirmation code):
UserDetailsView
and rest_framework's RetrieveUpdateDestroyAPIView
rest_user_details
(make sure this is before the path definition that includes dj_rest_auth.urls
in order to override the default behaviour)allauth.socialaccount
to INSTALLED_APPS
(Yes, this is strange. There is a SELECT on table allauth_socialaccount
which fails otherwise.)rest_user_details
endpoint with proper authenticationEdit: 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.
I want to delete user who want to unregister my app.
how can I do this?