node-jwt
    Preparing search index...

    Function isJWKUsableFor

    • Whether jwk may verify signatures made with alg: use must be sig (or absent), key_ops must include verify (or be absent), alg must match (or be absent) and the key type / curve must fit the algorithm (RFC 7517 section 4, RFC 8725 section 3.1).

      Parameters

      • jwk: JWK
      • alg: string
      • operation: "sign" | "verify" = 'verify'

      Returns boolean