Hi guys, I had a question regarding using Kratos p...
# talk-kratos
n
Hi guys, I had a question regarding using Kratos purely for a mobile application (don't have any browser based frontend at least currently). In this case I don't have any
ui_url
or
default_browser_return_url
to be provided within the configurations for Kratos. Is a use-case like this supported or is having a web UI sort of a requirement for running Kratos properly. I was testing out flow from the Native APIs (using a REST client, Insomnia in my case), and was having trouble particularly with the Complete Verification Flow. The flow seems to be triggering an internal redirect to what is configured as the
ui_url
of the
verification
flow in the Kratos.yml file.
[Edit]: Ok so I found I was using the Complete Verification Flow wrong I was invoking self-service/verification with both flow and token in the query params which was causing the redirect. I only have to use this as part of the
body
for the code flow to work and invoke the URL as `/self-service/verification?flow=<verification_flow_id>`:
Copy code
{
  "email": "<mailto:example@example.com|example@example.com>",
  "method": "code",
  "code": "<code_received_in_email>"
}
Can someone please point me in the direction to work with this or point out if something like this is even possible currently. Thanks
w
Currently, your solution must involve a browser to complete the verification flow
n
I've tried a hacky workaround that seems to be working, for the
ui_url
, I'm just giving it an endpoint to an HTTP GET service that returns 200. Not sure how it's full working per say or any associated pitfalls for such a workaround. Thanks for your input @wooden-room-29321.
w
Oh nice, I’d love an update with how it ends up
Correction on my earlier link, that was information about the Kratos recovery flow, not the verification flow. My mistake https://www.ory.sh/docs/kratos/reference/api#tag/frontend/operation/updateVerificationFlow
works with API- and Browser-initiated flows