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

How is the /refresh-token in this example secure? #22

Open
RoelRoel opened this issue Aug 6, 2021 · 0 comments
Open

How is the /refresh-token in this example secure? #22

RoelRoel opened this issue Aug 6, 2021 · 0 comments

Comments

@RoelRoel
Copy link

RoelRoel commented Aug 6, 2021

I think I am missing something but it seems to me that when you try an endless amount of random uuid's at the refresh-token endpoint at some point you get an jwt of a random user?

Probably this is secure because of guessing a random uuid is almost impossible.

But why can it be saved unencrypted to a database while you would save a password hashed? Because if your database is compromised you can login with it?

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

1 participant