iya-sts
    Preparing search index...
    unwrapAssertion: (
        presented: any,
        opts: any,
    ) => Promise<
        | {
            description?: undefined;
            encrypted: boolean;
            encryption?: undefined;
            errorCode?: undefined;
            jws: string;
            ok: boolean;
        }
        | {
            description: string;
            encrypted?: undefined;
            encryption?: undefined;
            errorCode: string;
            jws?: undefined;
            ok: boolean;
        }
        | {
            description?: undefined;
            encrypted: boolean;
            encryption: { alg: string; cty: string; enc: string; kid: string };
            errorCode?: undefined;
            jws: string;
            ok: boolean;
        },
    > = unwrapAssertion

    Type Declaration

      • (
            presented: any,
            opts: any,
        ): Promise<
            | {
                description?: undefined;
                encrypted: boolean;
                encryption?: undefined;
                errorCode?: undefined;
                jws: string;
                ok: boolean;
            }
            | {
                description: string;
                encrypted?: undefined;
                encryption?: undefined;
                errorCode: string;
                jws?: undefined;
                ok: boolean;
            }
            | {
                description?: undefined;
                encrypted: boolean;
                encryption: { alg: string; cty: string; enc: string; kid: string };
                errorCode?: undefined;
                jws: string;
                ok: boolean;
            },
        >
      • Decrypts an assertion that arrived as a JWE to the JWS inside it, with its cty checked; a JWS passes through.

        Parameters

        • presented: any

          the assertion as presented

        • opts: any

          secret, a client secret for a symmetric JWE

        Returns Promise<
            | {
                description?: undefined;
                encrypted: boolean;
                encryption?: undefined;
                errorCode?: undefined;
                jws: string;
                ok: boolean;
            }
            | {
                description: string;
                encrypted?: undefined;
                encryption?: undefined;
                errorCode: string;
                jws?: undefined;
                ok: boolean;
            }
            | {
                description?: undefined;
                encrypted: boolean;
                encryption: { alg: string; cty: string; enc: string; kid: string };
                errorCode?: undefined;
                jws: string;
                ok: boolean;
            },
        >

        a promise of { ok: true, jws, encrypted, ... }, or of { ok: false, errorCode, description }