@aeriajs/builtins 0.0.297 → 0.0.299
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.
|
@@ -6,7 +6,7 @@ export const getActivationToken = async (options, context) => {
|
|
|
6
6
|
}
|
|
7
7
|
const token = throwIfError(await signToken({
|
|
8
8
|
data: options._id.toString(),
|
|
9
|
-
}, `${context.config.secret}:${options.timestamp}`, {
|
|
9
|
+
}, `${context.config.secret}:${options.timestamp.getTime()}`, {
|
|
10
10
|
expiresIn: context.config.security.linkTokenExpiration,
|
|
11
11
|
}));
|
|
12
12
|
return token;
|
|
@@ -42,7 +42,6 @@ export const getRedefinePasswordLink = async (payload, context) => {
|
|
|
42
42
|
if (!context.config.webPublicUrl) {
|
|
43
43
|
throw new Error('config.webPublicUrl is not set');
|
|
44
44
|
}
|
|
45
|
-
console.log(payload);
|
|
46
45
|
const now = new Date();
|
|
47
46
|
const user = await context.collections.user.model.findOneAndUpdate({
|
|
48
47
|
_id: new ObjectId(payload.userId),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/builtins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.299",
|
|
5
5
|
"description": "## Installation",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"mongodb": "^7.1.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aeriajs/common": "^0.0.
|
|
45
|
-
"@aeriajs/core": "^0.0.
|
|
46
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
47
|
-
"@aeriajs/types": "^0.0.
|
|
48
|
-
"@aeriajs/validation": "^0.0.
|
|
44
|
+
"@aeriajs/common": "^0.0.170",
|
|
45
|
+
"@aeriajs/core": "^0.0.299",
|
|
46
|
+
"@aeriajs/entrypoint": "^0.0.178",
|
|
47
|
+
"@aeriajs/types": "^0.0.142",
|
|
48
|
+
"@aeriajs/validation": "^0.0.195"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "echo skipping",
|