mirror of
https://github.com/danbulant/jose
synced 2026-05-21 05:18:59 +00:00
8 lines
255 B
JavaScript
8 lines
255 B
JavaScript
import globalThis from './global.js';
|
|
export default globalThis.crypto;
|
|
export function isCryptoKey(key) {
|
|
if (typeof globalThis.CryptoKey === 'undefined') {
|
|
return false;
|
|
}
|
|
return key != null && key instanceof globalThis.CryptoKey;
|
|
}
|