@1auth/authn 0.0.0-alpha.41 → 0.0.0-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  randomId,
4
4
  makeSymetricKey,
5
5
  symetricEncryptFields,
6
- symetricDecryptFields
6
+ symmetricDecryptFields
7
7
  } from '@1auth/crypto'
8
8
 
9
9
  const id = 'authn'
@@ -79,7 +79,7 @@ export const list = async (credentialOptions, sub, params, fields) => {
79
79
  // }
80
80
  const { encryptionKey: encryptedKey } = credential
81
81
  delete credential.encryptionKey
82
- const decryptedCredential = symetricDecryptFields(
82
+ const decryptedCredential = symmetricDecryptFields(
83
83
  credential,
84
84
  { encryptedKey, sub },
85
85
  options.encryptedFields
@@ -183,7 +183,7 @@ export const authenticate = async (credentialOptions, username, secret) => {
183
183
  continue
184
184
  }
185
185
  const { encryptionKey: encryptedKey } = credential
186
- const decryptedCredential = symetricDecryptFields(
186
+ const decryptedCredential = symmetricDecryptFields(
187
187
  credential,
188
188
  { encryptedKey, sub },
189
189
  options.encryptedFields
@@ -237,7 +237,7 @@ export const verify = async (credentialOptions, sub, input) => {
237
237
  let valid, credential
238
238
  for (credential of credentials) {
239
239
  const { encryptionKey: encryptedKey } = credential
240
- const decryptedCredential = symetricDecryptFields(
240
+ const decryptedCredential = symmetricDecryptFields(
241
241
  credential,
242
242
  { encryptedKey, sub },
243
243
  options.encryptedFields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1auth/authn",
3
- "version": "0.0.0-alpha.41",
3
+ "version": "0.0.0-alpha.43",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {
@@ -50,6 +50,6 @@
50
50
  "homepage": "https://github.com/willfarrell/1auth",
51
51
  "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431",
52
52
  "dependencies": {
53
- "@1auth/crypto": "0.0.0-alpha.41"
53
+ "@1auth/crypto": "0.0.0-alpha.43"
54
54
  }
55
55
  }