Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename recovery request to recovery flow
As part of this change, fetching a login flow over the public API no longer requires Anti-CSRF cookies to be sent. Partially closes #635 BREAKING CHANGE: Wording has changed from "Self-Service Recovery Request" to "Self-Service Recovery Flow" to follow community feedback and practice already applied in the documentation. Additionally, fetching a recovery flow over the public API no longer requires Anti-CSRF cookies to be sent. This patch renames several important recovery flow endpoints: - `/self-service/browser/flows/recovery` is now `/self-service/recovery/browser` without functional changes. - `/self-service/browser/flows/requests/recovery?request=abcd` is now `/self-service/recovery/flows?id=abcd` and no longer needs anti-CSRF cookies to be available. Additionally, the URL for completing the password and oidc recovery method has been moved. Given that this endpoint is typically not manually called, you can probably ignore this change: - `/self-service/browser/flows/recovery/link?request=abcd` is now `/self-service/recovery/methods/link?flow=abcd` without functional changes. The Recovery UI Endpoint no longer receives a `?request=abcde` query parameter but instead a `?flow=abcde` query parameter. Functionality did not change however. As part of this change SDK methods have been renamed: ``` const kratos = new CommonApi(config.kratos.public) // ... - kratos.completeSelfServiceBrowserRecoveryLinkStrategyFlow(req.query.request) + kratos.completeSelfServiceRecoveryFlowWithLinkMethod(req.query.flow) ``` This patch requires you to run SQL migrations.
- Loading branch information