-
Hi, I implemented Ory Kratos with my own vue3 frontend and noticed that verification & account recovery were not working. To be sure it is no problem with my implementation, I checked it with the official react sample. I thus cloned https://github.com/ory/kratos-selfservice-ui-react-nextjs, created a tunnel with my Ory Network instance to local host and set the ORY_SDK_URL appropriately. I can acess the frontend and stuff like registration, login, logout, settings are working as expected (same in my vue implementation). The first issue is verification though. I can access the verification screen and put in my email in (or use the verification email that you automatically get after a registration): In the email I click the link, which redirects me first to Ory Network and then to my frontend. The url is But then it just removes the flow from the url and reloads the page. Which leads to the normal verification screen: According to some debugging I always get a cors mismatch problem or something like that. So it just reload according to the code
With account recovers the process is similar. I can put in my email and get the email for recovery, that's all working. When clicking on it it redirects me to I believe the issue with recovery could be that my account is not verified and therefore recovery is not allowed? I can't test this though, because account verification is not working :-) But if that's the issue I wonder if there would be a better way to handle this scenario and show a proper error message. Edit: According to the documentation, recovery should work without prior activation and will actually lead to activation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Thank you for the report! One issue recovery and verification right now is that we need to send a link to a browser URL in the email. That's the link the user clicks. However, that link is linked to your primary domain (oryapis.com, or your custom domain). It's never localhost. But it should be localhost! We're working on a new strategy in Q3/Q4 which will use a code sent to the email instead of a link, that way there are no URLs that need to be clicked :) |
Beta Was this translation helpful? Give feedback.
In that case it is much easier to deploy Ory Kratos locally. The Ory Proxy and Ory Tunnel are using opinionated code that only works in our cloud system and we optimize it for Ory Network