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

"The recovery token is invalid or has already been used" but it's not. #3971

Closed
frederikhors opened this issue Jun 26, 2024 · 3 comments
Closed
Labels
bug Something is not working.

Comments

@frederikhors
Copy link
Contributor

frederikhors commented Jun 26, 2024

I'm having an issue with Kratos self hosted.

When I start a new recovery flow with email, I get the email and the link like:

https://custom_domain.com/self-service/recovery?flow=b12ff5cd-09a3-852c-8e27-ca5123489444&token=AtlocRrLsHIr8ZYMRIsFj8QmduKp

If for example I send this link on a chat or there is a mail system (maybe an ANTI-SPAM extension) that "navigates" this link the token is signed in the DB as "used" but it's not!

And when a user clicks that link it gets:

The recovery token is invalid or has already been used.

Is there a way to disable the "flag as used" option in Kratos?

This is tragic!

Version

1.2.0

@frederikhors frederikhors added the bug Something is not working. label Jun 26, 2024
@frederikhors
Copy link
Contributor Author

No one? This is very tricky to fix by ourselves.

@jonas-jonas
Copy link
Member

This is the reason, we introduced the code strategy. Is that an option for you?

@frederikhors
Copy link
Contributor Author

Thank you.

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

No branches or pull requests

2 participants