@darco2903/auth-api 2.1.3 → 2.1.4

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/client.d.ts CHANGED
@@ -766,8 +766,8 @@ export declare function createClient(origin: string): {
766
766
  status: 200;
767
767
  body: {
768
768
  data: {
769
- exp: number;
770
769
  iat: number;
770
+ exp: number;
771
771
  } & {
772
772
  role: number;
773
773
  public_id: string;
package/dist/consts.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import type { Algorithm } from "jsonwebtoken";
2
1
  export declare const API_VERSION = "v2";
3
2
  export declare const API_PATH_PREFIX = "/api/v2";
4
- export declare const JWT_ALGORITHM: Algorithm;
5
- export declare const JWT_ALGORITHMS: Algorithm[];
3
+ export declare const JWT_ALGORITHM = "ES256";
4
+ export declare const JWT_ALGORITHMS: string[];
6
5
  export declare const NAME_MIN_LENGTH = 3;
7
6
  export declare const NAME_MAX_LENGTH = 32;
8
7
  export declare const EMAIL_MAX_LENGTH = 255;
@@ -18,11 +18,11 @@ declare const _default: {
18
18
  iat: z.ZodNumber;
19
19
  exp: z.ZodNumber;
20
20
  }, "strip", z.ZodTypeAny, {
21
- exp: number;
22
21
  iat: number;
23
- }, {
24
22
  exp: number;
23
+ }, {
25
24
  iat: number;
25
+ exp: number;
26
26
  }>, z.ZodObject<{
27
27
  public_id: z.ZodString;
28
28
  role: z.ZodNumber;
@@ -44,8 +44,8 @@ declare const _default: {
44
44
  }>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  data: {
47
- exp: number;
48
47
  iat: number;
48
+ exp: number;
49
49
  } & {
50
50
  role: number;
51
51
  public_id: string;
@@ -56,8 +56,8 @@ declare const _default: {
56
56
  result: true;
57
57
  }, {
58
58
  data: {
59
- exp: number;
60
59
  iat: number;
60
+ exp: number;
61
61
  } & {
62
62
  role: number;
63
63
  public_id: string;
@@ -1859,11 +1859,11 @@ declare const _default: {
1859
1859
  iat: import("zod").ZodNumber;
1860
1860
  exp: import("zod").ZodNumber;
1861
1861
  }, "strip", import("zod").ZodTypeAny, {
1862
- exp: number;
1863
1862
  iat: number;
1864
- }, {
1865
1863
  exp: number;
1864
+ }, {
1866
1865
  iat: number;
1866
+ exp: number;
1867
1867
  }>, import("zod").ZodObject<{
1868
1868
  public_id: import("zod").ZodString;
1869
1869
  role: import("zod").ZodNumber;
@@ -1885,8 +1885,8 @@ declare const _default: {
1885
1885
  }>>;
1886
1886
  }, "strip", import("zod").ZodTypeAny, {
1887
1887
  data: {
1888
- exp: number;
1889
1888
  iat: number;
1889
+ exp: number;
1890
1890
  } & {
1891
1891
  role: number;
1892
1892
  public_id: string;
@@ -1897,8 +1897,8 @@ declare const _default: {
1897
1897
  result: true;
1898
1898
  }, {
1899
1899
  data: {
1900
- exp: number;
1901
1900
  iat: number;
1901
+ exp: number;
1902
1902
  } & {
1903
1903
  role: number;
1904
1904
  public_id: string;
@@ -39,11 +39,11 @@ export declare const accessTokenDataDecodedSchema: z.ZodIntersection<z.ZodObject
39
39
  iat: z.ZodNumber;
40
40
  exp: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
- exp: number;
43
42
  iat: number;
44
- }, {
45
43
  exp: number;
44
+ }, {
46
45
  iat: number;
46
+ exp: number;
47
47
  }>, z.ZodObject<{
48
48
  public_id: z.ZodString;
49
49
  role: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darco2903/auth-api",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -22,7 +22,6 @@
22
22
  "@darco2903/cdn-api": "^1.1.0",
23
23
  "@ts-rest/core": "^3.52.1",
24
24
  "@ts-rest/open-api": "^3.52.1",
25
- "@types/jsonwebtoken": "^9.0.10",
26
25
  "jsonwebtoken": "^9.0.3",
27
26
  "neverthrow": "^8.2.0",
28
27
  "zod": "^3.25.76"
@@ -31,6 +30,7 @@
31
30
  "@darco2903/secondthought": "^1.1.0"
32
31
  },
33
32
  "devDependencies": {
33
+ "@types/jsonwebtoken": "^9.0.10",
34
34
  "@types/node": "^25.4.0",
35
35
  "prettier": "^3.8.1",
36
36
  "rimraf": "^6.1.3",