eadwinCode / django-ninja-jwt

A JSON Web Token authentication plugin for the Django REST Framework.
https://eadwincode.github.io/django-ninja-jwt/
MIT License
139 stars 20 forks source link

Refresh sliding token #33

Open vlada1g opened 11 months ago

vlada1g commented 11 months ago

Hi, I have problem with sliding tokens.

The problem I'm running into is that I can only refresh the token while the auth expiration claim is valid. When auth exp pass and refresh_exp is still in future i cant refresh the token.

I have done little bit research of this library so the problem is the token is getting decoded only by exp time, same as for access/refresh token, so for sliding token he doesn't look at all at refresh_exp time

issue related to https://github.com/jazzband/djangorestframework-simplejwt/issues/154

eadwinCode commented 11 months ago

@vlada1g Sorry for not getting back to you sooner.

This problem is strange. I will look at this and see what is happening. In the meantime, I would advise you to do a manual set up and get token refreshed while I look into this