Replies: 3 comments
-
OK thanks for opening the discussion, will come back to you next week for looking into this properly |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am facing the same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
It seems the issue has been fixed after upgrading the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm doing this project where I use a JWT as auth for the user; however, the access token never expires even thou it is equal to 1min in the settings.py, but when I issue a new access token within the minute, it works, but after a minute it shouldn't work, and the view should return a 403 code, but this is not what happens, and the view returns the data even after one or two days or the expiration time for the token.
I did the IsAuthenticated permission and checked the token on the jwt.io site for the expiration time. Also, I used TokenVerifyView to check on the token; within the minute, it returned an empty dict, and after the minute, it returned the status code I wanted 401.
First, it happened on a project I customized the view for the generator of the token, so I decided to create a new one from scratch and use the doc code only, even do it on different System (my laptop and PC), and it's the same, the access token never expired
settings.py
views.py
Beta Was this translation helpful? Give feedback.
All reactions