iya-sts
    Preparing search index...

    Variable primaryClientSecretOf

    primaryClientSecretOf: (
        fields: any,
        nowS: any,
    ) => {
        createdAt: number;
        description: string;
        expiresAt: number;
        id: string;
        secret: any;
    } = primaryClientSecretOf

    Type Declaration

      • (
            fields: any,
            nowS: any,
        ): {
            createdAt: number;
            description: string;
            expiresAt: number;
            id: string;
            secret: any;
        }
      • Returns the PRIMARY client secret: the newest unexpired one, or — where every one has expired — the newest, so a development-mode service that accepts an expired secret still signs with something.

        Parameters

        • fields: any

          the entry's fields

        • nowS: any

          the moment, in seconds; now when omitted

        Returns {
            createdAt: number;
            description: string;
            expiresAt: number;
            id: string;
            secret: any;
        }

        the record, or null for an entry with none