@factiii/auth 0.5.3 → 0.5.5
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/bin/init.mjs +449 -64
- package/dist/{chunk-EHI4P63M.mjs → chunk-KUYH4DBN.mjs} +8 -0
- package/dist/index.d.mts +285 -19
- package/dist/index.d.ts +285 -19
- package/dist/index.js +726 -390
- package/dist/index.mjs +724 -391
- package/dist/validators.d.mts +1 -1
- package/dist/validators.d.ts +1 -1
- package/dist/validators.mjs +1 -1
- package/package.json +29 -21
- package/dist/{hooks-BXNxNK4S.d.mts → hooks-yHGJ7C6_.d.mts} +2 -2
- package/dist/{hooks-BXNxNK4S.d.ts → hooks-yHGJ7C6_.d.ts} +2 -2
package/dist/validators.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-
|
|
2
|
+
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.mjs';
|
package/dist/validators.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-
|
|
2
|
+
export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.js';
|
package/dist/validators.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factiii/auth",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"totp",
|
|
18
18
|
"session",
|
|
19
19
|
"prisma",
|
|
20
|
+
"drizzle",
|
|
20
21
|
"typescript"
|
|
21
22
|
],
|
|
22
23
|
"repository": {
|
|
@@ -49,23 +50,8 @@
|
|
|
49
50
|
"prisma",
|
|
50
51
|
"README.md"
|
|
51
52
|
],
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsup",
|
|
54
|
-
"dev": "tsup --watch",
|
|
55
|
-
"check-types": "tsc --noEmit",
|
|
56
|
-
"lint": "eslint src",
|
|
57
|
-
"lint:fix": "eslint src --fix",
|
|
58
|
-
"format": "prettier --check src",
|
|
59
|
-
"format:fix": "prettier --write src",
|
|
60
|
-
"clean": "rm -rf dist node_modules/.cache .turbo",
|
|
61
|
-
"prepublishOnly": "npm run build",
|
|
62
|
-
"e2e": "pnpm e2e:db:up && playwright test --reporter=list; pnpm e2e:db:down",
|
|
63
|
-
"e2e:ui": "pnpm e2e:db:up && playwright test --ui",
|
|
64
|
-
"e2e:db:up": "docker compose -f e2e/docker-compose.yml up -d --wait && prisma generate --schema=e2e/server/schema.prisma --config=e2e/server/prisma.config.ts && prisma migrate reset --schema=e2e/server/schema.prisma --config=e2e/server/prisma.config.ts --force",
|
|
65
|
-
"e2e:db:down": "docker compose -f e2e/docker-compose.yml down"
|
|
66
|
-
},
|
|
67
53
|
"dependencies": {
|
|
68
|
-
"@trpc/server": "11.8.0",
|
|
54
|
+
"@trpc/server": "^11.8.0",
|
|
69
55
|
"apple-signin-auth": "^2.0.0",
|
|
70
56
|
"bcryptjs": "^2.4.3",
|
|
71
57
|
"google-auth-library": "^10.5.0",
|
|
@@ -74,12 +60,16 @@
|
|
|
74
60
|
},
|
|
75
61
|
"peerDependencies": {
|
|
76
62
|
"@prisma/client": ">=5.0.0",
|
|
63
|
+
"drizzle-orm": ">=0.30.0",
|
|
77
64
|
"superjson": ">=1.0.0",
|
|
78
65
|
"zod": ">=3.20.0"
|
|
79
66
|
},
|
|
80
67
|
"peerDependenciesMeta": {
|
|
81
68
|
"@prisma/client": {
|
|
82
|
-
"optional":
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"drizzle-orm": {
|
|
72
|
+
"optional": true
|
|
83
73
|
},
|
|
84
74
|
"superjson": {
|
|
85
75
|
"optional": false
|
|
@@ -94,7 +84,7 @@
|
|
|
94
84
|
"@prisma/adapter-pg": "^7.3.0",
|
|
95
85
|
"@prisma/client": "^7.1.0",
|
|
96
86
|
"@trpc/client": "^11.8.0",
|
|
97
|
-
"@trpc/server": "11.8.0",
|
|
87
|
+
"@trpc/server": "^11.8.0",
|
|
98
88
|
"@types/bcryptjs": "^2.4.6",
|
|
99
89
|
"@types/better-sqlite3": "^7.6.13",
|
|
100
90
|
"@types/jsonwebtoken": "^9.0.9",
|
|
@@ -106,6 +96,7 @@
|
|
|
106
96
|
"@typescript-eslint/parser": "^7.18.0",
|
|
107
97
|
"@vitejs/plugin-react": "^5.1.3",
|
|
108
98
|
"better-sqlite3": "^12.6.2",
|
|
99
|
+
"drizzle-orm": "^0.44.0",
|
|
109
100
|
"eslint": "^8.57.0",
|
|
110
101
|
"pg": "^8.18.0",
|
|
111
102
|
"prettier": "^3.8.1",
|
|
@@ -118,10 +109,27 @@
|
|
|
118
109
|
"tsx": "^4.21.0",
|
|
119
110
|
"typescript": "5.9.3",
|
|
120
111
|
"vite": "^7.3.1",
|
|
112
|
+
"vitest": "^4.1.0",
|
|
121
113
|
"zod": "3.24.2"
|
|
122
114
|
},
|
|
123
115
|
"engines": {
|
|
124
116
|
"node": ">=18.0.0"
|
|
125
117
|
},
|
|
126
|
-
"
|
|
127
|
-
|
|
118
|
+
"scripts": {
|
|
119
|
+
"build": "tsup",
|
|
120
|
+
"dev": "tsup --watch",
|
|
121
|
+
"check-types": "tsc --noEmit",
|
|
122
|
+
"lint": "eslint src",
|
|
123
|
+
"lint:fix": "eslint src --fix",
|
|
124
|
+
"format": "prettier --check src",
|
|
125
|
+
"format:fix": "prettier --write src",
|
|
126
|
+
"test": "vitest run",
|
|
127
|
+
"test:watch": "vitest",
|
|
128
|
+
"seed": "tsx e2e/seed.ts",
|
|
129
|
+
"clean": "rm -rf dist node_modules/.cache .turbo",
|
|
130
|
+
"e2e": "pnpm e2e:db:up && playwright test --reporter=list; pnpm e2e:db:down",
|
|
131
|
+
"e2e:ui": "pnpm e2e:db:up && playwright test --ui",
|
|
132
|
+
"e2e:db:up": "docker compose -f e2e/docker-compose.yml up -d --wait && prisma generate --schema=e2e/server/schema.prisma --config=e2e/server/prisma.config.ts && prisma migrate reset --schema=e2e/server/schema.prisma --config=e2e/server/prisma.config.ts --force",
|
|
133
|
+
"e2e:db:down": "docker compose -f e2e/docker-compose.yml down"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -8,12 +8,12 @@ declare const signupSchema: z.ZodObject<{
|
|
|
8
8
|
email: z.ZodString;
|
|
9
9
|
password: z.ZodEffects<z.ZodString, string, string>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
email: string;
|
|
12
11
|
username: string;
|
|
12
|
+
email: string;
|
|
13
13
|
password: string;
|
|
14
14
|
}, {
|
|
15
|
-
email: string;
|
|
16
15
|
username: string;
|
|
16
|
+
email: string;
|
|
17
17
|
password: string;
|
|
18
18
|
}>;
|
|
19
19
|
/**
|
|
@@ -8,12 +8,12 @@ declare const signupSchema: z.ZodObject<{
|
|
|
8
8
|
email: z.ZodString;
|
|
9
9
|
password: z.ZodEffects<z.ZodString, string, string>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
email: string;
|
|
12
11
|
username: string;
|
|
12
|
+
email: string;
|
|
13
13
|
password: string;
|
|
14
14
|
}, {
|
|
15
|
-
email: string;
|
|
16
15
|
username: string;
|
|
16
|
+
email: string;
|
|
17
17
|
password: string;
|
|
18
18
|
}>;
|
|
19
19
|
/**
|