@1auth/crypto
Advanced tools
Comparing version 0.0.0-alpha.41 to 0.0.0-alpha.42
@@ -415,2 +415,3 @@ import { promisify } from 'node:util' | ||
) => { | ||
// if (typeof data !== 'string') throw new TypeError('data must me a string') | ||
encryptionKey ??= options.symetricEncryptionKey | ||
@@ -431,2 +432,3 @@ algorithm ??= options.hmacAlgorithm | ||
) => { | ||
if (typeof signedData !== 'string') return false | ||
const data = signedData.slice(0, signedData.lastIndexOf('.')) | ||
@@ -433,0 +435,0 @@ const signedDataExpected = makeSymmetricSignature(data, encryptionKey, { |
{ | ||
"name": "@1auth/crypto", | ||
"version": "0.0.0-alpha.41", | ||
"version": "0.0.0-alpha.42", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13850
406