@sdxc/jwt 2026.9.28 → 2026.10.2
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/jwt.js +2 -2
- package/package.json +3 -3
package/dist/jwt.js
CHANGED
|
@@ -166,7 +166,7 @@ export class JWT {
|
|
|
166
166
|
*/
|
|
167
167
|
get issuedAt() {
|
|
168
168
|
if (this.parser.has("iat"))
|
|
169
|
-
return new Date(this.parser.number("iat"));
|
|
169
|
+
return new Date(this.parser.number("iat") * MS_PER_SECOND);
|
|
170
170
|
return null;
|
|
171
171
|
}
|
|
172
172
|
/** @param value - The issuance time to set, or `null` to drop the claim. */
|
|
@@ -208,7 +208,7 @@ export class JWT {
|
|
|
208
208
|
*/
|
|
209
209
|
get notBefore() {
|
|
210
210
|
if (this.parser.has("nbf"))
|
|
211
|
-
return new Date(this.parser.number("nbf"));
|
|
211
|
+
return new Date(this.parser.number("nbf") * MS_PER_SECOND);
|
|
212
212
|
return null;
|
|
213
213
|
}
|
|
214
214
|
/** @param value - The start of validity to set, or `null` to drop the claim. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/jwt",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.10.2",
|
|
4
4
|
"description": "JWT payload classes and the keys that sign them",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"./algorithm": "./dist/algorithm.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@sdxc/duration": "2026.
|
|
12
|
+
"@sdxc/duration": "2026.10.2",
|
|
13
13
|
"jose": "^6.2.10"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "7582e46f150b052ba145945661ac9937f5f26f27",
|
|
16
16
|
"publishConfig": {
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|