iMerica / dj-rest-auth

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

fix: Return 400 in logout view when user is not authenticated #633

Closed vadimshvetsov closed 4 months ago

vadimshvetsov commented 4 months ago

Closes #439.

Currently LogoutView pretends from the code perspective to return 400 when user is not authenticated but since permission_classes is AllowAny it returns 200.