Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@1auth/messenger

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1auth/messenger - npm Package Compare versions

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc