Where the decision comes from
onResultsays the run is over. Use it to move your UI on.- Your backend gets the decision, from webhooks or Retrieve session. Grant access there.
- Code on the user’s device can be modified by the user.
- The decision can come after the run. Workflows without an automatic decision, and sessions sent to manual review, are decided later in the Admin Console.
WorkflowRunResult
SessionStatus
The SDK uses the same status words as the API and webhooks.
SessionStatus is an open set: compare against the constants and keep a default branch for values a newer server may send.
The SDK’s closing screen looks the same whatever the decision. Do the same on your own screens unless your product needs to tell users the outcome, and then take it from your backend.