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

Why use selector/token pair for password reset? #301

Open
Luisparf opened this issue Feb 28, 2024 · 1 comment
Open

Why use selector/token pair for password reset? #301

Luisparf opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@Luisparf
Copy link

First of all, great library!

I'm building an application and I must document the database. So, I would like to know: why use a selector/token pair instead of just 1 token?

thanks a lot!

@ocram ocram added the question label Mar 13, 2024
@ocram
Copy link
Contributor

ocram commented Mar 13, 2024

Thanks!

It’s split into two parts to protect against timing attacks. But it’s really just one pair with one meaning.

Actually, the two parts could even be joined together and be represented as just one piece for a developer using this library, and only be split again internally by this library.

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

No branches or pull requests

2 participants