You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a question.
I'm not very good at English, so I'm sorry if I'm grammatically incorrect.
If there's any part of it that doesn't make sense, please let me know!
When I tried refresh for timed out token, but server reply "401 Unauthorized" status.
I thought this library can't update timed out token, but I'm found this comment in "auth_jwt.go" at line 45.
// This means that the maximum validity timespan for a token is TokenTime + MaxRefresh.
I was set "Timeout: time.Second" and "MaxRefresh: time.Hour" and retried timed out token refresh about 10 seconds later.
I'm expected server reply "200 OK" and return refreshed token, but server as usual reply "401 Unauthorized".
I do not know why it behaves this way. Can someone please tell me what it is?
The text was updated successfully, but these errors were encountered:
ghost
changed the title
MaxReflesh parameter question.
MaxRefresh parameter question.
Feb 18, 2023
Hi, I have a question.
I'm not very good at English, so I'm sorry if I'm grammatically incorrect.
If there's any part of it that doesn't make sense, please let me know!
When I tried refresh for timed out token, but server reply "401 Unauthorized" status.
I thought this library can't update timed out token, but I'm found this comment in "auth_jwt.go" at line 45.
gin-jwt/auth_jwt.go
Line 45 in dccd654
I was set "Timeout: time.Second" and "MaxRefresh: time.Hour" and retried timed out token refresh about 10 seconds later.
I'm expected server reply "200 OK" and return refreshed token, but server as usual reply "401 Unauthorized".
I do not know why it behaves this way. Can someone please tell me what it is?
The text was updated successfully, but these errors were encountered: