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 652 forks source link

Optimization of DB queries when decoding token with per user secret. #360

Open jacoor opened 7 years ago

jacoor commented 7 years ago

When using token secret on user, DB is called twice to decode token:

Other improvements:

jacoor commented 7 years ago

Hello @jpadilla, you probably remember me from creating https://github.com/GetBlimp/django-rest-framework-jwt/pull/310. Now I added a little optimisation we could use on our projects soon. Could you release this in the near future, pretty please?

Thank you!