@1auth/account-username 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.
- package/index.js +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
lookup as accountLookup
|
|
5
5
|
} from '@1auth/account'
|
|
6
6
|
|
|
7
|
-
import { createEncryptedDigest,
|
|
7
|
+
import { createEncryptedDigest, symmetricDecryptFields } from '@1auth/crypto'
|
|
8
8
|
|
|
9
9
|
// Only allow characters that are safe to encode
|
|
10
10
|
// . not allowed because it can be used to declare and extension
|
|
@@ -41,7 +41,7 @@ export const lookup = async (username) => {
|
|
|
41
41
|
})
|
|
42
42
|
if (!item) return
|
|
43
43
|
// must match @1auth/account
|
|
44
|
-
item =
|
|
44
|
+
item = symmetricDecryptFields(
|
|
45
45
|
item,
|
|
46
46
|
{ encryptedKey: item.encryptionKey, sub: item.sub },
|
|
47
47
|
options.encryptedFields
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1auth/account-username",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
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/account": "0.0.0-alpha.
|
|
53
|
+
"@1auth/account": "0.0.0-alpha.43"
|
|
54
54
|
}
|
|
55
55
|
}
|