Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.4k stars 662 forks source link

error Unauthorized: /rest-auth/registration/ [06/Jun/2019 19:08:58] "POST /rest-auth/registration/ HTTP/1.1" 401 27 #544

Open kimutaiRop opened 5 years ago

kimutaiRop commented 5 years ago

I am tring to use the rest auth to create user but am getting error Unauthorized: /rest-auth/registration/ [06/Jun/2019 19:08:58] "POST /rest-auth/registration/ HTTP/1.1" 401 27

logging in user with rest frameworks works fie my url is

path('rest-auth/registration/', include('rest_auth.registration.urls')),
nathanielastudillo commented 3 years ago

I have a user getting the same 401 error when trying to create an account using that endpoint. My current theory is that it might be the result of sending a POST request and not submitting an auth token along with the request, but I can't see anywhere in the RegisterView() class that would return a 401.

I've only encountered one user having this error, but it seems strange and I can't trace it.