https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
b

blue-state-12403

10/05/2021, 1:56 PM
Hello everyone, I have successfully implemented the recovery flow (for SPA), but I am currently looking for a possibility to extract the flow id and the token via API that were send to the user with the recovery mail, is this somehow possible?
p

proud-plumber-24205

10/05/2021, 1:58 PM
Hi @blue-state-12403 why do you want to extract the flow id and token? I suppose it is possible by looking up the user in the Kratos database.
b

blue-state-12403

10/05/2021, 2:01 PM
I have an existing userbase that has to be imported and I do not want to "scare" my users by sending out recovery mails
so the plan is to import them and automate the recovery process before we switch the auth provider
Currently my plan includes spinning up a mailslurper where the mails get "stuck", fetch the sqlite and get it from there, but this is just another external dependency
s

steep-lamp-91158

10/05/2021, 2:06 PM
You can provide email templates, so you can state in there why it is needed Other than that, you are probably looking for https://github.com/ory/kratos/issues/1030
b

blue-state-12403

10/05/2021, 2:09 PM
or a webhook 🤔
6 Views