iya-sts
    Preparing search index...

    Variable renewalDecision

    renewalDecision: (
        session: any,
        nowMs: number,
        marginMs: number,
    ) => { action: "none" | "end" | "renew"; code?: string; why?: string } = ...

    Type Declaration

      • (
            session: any,
            nowMs: number,
            marginMs: number,
        ): { action: "none" | "end" | "renew"; code?: string; why?: string }
      • Decides what a session's renewal should do, without doing it.

        Parameters

        • session: any

          the relying-party session

        • nowMs: number

          the time now

        • marginMs: number

          how long before the tokens run out a renewal is due

        Returns { action: "none" | "end" | "renew"; code?: string; why?: string }

        none (nothing to do), renew, or end (the tokens ran out and cannot be renewed) with code and why