Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When do you requesting a refresh token? #215

Open
ghost opened this issue Jul 25, 2019 · 3 comments
Open

When do you requesting a refresh token? #215

ghost opened this issue Jul 25, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 25, 2019

If the token timeout is reached, a 401 error will appear when requesting a refresh token.

I know that request a refresh token after the token is expired , but gin-jwt does not seemed to be.

If so, when should I make a refresh token request?

Do I have to process the client internally before it expires?

@ghost ghost changed the title When are you requesting a refresh token? When do you requesting a refresh token? Jul 25, 2019
@Djolivald
Copy link

I have the same issue, the cookie expiry is set to the token time, which does not allow to renew the token after its expiry (but still before the MaxRefresh time) as the web browser is ditching the expired cookie... The cookie time should probably be MaxRefresh instead of Timeout

@somenzz
Copy link

somenzz commented Jun 9, 2022

You put refresh_token in the auth group, just move it out。

@cdx111
Copy link

cdx111 commented Feb 17, 2023

Please the reference of RFC 6749

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants