@maestro-js/password 1.0.0-alpha.24 → 1.0.0-alpha.26
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/dist/index.d.ts +5 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -73,6 +73,11 @@ declare namespace Password {
|
|
|
73
73
|
createdDate: Iso.Instant;
|
|
74
74
|
}
|
|
75
75
|
interface ResetOptions<Id> {
|
|
76
|
+
/**
|
|
77
|
+
* Persists the reset token, atomically replacing any existing token for the same authenticatable so
|
|
78
|
+
* exactly one is ever valid. Implement as an upsert (e.g. `INSERT ... ON DUPLICATE KEY UPDATE`) keyed
|
|
79
|
+
* on the authenticatable, not a separate delete-then-insert, so concurrent calls can't race.
|
|
80
|
+
*/
|
|
76
81
|
create(record: Password.ResetTokenRecord<Id>): Promise<void>;
|
|
77
82
|
getBySelector(selector: string): Promise<Password.ResetTokenRecord<Id> | null>;
|
|
78
83
|
getByAuthenticatableId(authenticatableId: Id): Promise<Password.ResetTokenRecord<Id> | null>;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"default": "./dist/index.js"
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
"version": "1.0.0-alpha.
|
|
10
|
+
"version": "1.0.0-alpha.26",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"iso-fns2": "npm:iso-fns@2.0.0-alpha.26",
|
|
19
|
-
"@maestro-js/custom-errors": "1.0.0-alpha.
|
|
20
|
-
"@maestro-js/service-registry": "1.0.0-alpha.
|
|
19
|
+
"@maestro-js/custom-errors": "1.0.0-alpha.26",
|
|
20
|
+
"@maestro-js/service-registry": "1.0.0-alpha.26"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@maestro-js/hash": "1.0.0-alpha.
|
|
23
|
+
"@maestro-js/hash": "1.0.0-alpha.26"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.19.11",
|
|
27
|
-
"@maestro-js/hash": "1.0.0-alpha.
|
|
27
|
+
"@maestro-js/hash": "1.0.0-alpha.26"
|
|
28
28
|
},
|
|
29
29
|
"license": "UNLICENSED",
|
|
30
30
|
"engines": {
|