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

RefreshJSONWebToken endpoint problem #442

Open sbishnu019 opened 6 years ago

sbishnu019 commented 6 years ago

RefreshJSONWebToken endpoint does not extend the expiration_timestamp with respect to the JWT_REFRESH_EXPIRATION_DELTA. am i having only problem or what .??? token exp is extend with respect to JWT_EXPIRATION_DELTA rather than JWT_REFRESH_EXPIRATION_DELTA. please help out

daminli commented 6 years ago

I have the same issue. I have bellow configuration. I expect that after 30s the token expiration. The refresh token api can get a new token with in 7 days. But it was not worked as it. 'JWT_EXPIRATION_DELTA': datetime.timedelta(seconds=30), 'JWT_ALLOW_REFRESH': True, 'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(days=7),

{ "non_field_errors": [ "Signature has expired." ] }

sphrak commented 6 years ago

This issue is fixed in PR https://github.com/GetBlimp/django-rest-framework-jwt/pull/348 however the project seems to be abandoned so it likely wont be merged.