Member Junction
    Preparing search index...

    Function ComputeVerifiedDeadline

    • The session deadline after a successful verification, or undefined when verification should not change it.

      Verification only ever extends a deadline that exists: a session with no deadline stays uncapped, and a verifiedMaxSeconds shorter than what is already granted never pulls a deadline in. The new deadline is measured from the session's start, so verifiedMaxSeconds means "a verified session may run this long in total", the same meaning unverifiedMaxSeconds has.

      Parameters

      • args: {
            CurrentDeadlineIso: string;
            SessionStartedAtMs: number;
            VerifiedMaxSeconds: number;
        }
        • CurrentDeadlineIso: string

          the stamped deadline, if any

        • SessionStartedAtMs: number

          when the session started, epoch ms

        • VerifiedMaxSeconds: number

          the verified cap from policy, if any

      Returns string

      the new ISO deadline, or undefined for "leave it alone"