Password reset and Sign out #4114
-
For password reset and sign out,
Whenever we are successful in the endpoints it actually returns 401 unauthenticated. Is this intended behaviour? If it is intended behaviour, can someone write some simple codeto guide me in the correct direction and show me how it is done. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is by design. The 401 indicates the authentication status of the user after the action is performed. It is explained here: https://docs.allauth.org/en/dev/headless/openapi-specification/#section/Authentication-Flows Also have a look at the example React app (https://react.demo.allauth.org/ and https://codeberg.org/allauth/django-allauth/src/branch/main/examples/react-spa -- it handles all these flows. |
Beta Was this translation helpful? Give feedback.
This is by design. The 401 indicates the authentication status of the user after the action is performed. It is explained here:
https://docs.allauth.org/en/dev/headless/openapi-specification/#section/Authentication-Flows
Also have a look at the example React app (https://react.demo.allauth.org/ and https://codeberg.org/allauth/django-allauth/src/branch/main/examples/react-spa -- it handles all these flows.