@meistrari/auth-core 2.0.0 → 2.1.0

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.mts CHANGED
@@ -1053,7 +1053,7 @@ type ApiKeyWithoutSecret = Omit<ApiKey, 'key'>;
1053
1053
  type CreateApiKeyPayload = {
1054
1054
  /** Display name for the API key. */
1055
1055
  name: string;
1056
- /** Time in milliseconds until the key expires. Omit for a non-expiring key. */
1056
+ /** Time in seconds until the key expires. Omit for a non-expiring key. */
1057
1057
  expiresIn?: number;
1058
1058
  /** Optional prefix prepended to the generated key for identification. */
1059
1059
  prefix?: string;
package/dist/index.d.ts CHANGED
@@ -1053,7 +1053,7 @@ type ApiKeyWithoutSecret = Omit<ApiKey, 'key'>;
1053
1053
  type CreateApiKeyPayload = {
1054
1054
  /** Display name for the API key. */
1055
1055
  name: string;
1056
- /** Time in milliseconds until the key expires. Omit for a non-expiring key. */
1056
+ /** Time in seconds until the key expires. Omit for a non-expiring key. */
1057
1057
  expiresIn?: number;
1058
1058
  /** Optional prefix prepended to the generated key for identification. */
1059
1059
  prefix?: string;
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ function isTokenExpired(token, expiresInMs) {
21
21
  return nowInSeconds > expirationTime;
22
22
  }
23
23
 
24
- const version = "2.0.0";
24
+ const version = "2.1.0";
25
25
 
26
26
  function parsedEnumValues(schema) {
27
27
  return Object.fromEntries(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/auth-core",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {