@arch-cadre/two-factor-email 0.0.1 → 1.0.2
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/schema.d.ts +62 -46
- package/locales/pl/global.json +19 -0
- package/package.json +8 -8
package/dist/schema.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const twoFactorSettingsTable: import("drizzle-orm/pg-core").PgTab
|
|
|
2
2
|
name: "two_factor_settings";
|
|
3
3
|
schema: undefined;
|
|
4
4
|
columns: {
|
|
5
|
-
userId: import("drizzle-orm/pg-core").
|
|
5
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
6
6
|
name: string;
|
|
7
7
|
tableName: "two_factor_settings";
|
|
8
8
|
dataType: "string";
|
|
@@ -10,14 +10,15 @@ export declare const twoFactorSettingsTable: import("drizzle-orm/pg-core").PgTab
|
|
|
10
10
|
driverParam: string;
|
|
11
11
|
notNull: true;
|
|
12
12
|
hasDefault: false;
|
|
13
|
-
isPrimaryKey:
|
|
13
|
+
isPrimaryKey: true;
|
|
14
14
|
isAutoincrement: false;
|
|
15
15
|
hasRuntimeDefault: false;
|
|
16
|
-
enumValues:
|
|
16
|
+
enumValues: [string, ...string[]];
|
|
17
|
+
baseColumn: never;
|
|
17
18
|
identity: undefined;
|
|
18
19
|
generated: undefined;
|
|
19
|
-
}>;
|
|
20
|
-
enabled: import("drizzle-orm/pg-core").
|
|
20
|
+
}, {}>;
|
|
21
|
+
enabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
21
22
|
name: string;
|
|
22
23
|
tableName: "two_factor_settings";
|
|
23
24
|
dataType: "boolean";
|
|
@@ -29,10 +30,11 @@ export declare const twoFactorSettingsTable: import("drizzle-orm/pg-core").PgTab
|
|
|
29
30
|
isAutoincrement: false;
|
|
30
31
|
hasRuntimeDefault: false;
|
|
31
32
|
enumValues: undefined;
|
|
33
|
+
baseColumn: never;
|
|
32
34
|
identity: undefined;
|
|
33
35
|
generated: undefined;
|
|
34
|
-
}>;
|
|
35
|
-
updatedAt: import("drizzle-orm/pg-core").
|
|
36
|
+
}, {}>;
|
|
37
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
36
38
|
name: string;
|
|
37
39
|
tableName: "two_factor_settings";
|
|
38
40
|
dataType: "object date";
|
|
@@ -44,9 +46,10 @@ export declare const twoFactorSettingsTable: import("drizzle-orm/pg-core").PgTab
|
|
|
44
46
|
isAutoincrement: false;
|
|
45
47
|
hasRuntimeDefault: false;
|
|
46
48
|
enumValues: undefined;
|
|
49
|
+
baseColumn: never;
|
|
47
50
|
identity: undefined;
|
|
48
51
|
generated: undefined;
|
|
49
|
-
}>;
|
|
52
|
+
}, {}>;
|
|
50
53
|
};
|
|
51
54
|
dialect: "pg";
|
|
52
55
|
}>;
|
|
@@ -54,7 +57,7 @@ export declare const twoFactorTokensTable: import("drizzle-orm/pg-core").PgTable
|
|
|
54
57
|
name: "two_factor_tokens";
|
|
55
58
|
schema: undefined;
|
|
56
59
|
columns: {
|
|
57
|
-
id: import("drizzle-orm/pg-core").
|
|
60
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
58
61
|
name: string;
|
|
59
62
|
tableName: "two_factor_tokens";
|
|
60
63
|
dataType: "string";
|
|
@@ -62,14 +65,15 @@ export declare const twoFactorTokensTable: import("drizzle-orm/pg-core").PgTable
|
|
|
62
65
|
driverParam: string;
|
|
63
66
|
notNull: true;
|
|
64
67
|
hasDefault: true;
|
|
65
|
-
isPrimaryKey:
|
|
68
|
+
isPrimaryKey: true;
|
|
66
69
|
isAutoincrement: false;
|
|
67
|
-
hasRuntimeDefault:
|
|
68
|
-
enumValues:
|
|
70
|
+
hasRuntimeDefault: true;
|
|
71
|
+
enumValues: [string, ...string[]];
|
|
72
|
+
baseColumn: never;
|
|
69
73
|
identity: undefined;
|
|
70
74
|
generated: undefined;
|
|
71
|
-
}>;
|
|
72
|
-
userId: import("drizzle-orm/pg-core").
|
|
75
|
+
}, {}>;
|
|
76
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
73
77
|
name: string;
|
|
74
78
|
tableName: "two_factor_tokens";
|
|
75
79
|
dataType: "string";
|
|
@@ -80,11 +84,12 @@ export declare const twoFactorTokensTable: import("drizzle-orm/pg-core").PgTable
|
|
|
80
84
|
isPrimaryKey: false;
|
|
81
85
|
isAutoincrement: false;
|
|
82
86
|
hasRuntimeDefault: false;
|
|
83
|
-
enumValues:
|
|
87
|
+
enumValues: [string, ...string[]];
|
|
88
|
+
baseColumn: never;
|
|
84
89
|
identity: undefined;
|
|
85
90
|
generated: undefined;
|
|
86
|
-
}>;
|
|
87
|
-
code: import("drizzle-orm/pg-core").
|
|
91
|
+
}, {}>;
|
|
92
|
+
code: import("drizzle-orm/pg-core").PgColumn<{
|
|
88
93
|
name: string;
|
|
89
94
|
tableName: "two_factor_tokens";
|
|
90
95
|
dataType: "string";
|
|
@@ -95,11 +100,12 @@ export declare const twoFactorTokensTable: import("drizzle-orm/pg-core").PgTable
|
|
|
95
100
|
isPrimaryKey: false;
|
|
96
101
|
isAutoincrement: false;
|
|
97
102
|
hasRuntimeDefault: false;
|
|
98
|
-
enumValues:
|
|
103
|
+
enumValues: [string, ...string[]];
|
|
104
|
+
baseColumn: never;
|
|
99
105
|
identity: undefined;
|
|
100
106
|
generated: undefined;
|
|
101
|
-
}>;
|
|
102
|
-
expiresAt: import("drizzle-orm/pg-core").
|
|
107
|
+
}, {}>;
|
|
108
|
+
expiresAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
103
109
|
name: string;
|
|
104
110
|
tableName: "two_factor_tokens";
|
|
105
111
|
dataType: "object date";
|
|
@@ -111,10 +117,11 @@ export declare const twoFactorTokensTable: import("drizzle-orm/pg-core").PgTable
|
|
|
111
117
|
isAutoincrement: false;
|
|
112
118
|
hasRuntimeDefault: false;
|
|
113
119
|
enumValues: undefined;
|
|
120
|
+
baseColumn: never;
|
|
114
121
|
identity: undefined;
|
|
115
122
|
generated: undefined;
|
|
116
|
-
}>;
|
|
117
|
-
createdAt: import("drizzle-orm/pg-core").
|
|
123
|
+
}, {}>;
|
|
124
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
118
125
|
name: string;
|
|
119
126
|
tableName: "two_factor_tokens";
|
|
120
127
|
dataType: "object date";
|
|
@@ -126,9 +133,10 @@ export declare const twoFactorTokensTable: import("drizzle-orm/pg-core").PgTable
|
|
|
126
133
|
isAutoincrement: false;
|
|
127
134
|
hasRuntimeDefault: false;
|
|
128
135
|
enumValues: undefined;
|
|
136
|
+
baseColumn: never;
|
|
129
137
|
identity: undefined;
|
|
130
138
|
generated: undefined;
|
|
131
|
-
}>;
|
|
139
|
+
}, {}>;
|
|
132
140
|
};
|
|
133
141
|
dialect: "pg";
|
|
134
142
|
}>;
|
|
@@ -137,7 +145,7 @@ export declare const twoFactorSchema: {
|
|
|
137
145
|
name: "two_factor_settings";
|
|
138
146
|
schema: undefined;
|
|
139
147
|
columns: {
|
|
140
|
-
userId: import("drizzle-orm/pg-core").
|
|
148
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
141
149
|
name: string;
|
|
142
150
|
tableName: "two_factor_settings";
|
|
143
151
|
dataType: "string";
|
|
@@ -145,14 +153,15 @@ export declare const twoFactorSchema: {
|
|
|
145
153
|
driverParam: string;
|
|
146
154
|
notNull: true;
|
|
147
155
|
hasDefault: false;
|
|
148
|
-
isPrimaryKey:
|
|
156
|
+
isPrimaryKey: true;
|
|
149
157
|
isAutoincrement: false;
|
|
150
158
|
hasRuntimeDefault: false;
|
|
151
|
-
enumValues:
|
|
159
|
+
enumValues: [string, ...string[]];
|
|
160
|
+
baseColumn: never;
|
|
152
161
|
identity: undefined;
|
|
153
162
|
generated: undefined;
|
|
154
|
-
}>;
|
|
155
|
-
enabled: import("drizzle-orm/pg-core").
|
|
163
|
+
}, {}>;
|
|
164
|
+
enabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
156
165
|
name: string;
|
|
157
166
|
tableName: "two_factor_settings";
|
|
158
167
|
dataType: "boolean";
|
|
@@ -164,10 +173,11 @@ export declare const twoFactorSchema: {
|
|
|
164
173
|
isAutoincrement: false;
|
|
165
174
|
hasRuntimeDefault: false;
|
|
166
175
|
enumValues: undefined;
|
|
176
|
+
baseColumn: never;
|
|
167
177
|
identity: undefined;
|
|
168
178
|
generated: undefined;
|
|
169
|
-
}>;
|
|
170
|
-
updatedAt: import("drizzle-orm/pg-core").
|
|
179
|
+
}, {}>;
|
|
180
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
171
181
|
name: string;
|
|
172
182
|
tableName: "two_factor_settings";
|
|
173
183
|
dataType: "object date";
|
|
@@ -179,9 +189,10 @@ export declare const twoFactorSchema: {
|
|
|
179
189
|
isAutoincrement: false;
|
|
180
190
|
hasRuntimeDefault: false;
|
|
181
191
|
enumValues: undefined;
|
|
192
|
+
baseColumn: never;
|
|
182
193
|
identity: undefined;
|
|
183
194
|
generated: undefined;
|
|
184
|
-
}>;
|
|
195
|
+
}, {}>;
|
|
185
196
|
};
|
|
186
197
|
dialect: "pg";
|
|
187
198
|
}>;
|
|
@@ -189,7 +200,7 @@ export declare const twoFactorSchema: {
|
|
|
189
200
|
name: "two_factor_tokens";
|
|
190
201
|
schema: undefined;
|
|
191
202
|
columns: {
|
|
192
|
-
id: import("drizzle-orm/pg-core").
|
|
203
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
193
204
|
name: string;
|
|
194
205
|
tableName: "two_factor_tokens";
|
|
195
206
|
dataType: "string";
|
|
@@ -197,14 +208,15 @@ export declare const twoFactorSchema: {
|
|
|
197
208
|
driverParam: string;
|
|
198
209
|
notNull: true;
|
|
199
210
|
hasDefault: true;
|
|
200
|
-
isPrimaryKey:
|
|
211
|
+
isPrimaryKey: true;
|
|
201
212
|
isAutoincrement: false;
|
|
202
|
-
hasRuntimeDefault:
|
|
203
|
-
enumValues:
|
|
213
|
+
hasRuntimeDefault: true;
|
|
214
|
+
enumValues: [string, ...string[]];
|
|
215
|
+
baseColumn: never;
|
|
204
216
|
identity: undefined;
|
|
205
217
|
generated: undefined;
|
|
206
|
-
}>;
|
|
207
|
-
userId: import("drizzle-orm/pg-core").
|
|
218
|
+
}, {}>;
|
|
219
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
208
220
|
name: string;
|
|
209
221
|
tableName: "two_factor_tokens";
|
|
210
222
|
dataType: "string";
|
|
@@ -215,11 +227,12 @@ export declare const twoFactorSchema: {
|
|
|
215
227
|
isPrimaryKey: false;
|
|
216
228
|
isAutoincrement: false;
|
|
217
229
|
hasRuntimeDefault: false;
|
|
218
|
-
enumValues:
|
|
230
|
+
enumValues: [string, ...string[]];
|
|
231
|
+
baseColumn: never;
|
|
219
232
|
identity: undefined;
|
|
220
233
|
generated: undefined;
|
|
221
|
-
}>;
|
|
222
|
-
code: import("drizzle-orm/pg-core").
|
|
234
|
+
}, {}>;
|
|
235
|
+
code: import("drizzle-orm/pg-core").PgColumn<{
|
|
223
236
|
name: string;
|
|
224
237
|
tableName: "two_factor_tokens";
|
|
225
238
|
dataType: "string";
|
|
@@ -230,11 +243,12 @@ export declare const twoFactorSchema: {
|
|
|
230
243
|
isPrimaryKey: false;
|
|
231
244
|
isAutoincrement: false;
|
|
232
245
|
hasRuntimeDefault: false;
|
|
233
|
-
enumValues:
|
|
246
|
+
enumValues: [string, ...string[]];
|
|
247
|
+
baseColumn: never;
|
|
234
248
|
identity: undefined;
|
|
235
249
|
generated: undefined;
|
|
236
|
-
}>;
|
|
237
|
-
expiresAt: import("drizzle-orm/pg-core").
|
|
250
|
+
}, {}>;
|
|
251
|
+
expiresAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
238
252
|
name: string;
|
|
239
253
|
tableName: "two_factor_tokens";
|
|
240
254
|
dataType: "object date";
|
|
@@ -246,10 +260,11 @@ export declare const twoFactorSchema: {
|
|
|
246
260
|
isAutoincrement: false;
|
|
247
261
|
hasRuntimeDefault: false;
|
|
248
262
|
enumValues: undefined;
|
|
263
|
+
baseColumn: never;
|
|
249
264
|
identity: undefined;
|
|
250
265
|
generated: undefined;
|
|
251
|
-
}>;
|
|
252
|
-
createdAt: import("drizzle-orm/pg-core").
|
|
266
|
+
}, {}>;
|
|
267
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
253
268
|
name: string;
|
|
254
269
|
tableName: "two_factor_tokens";
|
|
255
270
|
dataType: "object date";
|
|
@@ -261,9 +276,10 @@ export declare const twoFactorSchema: {
|
|
|
261
276
|
isAutoincrement: false;
|
|
262
277
|
hasRuntimeDefault: false;
|
|
263
278
|
enumValues: undefined;
|
|
279
|
+
baseColumn: never;
|
|
264
280
|
identity: undefined;
|
|
265
281
|
generated: undefined;
|
|
266
|
-
}>;
|
|
282
|
+
}, {}>;
|
|
267
283
|
};
|
|
268
284
|
dialect: "pg";
|
|
269
285
|
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Logged in successfully": "Zalogowano się pomyślnie",
|
|
3
|
+
"Verification failed": "Weryfikacja nie powiodła się",
|
|
4
|
+
"An error occurred": "Wystąpił błąd",
|
|
5
|
+
"New code sent to your email": "Nowy kod wysłany na Twój e-mail",
|
|
6
|
+
"Failed to send code": "Nie udało się wysłać kodu",
|
|
7
|
+
"Two Factor Verification": "Weryfikacja dwuczynnikowa",
|
|
8
|
+
"Enter the 6-digit code sent to your email address to continue.": "Aby kontynuować, wpisz 6-cyfrowy kod wysłany na Twój adres e-mail.",
|
|
9
|
+
"Verify & Signin": "Zweryfikuj i zaloguj się",
|
|
10
|
+
"Didn't receive a code? Resend": "Nie otrzymałeś kodu? Wyślij ponownie",
|
|
11
|
+
"2FA enabled": "2FA włączone",
|
|
12
|
+
"2FA disabled": "2FA wyłączone",
|
|
13
|
+
"Action failed": "Akcja nie powiodła się",
|
|
14
|
+
"Two Factor Authentication": "Uwierzytelnianie dwuskładnikowe",
|
|
15
|
+
"Add an extra layer of security to your account by requiring a code sent to your email.": "Dodaj dodatkową warstwę zabezpieczeń do swojego konta, wymagając przesłania kodu na Twój adres e-mail.",
|
|
16
|
+
"Email Authentication": "Uwierzytelnianie e-mailem",
|
|
17
|
+
"Currently enabled": "Aktualnie włączone",
|
|
18
|
+
"Currently disabled": "Obecnie wyłączone"
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/two-factor-email",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Email-based two-factor authentication module for Kryo framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@hookform/resolvers": "^3.10.0",
|
|
29
|
-
"@arch-cadre/ui": "^0.0.
|
|
30
|
-
"@arch-cadre/modules": "^0.0.
|
|
29
|
+
"@arch-cadre/ui": "^0.0.17",
|
|
30
|
+
"@arch-cadre/modules": "^0.0.17",
|
|
31
31
|
"lucide-react": "^0.475.0",
|
|
32
32
|
"react-hook-form": "^7.54.2",
|
|
33
33
|
"sonner": "^2.0.7",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/pg": "^8.16.0",
|
|
38
|
-
"@arch-cadre/core": "^0.0.
|
|
38
|
+
"@arch-cadre/core": "^0.0.17",
|
|
39
39
|
"@types/react": "^19",
|
|
40
40
|
"next": "16.1.1",
|
|
41
41
|
"react": "^19.0.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"unbuild": "^3.6.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@arch-cadre/core": "^0.0.
|
|
47
|
-
"@arch-cadre/intl": "^0.0.
|
|
48
|
-
"@arch-cadre/ui": "^0.0.
|
|
46
|
+
"@arch-cadre/core": "^0.0.17",
|
|
47
|
+
"@arch-cadre/intl": "^0.0.17",
|
|
48
|
+
"@arch-cadre/ui": "^0.0.17",
|
|
49
49
|
"pg": "^8.16.3",
|
|
50
|
-
"drizzle-orm": "1.0.0-beta.
|
|
50
|
+
"drizzle-orm": "1.0.0-beta.6-4414a19",
|
|
51
51
|
"next": ">=13.0.0",
|
|
52
52
|
"react": "^19.0.0"
|
|
53
53
|
},
|