importJwkEntry
importJwkEntry
Imports a selected entry as a verify-only key for algorithm. The default remains RS256; pass the selected algorithm explicitly for every other RSA hash or ECDSA curve.
ts
function importJwkEntry(
entry: SupportedJwkEntry,
algorithm: JwsAlgorithm,
): Promise<JoseResult<CryptoKey, "key_unsuitable">>Parameters
entry:SupportedJwkEntryalgorithm:JwsAlgorithm