Skip to content
Français

WorkflowDecisionVerifier

import type { WorkflowDecisionVerifier } from "@elie-laloum/outpost";
  • decisionRequired
    WorkflowDecision
    Decision to authenticate, including its proof. Throw when the signature, key, actor binding or expiry is invalid; start() then applies no decision from the batch.

WorkflowDecisionVerification | Promise<WorkflowDecisionVerification>

export type WorkflowDecisionVerifier = (
  decision: WorkflowDecision,
) => Promise<WorkflowDecisionVerification> | WorkflowDecisionVerification;