mirror of
https://github.com/danbulant/jose
synced 2026-05-25 04:51:47 +00:00
8 lines
277 B
JavaScript
8 lines
277 B
JavaScript
import { isCryptoKey } from './webcrypto.js';
|
|
import isKeyObject from './is_key_object.js';
|
|
export default (key) => isKeyObject(key) || isCryptoKey(key);
|
|
const types = ['KeyObject'];
|
|
if (parseInt(process.versions.node) >= 16) {
|
|
types.push('CryptoKey');
|
|
}
|
|
export { types };
|