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

Sessions do not match after constant_time_compare #102

Open
afidegnum opened this issue Aug 18, 2023 · 1 comment
Open

Sessions do not match after constant_time_compare #102

afidegnum opened this issue Aug 18, 2023 · 1 comment

Comments

@afidegnum
Copy link

After running the registration endpoint, I tried passing the return session to email_otp_which would call get_user_by_id function,

upon query from the database, I noticed the session_verified saved in the database is different from the one being generated returning constant_time_compare function to always be false hence returning errors.

What am I doing wrong?
Can you please assist with the correct workflow?

@afidegnum
Copy link
Author

Also, I'm a bit confused.
why was the hex encoded 2 times?
at line: 70 and 86
I obtained differents session id from those lines.

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