@kronos-integration/service-authenticator 4.1.9 → 4.1.11

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2019-2025 by arlac77
1
+ Copyright (C) 2019-2026 by arlac77
2
2
 
3
3
  Permission to use, copy, modify, and/or distribute this software for any
4
4
  purpose with or without fee is hereby granted.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-authenticator",
3
- "version": "4.1.9",
3
+ "version": "4.1.11",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -30,8 +30,8 @@
30
30
  "lint:docs": "documentation lint ./src**/*.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "@kronos-integration/endpoint": "^11.0.7",
34
- "@kronos-integration/service": "^15.4.1",
33
+ "@kronos-integration/endpoint": "^11.0.11",
34
+ "@kronos-integration/service": "^15.4.7",
35
35
  "jsonwebtoken": "^9.0.3"
36
36
  },
37
37
  "devDependencies": {
@@ -5,7 +5,7 @@ import {
5
5
  public_key_attribute,
6
6
  private_key_attribute,
7
7
  object_attribute,
8
- duration_ms_attribute,
8
+ duration_attribute,
9
9
  string_attribute
10
10
  } from "pacc";
11
11
  import { Service } from "@kronos-integration/service";
@@ -66,14 +66,14 @@ export class ServiceAuthenticator extends Service {
66
66
  ...object_attribute,
67
67
  attributes: {
68
68
  algorithm,
69
- expiresIn: { ...duration_ms_attribute, default: "1h" }
69
+ expiresIn: { ...duration_attribute, default: "1h" }
70
70
  }
71
71
  },
72
72
  refresh_token: {
73
73
  ...object_attribute,
74
74
  attributes: {
75
75
  algorithm,
76
- expiresIn: { ...duration_ms_attribute, default: "90d" }
76
+ expiresIn: { ...duration_attribute, default: "90d" }
77
77
  }
78
78
  }
79
79
  }
@@ -177,7 +177,7 @@ export class ServiceAuthenticator extends Service {
177
177
  };
178
178
  return {
179
179
  token_type: "Bearer",
180
- expires_in: j.access_token.expiresIn / 1000,
180
+ expires_in: j.access_token.expiresIn,
181
181
  access_token: jwt.sign(claims, j.private, j.access_token),
182
182
  refresh_token: jwt.sign(refreshClaims, j.private, j.refresh_token)
183
183
  };