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

Strategy jwt-refresh is confusing #6

Open
BITRU opened this issue Feb 17, 2022 · 1 comment
Open

Strategy jwt-refresh is confusing #6

BITRU opened this issue Feb 17, 2022 · 1 comment

Comments

@BITRU
Copy link

BITRU commented Feb 17, 2022

Thanks for the tutorial, it is awsome.

But jwt-refresh Strategy for me looks strange.
Why you provide refresh-token in a Header Authorization with Bearer (tag?).
Replacing Access-tokeen only for one link with the same Bearer tag looks strange.

Maby is better to put refresh-token in body? for this refresh action?

Thanks again for tutorial!

@amalu-sajeev-me
Copy link

@vladwulf Thankyou for the tutorial.
But, how do we work with the refresh token in frontend.? Usually we send a request to the server with the bearer token in the header, which is our access token. And the server validates the AT and throws Forbidden error if it expires. In this case, should the client send another request to the server to get the new AT using the RT ?
please share your thoughts on this

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

2 participants