Skip to content

Commit 4699c54

Browse files
authored
chore: import crypto once (#568)
1 parent b9c7bc3 commit 4699c54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/crypto.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ const {
1313
RSA_PKCS1_PADDING,
1414
RSA_PSS_SALTLEN_MAX_SIGN,
1515
RSA_PSS_SALTLEN_AUTO
16-
}
16+
},
17+
sign: directSign,
18+
verify: directVerify
1719
} = require('node:crypto')
18-
const { sign: directSign, verify: directVerify } = require('node:crypto')
1920
const { joseToDer, derToJose } = require('ecdsa-sig-formatter')
2021
const Cache = require('mnemonist/lru-cache')
2122
const { TokenError } = require('./error')

0 commit comments

Comments
 (0)