@darco2903/auth-api 2.1.2 → 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 +1 -1
- package/dist/consts.d.ts +2 -3
- package/dist/contract/auth.d.ts +4 -4
- package/dist/contract/index.d.ts +4 -4
- package/dist/types/jwt.d.ts +2 -2
- package/package.json +2 -2
- package/prettier.config.ts +22 -0
package/dist/client.d.ts
CHANGED
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
|
|
5
|
-
export declare const JWT_ALGORITHMS:
|
|
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;
|
package/dist/contract/auth.d.ts
CHANGED
|
@@ -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;
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/jwt.d.ts
CHANGED
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darco2903/auth-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"keywords": [],
|
|
8
|
-
"author": "",
|
|
8
|
+
"author": "Darco2903",
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"repository": {
|
|
11
11
|
"url": "https://github.com/Darco2903/auth-api.git"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Config } from "prettier";
|
|
2
|
+
|
|
3
|
+
const config: Config = {
|
|
4
|
+
trailingComma: "es5",
|
|
5
|
+
tabWidth: 4,
|
|
6
|
+
semi: true,
|
|
7
|
+
singleQuote: false,
|
|
8
|
+
bracketSpacing: true,
|
|
9
|
+
printWidth: 80,
|
|
10
|
+
arrowParens: "always",
|
|
11
|
+
endOfLine: "lf",
|
|
12
|
+
useTabs: false,
|
|
13
|
+
proseWrap: "preserve",
|
|
14
|
+
quoteProps: "as-needed",
|
|
15
|
+
htmlWhitespaceSensitivity: "css",
|
|
16
|
+
bracketSameLine: false,
|
|
17
|
+
experimentalOperatorPosition: "start",
|
|
18
|
+
experimentalTernaries: true,
|
|
19
|
+
objectWrap: "preserve",
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default config;
|