django-rest-framework-jwt icon indicating copy to clipboard operation
django-rest-framework-jwt copied to clipboard

RefreshJSONWebToken endpoint problem

Open sbishnu019 opened this issue 6 years ago • 2 comments

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

sbishnu019 avatar Jun 01 '18 07:06 sbishnu019

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." ] }

daminli avatar Jun 21 '18 06:06 daminli

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.

sphrak avatar Jun 23 '18 20:06 sphrak