Hello! :wave: We are trying to redirect user to di...
# talk-kratos
c
Hello! ๐Ÿ‘‹ We are trying to redirect user to different screen/content based on whether the verification link has expired or not. We are using kratos api endpoints, since we are developing react-native app. What's the best solution for this? Putting more info in a thread. ๐Ÿงต Thanks a bunch! ๐Ÿ™
Yet again we are using api flow for our react-native mobile app. We are also using
link
. These are the things that we tried: We edited the kratos config:
Copy code
verification:
      enabled: true
      lifespan: 1m
      use: link
      ui_url: expired_link_here
      after:
        default_browser_return_url: success_link_here
This seems to work for recovery flow, but it doesn't for verification. Then we decided to fetch the flow after we come to the screen from email we sent. For that we tried using multiple endpoints, but to no avail.
/self-service/verification/flows?id=${flowId}
returns 403
/self-service/verification/flows?flow=${flowId}
returns 404 // This one is mentioned in the docs
/self-service/verification?flow={flowId}
returns 403 So are we going about it in a wrong way? Isn't there a config that makes this easier? Or maybe just misbehaviour of the endpoints? Would be grateful for any kind of pointer. ๐Ÿ™