@dwtechs/toker 0.1.1 → 0.1.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/toker.js +1 -1
- package/package.json +1 -1
package/dist/toker.js
CHANGED
|
@@ -136,7 +136,7 @@ function sign(iss, duration, type, b64Keys) {
|
|
|
136
136
|
const b64Secret = b64Keys[header.kid];
|
|
137
137
|
const secret = b64Decode(b64Secret, true);
|
|
138
138
|
const iat = Math.floor(Date.now() / 1000);
|
|
139
|
-
const nbf = iat
|
|
139
|
+
const nbf = iat;
|
|
140
140
|
const exp = duration > 60 ? iat + duration : iat + 60 * 15;
|
|
141
141
|
const typ = type === "refresh" ? type : "access";
|
|
142
142
|
const payload = { iss, iat, nbf, exp, typ };
|