mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
12 lines
301 B
JavaScript
12 lines
301 B
JavaScript
export default crypto;
|
|
export function isCryptoKey(key) {
|
|
try {
|
|
return (key != null &&
|
|
typeof key.extractable === 'boolean' &&
|
|
typeof key.algorithm.name === 'string' &&
|
|
typeof key.type === 'string');
|
|
}
|
|
catch (_a) {
|
|
return false;
|
|
}
|
|
}
|