@1auth/messenger
Advanced tools
Comparing version 0.0.0-alpha.42 to 0.0.0-alpha.43
26
index.js
@@ -11,3 +11,3 @@ import { | ||
symetricEncryptFields, | ||
symetricDecryptFields | ||
symmetricDecryptFields | ||
} from '@1auth/crypto' | ||
@@ -70,3 +70,3 @@ | ||
delete res.encryptionKey | ||
const decryptedValues = symetricDecryptFields( | ||
const decryptedValues = symmetricDecryptFields( | ||
res, | ||
@@ -87,3 +87,3 @@ { encryptedKey, sub }, | ||
delete messengers[i].encryptionKey | ||
messengers[i] = symetricDecryptFields( | ||
messengers[i] = symmetricDecryptFields( | ||
messengers[i], | ||
@@ -107,3 +107,8 @@ { encryptedKey, sub }, | ||
if (valueExists?.sub !== sub && valueExists?.verify) { | ||
await options.notify.trigger(`messenger-${type}-exists`, sub) | ||
await options.notify.trigger( | ||
`messenger-${type}-exists`, | ||
sub, | ||
{}, | ||
{ messengers: [valueExists.id] } | ||
) | ||
return | ||
@@ -158,6 +163,11 @@ } else if (valueExists?.sub === sub) { | ||
}) | ||
await options.notify.trigger(`messenger-${type}-verify`, sub, { | ||
token, | ||
expire | ||
}) | ||
await options.notify.trigger( | ||
`messenger-${type}-verify`, | ||
sub, | ||
{ | ||
token, | ||
expire | ||
}, | ||
{ messengers: [sourceId] } | ||
) | ||
return id | ||
@@ -164,0 +174,0 @@ } |
{ | ||
"name": "@1auth/messenger", | ||
"version": "0.0.0-alpha.42", | ||
"version": "0.0.0-alpha.43", | ||
"description": "", | ||
@@ -53,5 +53,5 @@ "type": "module", | ||
"dependencies": { | ||
"@1auth/authn": "0.0.0-alpha.42", | ||
"@1auth/crypto": "0.0.0-alpha.42" | ||
"@1auth/authn": "0.0.0-alpha.43", | ||
"@1auth/crypto": "0.0.0-alpha.43" | ||
} | ||
} |
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
6017
186
+ Added@1auth/authn@0.0.0-alpha.43(transitive)
+ Added@1auth/crypto@0.0.0-alpha.43(transitive)
- Removed@1auth/authn@0.0.0-alpha.42(transitive)
- Removed@1auth/crypto@0.0.0-alpha.42(transitive)
Updated@1auth/authn@0.0.0-alpha.43
Updated@1auth/crypto@0.0.0-alpha.43