jpadilla / django-rest-framework-jwt

JSON Web Token Authentication support for Django REST Framework
http://jpadilla.github.io/django-rest-framework-jwt/
MIT License
3.19k stars 649 forks source link

Change response status on trying to refresh expired token #357

Open JamesWilmot opened 7 years ago

JamesWilmot commented 7 years ago

Sorry if this has been asked before or it is in the docs.

Currently refresh-token endpoint returns a 400 status code if web app tries to refresh expired token.

Is there a way to return 401 or 403?

Thanks for the awesome project.

blueyed commented 6 years ago

It might be better to fix it?! https://github.com/GetBlimp/django-rest-framework-jwt/pull/348

Or am I misunderstanding something?