-
Notifications
You must be signed in to change notification settings - Fork 34
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
DataProtectorTokenProvider ValidateAsync always return false #10
Comments
@FolabiAhn did you try to check logs?
|
Thanks @jurabek for your reply. When I generate the code and validate within the same action(POST), it return true. I debug ValidateAsync method and for somehow it returning false when it tries to compare the userId and actualUserdId(the ids are not the same ?)
|
It is like DataProtectorTokenProvider between each http request is not the same |
the problem might be |
Hello, |
Yes you are right. Maybe saving the user in POST action is bad, like we can have multiple users saved without verification. |
Yes, this is one way when you |
Yes. I can complete the POST with a batch job. |
When trying to regenerate OTP code with PUT action, the code
await _dataProtectorTokenProvider.ValidateAsync("resend_token", resendToken, _userManager, user)
always return false. So the token is Invalid.Can you help on this ?
The text was updated successfully, but these errors were encountered: