@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.
Files changed (2) hide show
  1. package/dist/toker.js +1 -1
  2. 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 + 1;
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dwtechs/toker",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Open source JWT management library for Node.js to sign, verify and parse bearer safely.",
5
5
  "keywords": [
6
6
  "jwt",