iya-sts
    Preparing search index...

    Variable verifyCompactJwsWithCertificate

    verifyCompactJwsWithCertificate: (
        token: any,
        certificate: any,
        opts: any,
    ) => { claims: any; header: any } = verifyCompactJwsWithCertificate

    Type Declaration

      • (token: any, certificate: any, opts: any): { claims: any; header: any }
      • Verifies a compact JWS with the public key a certificate holds.

        Parameters

        • token: any

          the compact JWS

        • certificate: any

          the signer's certificate, PEM or base64 DER

        • opts: any

          as for verifyCompactJws(); algorithms is required

        Returns { claims: any; header: any }

        { header, claims }, as verifyCompactJws()

        Error when the key cannot be read or the signature does not verify