Is it possible for the recovery code to be include...
# talk-kratos
t
Is it possible for the recovery code to be included in the payload of a
before
webhook? Not sure if it's something that's exposed in the
ctx
that we can use in the jsonnet template?
l
The before recovery hook runs before the recovery flow is even created.
t
Gotcha, so that step is too early for what we need. Is there a way to grab the recovery code through another means? We've tried a variety of ways, but not having much luck. Even used the new courier http methods, but they're inconsistent at the moment (Registration courier requests contain all data, recovery requests don't)
l
What are you trying to do with the code?
t
We want to use our own service to dispatch the email (so it goes through our auditing, templating etc), rather than courier. We were hoping that we could use the hooks to flag the recovery request (with the code) to that service so that we can then create the email and dispatch it. We've also tried to use the new courier
http
delivery strategy that came out in
v1.0.0
but there appears to be a few issues with that at the moment (we've raised a bug report for one of those so far) so that's not something we can use at the moment
l
Seems like you might need to implement your own “forgot password” flow.