@frigear-nu/users 0.0.0-stage → 1.0.3

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.
Files changed (58) hide show
  1. package/README.md +179 -2
  2. package/dist/module.d.mts +72 -0
  3. package/dist/module.json +9 -0
  4. package/dist/module.mjs +207 -0
  5. package/dist/runtime/app/composables/useAuthManifest.d.ts +5 -0
  6. package/dist/runtime/app/composables/useAuthManifest.js +7 -0
  7. package/dist/runtime/app/composables/useUserLogin.d.ts +12 -0
  8. package/dist/runtime/app/composables/useUserLogin.js +26 -0
  9. package/dist/runtime/app/composables/useUserPasskeys.d.ts +7 -0
  10. package/dist/runtime/app/composables/useUserPasskeys.js +22 -0
  11. package/dist/runtime/app/composables/useUserPasswordReset.d.ts +13 -0
  12. package/dist/runtime/app/composables/useUserPasswordReset.js +32 -0
  13. package/dist/runtime/app/composables/useUserRegistration.d.ts +10 -0
  14. package/dist/runtime/app/composables/useUserRegistration.js +20 -0
  15. package/dist/runtime/app/pages/login.d.vue.ts +3 -0
  16. package/dist/runtime/app/pages/login.vue +68 -0
  17. package/dist/runtime/app/pages/login.vue.d.ts +3 -0
  18. package/dist/runtime/app/pages/register.d.vue.ts +3 -0
  19. package/dist/runtime/app/pages/register.vue +40 -0
  20. package/dist/runtime/app/pages/register.vue.d.ts +3 -0
  21. package/dist/runtime/app/utils/oauth-providers.d.ts +13 -0
  22. package/dist/runtime/app/utils/oauth-providers.js +4 -0
  23. package/dist/runtime/db/schema.sqlite.d.ts +339 -0
  24. package/dist/runtime/db/schema.sqlite.js +29 -0
  25. package/dist/runtime/i18n/lang/da.json +88 -0
  26. package/dist/runtime/i18n/lang/en.json +88 -0
  27. package/dist/runtime/menus.d.ts +2 -0
  28. package/dist/runtime/menus.js +12 -0
  29. package/dist/runtime/server/routes/auth/forgot-password.post.d.ts +2 -0
  30. package/dist/runtime/server/routes/auth/forgot-password.post.js +19 -0
  31. package/dist/runtime/server/routes/auth/github.get.d.ts +2 -0
  32. package/dist/runtime/server/routes/auth/github.get.js +7 -0
  33. package/dist/runtime/server/routes/auth/google.get.d.ts +2 -0
  34. package/dist/runtime/server/routes/auth/google.get.js +6 -0
  35. package/dist/runtime/server/routes/auth/login.post.d.ts +2 -0
  36. package/dist/runtime/server/routes/auth/login.post.js +15 -0
  37. package/dist/runtime/server/routes/auth/logout.get.d.ts +2 -0
  38. package/dist/runtime/server/routes/auth/logout.get.js +4 -0
  39. package/dist/runtime/server/routes/auth/register.post.d.ts +2 -0
  40. package/dist/runtime/server/routes/auth/register.post.js +18 -0
  41. package/dist/runtime/server/routes/auth/reset-password.post.d.ts +2 -0
  42. package/dist/runtime/server/routes/auth/reset-password.post.js +29 -0
  43. package/dist/runtime/server/routes/auth/webauthn/authenticate.post.d.ts +2 -0
  44. package/dist/runtime/server/routes/auth/webauthn/authenticate.post.js +34 -0
  45. package/dist/runtime/server/routes/auth/webauthn/credentials/[id].delete.d.ts +2 -0
  46. package/dist/runtime/server/routes/auth/webauthn/credentials/[id].delete.js +9 -0
  47. package/dist/runtime/server/routes/auth/webauthn/credentials/index.get.d.ts +2 -0
  48. package/dist/runtime/server/routes/auth/webauthn/credentials/index.get.js +8 -0
  49. package/dist/runtime/server/routes/auth/webauthn/register.post.d.ts +2 -0
  50. package/dist/runtime/server/routes/auth/webauthn/register.post.js +42 -0
  51. package/dist/runtime/server/utils/oauth.d.ts +8 -0
  52. package/dist/runtime/server/utils/oauth.js +18 -0
  53. package/dist/runtime/server/utils/password-reset.d.ts +22 -0
  54. package/dist/runtime/server/utils/password-reset.js +14 -0
  55. package/dist/runtime/server/utils/session.d.ts +11 -0
  56. package/dist/runtime/server/utils/session.js +5 -0
  57. package/dist/types.d.mts +3 -0
  58. package/package.json +86 -3
@@ -0,0 +1,68 @@
1
+ <script setup>
2
+ defineOptions({ name: "UsersLoginPage" });
3
+ const t = useModuleT("auth");
4
+ const { login, pending, error, passwordLoginEnabled, passkeyLoginEnabled, oauthProviders } = useUserLogin();
5
+ const passkeys = passkeyLoginEnabled.value ? useUserPasskeys() : void 0;
6
+ const passkeyPending = ref(false);
7
+ const redirectTarget = computed(() => {
8
+ const target = useRoute().query.redirect;
9
+ return typeof target === "string" && target.startsWith("/") && !target.startsWith("//") ? target : "/";
10
+ });
11
+ const afterLogin = () => navigateTo(redirectTarget.value, { external: redirectTarget.value !== "/" });
12
+ const fields = computed(() => passwordLoginEnabled.value ? [
13
+ { name: "email", type: "text", label: t("email.label", "Email"), required: true },
14
+ { name: "password", type: "password", label: t("password.label", "Password"), required: true }
15
+ ] : []);
16
+ async function onSubmit(payload) {
17
+ await login(payload.data);
18
+ await afterLogin();
19
+ }
20
+ async function onPasskeyLogin() {
21
+ error.value = null;
22
+ passkeyPending.value = true;
23
+ try {
24
+ await passkeys?.authenticateWithPasskey();
25
+ await afterLogin();
26
+ } catch (err) {
27
+ error.value = err instanceof Error ? err.message : "Failed to log in.";
28
+ } finally {
29
+ passkeyPending.value = false;
30
+ }
31
+ }
32
+ </script>
33
+
34
+ <template>
35
+ <UContainer>
36
+ <UPage>
37
+ <UPageBody>
38
+ <UAuthForm
39
+ :title="t('signIn', 'Log in')"
40
+ :fields="fields"
41
+ :providers="oauthProviders"
42
+ :loading="pending"
43
+ :submit="{ label: t('signIn', 'Log in') }"
44
+ @submit="onSubmit"
45
+ >
46
+ <template
47
+ v-if="error"
48
+ #validation
49
+ >
50
+ <UAlert
51
+ color="error"
52
+ :title="error"
53
+ />
54
+ </template>
55
+ </UAuthForm>
56
+ <UButton
57
+ v-if="passkeyLoginEnabled"
58
+ class="mt-4 w-full"
59
+ :loading="passkeyPending"
60
+ :disabled="pending"
61
+ @click="onPasskeyLogin"
62
+ >
63
+ {{ t("passkey.login", "Log in with a passkey") }}
64
+ </UButton>
65
+ </UPageBody>
66
+ </UPage>
67
+ </UContainer>
68
+ </template>
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ defineOptions({ name: "UsersRegisterPage" });
3
+ const t = useModuleT("auth");
4
+ const { register, pending, error } = useUserRegistration();
5
+ const fields = computed(() => [
6
+ { name: "name", type: "text", label: t("name.label", "Name"), required: true },
7
+ { name: "email", type: "text", label: t("email.label", "Email"), required: true },
8
+ { name: "password", type: "password", label: t("password.label", "Password"), required: true }
9
+ ]);
10
+ async function onSubmit(payload) {
11
+ await register(payload.data);
12
+ await navigateTo("/");
13
+ }
14
+ </script>
15
+
16
+ <template>
17
+ <UContainer>
18
+ <UPage>
19
+ <UPageBody>
20
+ <UAuthForm
21
+ :title="t('signUp', 'Register')"
22
+ :fields="fields"
23
+ :loading="pending"
24
+ :submit="{ label: t('signUp', 'Register') }"
25
+ @submit="onSubmit"
26
+ >
27
+ <template
28
+ v-if="error"
29
+ #validation
30
+ >
31
+ <UAlert
32
+ color="error"
33
+ :title="error"
34
+ />
35
+ </template>
36
+ </UAuthForm>
37
+ </UPageBody>
38
+ </UPage>
39
+ </UContainer>
40
+ </template>
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,13 @@
1
+ export declare const OAUTH_PROVIDER_META: {
2
+ readonly github: {
3
+ readonly label: "GitHub";
4
+ readonly icon: "i-simple-icons-github";
5
+ readonly to: "/api/auth/github";
6
+ };
7
+ readonly google: {
8
+ readonly label: "Google";
9
+ readonly icon: "i-simple-icons-google";
10
+ readonly to: "/api/auth/google";
11
+ };
12
+ };
13
+ export type OAuthProviderKey = keyof typeof OAUTH_PROVIDER_META;
@@ -0,0 +1,4 @@
1
+ export const OAUTH_PROVIDER_META = {
2
+ github: { label: "GitHub", icon: "i-simple-icons-github", to: "/api/auth/github" },
3
+ google: { label: "Google", icon: "i-simple-icons-google", to: "/api/auth/google" }
4
+ };
@@ -0,0 +1,339 @@
1
+ export declare const users: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "users";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: "id";
7
+ tableName: "users";
8
+ dataType: "number";
9
+ columnType: "SQLiteInteger";
10
+ data: number;
11
+ driverParam: number;
12
+ notNull: true;
13
+ hasDefault: true;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: false;
17
+ enumValues: undefined;
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {}>;
22
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
23
+ name: "name";
24
+ tableName: "users";
25
+ dataType: "string";
26
+ columnType: "SQLiteText";
27
+ data: string;
28
+ driverParam: string;
29
+ notNull: true;
30
+ hasDefault: false;
31
+ isPrimaryKey: false;
32
+ isAutoincrement: false;
33
+ hasRuntimeDefault: false;
34
+ enumValues: [string, ...string[]];
35
+ baseColumn: never;
36
+ identity: undefined;
37
+ generated: undefined;
38
+ }, {}, {
39
+ length: undefined;
40
+ }>;
41
+ email: import("drizzle-orm/sqlite-core").SQLiteColumn<{
42
+ name: "email";
43
+ tableName: "users";
44
+ dataType: "string";
45
+ columnType: "SQLiteText";
46
+ data: string;
47
+ driverParam: string;
48
+ notNull: true;
49
+ hasDefault: false;
50
+ isPrimaryKey: false;
51
+ isAutoincrement: false;
52
+ hasRuntimeDefault: false;
53
+ enumValues: [string, ...string[]];
54
+ baseColumn: never;
55
+ identity: undefined;
56
+ generated: undefined;
57
+ }, {}, {
58
+ length: undefined;
59
+ }>;
60
+ password: import("drizzle-orm/sqlite-core").SQLiteColumn<{
61
+ name: "password";
62
+ tableName: "users";
63
+ dataType: "string";
64
+ columnType: "SQLiteText";
65
+ data: string;
66
+ driverParam: string;
67
+ notNull: false;
68
+ hasDefault: false;
69
+ isPrimaryKey: false;
70
+ isAutoincrement: false;
71
+ hasRuntimeDefault: false;
72
+ enumValues: [string, ...string[]];
73
+ baseColumn: never;
74
+ identity: undefined;
75
+ generated: undefined;
76
+ }, {}, {
77
+ length: undefined;
78
+ }>;
79
+ avatar: import("drizzle-orm/sqlite-core").SQLiteColumn<{
80
+ name: "avatar";
81
+ tableName: "users";
82
+ dataType: "string";
83
+ columnType: "SQLiteText";
84
+ data: string;
85
+ driverParam: string;
86
+ notNull: false;
87
+ hasDefault: false;
88
+ isPrimaryKey: false;
89
+ isAutoincrement: false;
90
+ hasRuntimeDefault: false;
91
+ enumValues: [string, ...string[]];
92
+ baseColumn: never;
93
+ identity: undefined;
94
+ generated: undefined;
95
+ }, {}, {
96
+ length: undefined;
97
+ }>;
98
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
99
+ name: "createdAt";
100
+ tableName: "users";
101
+ dataType: "date";
102
+ columnType: "SQLiteTimestamp";
103
+ data: Date;
104
+ driverParam: number;
105
+ notNull: true;
106
+ hasDefault: true;
107
+ isPrimaryKey: false;
108
+ isAutoincrement: false;
109
+ hasRuntimeDefault: true;
110
+ enumValues: undefined;
111
+ baseColumn: never;
112
+ identity: undefined;
113
+ generated: undefined;
114
+ }, {}, {}>;
115
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
116
+ name: "updatedAt";
117
+ tableName: "users";
118
+ dataType: "date";
119
+ columnType: "SQLiteTimestamp";
120
+ data: Date;
121
+ driverParam: number;
122
+ notNull: true;
123
+ hasDefault: true;
124
+ isPrimaryKey: false;
125
+ isAutoincrement: false;
126
+ hasRuntimeDefault: false;
127
+ enumValues: undefined;
128
+ baseColumn: never;
129
+ identity: undefined;
130
+ generated: undefined;
131
+ }, {}, {}>;
132
+ };
133
+ dialect: "sqlite";
134
+ }>;
135
+ export declare const userPasskeys: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
136
+ name: "user_passkeys";
137
+ schema: undefined;
138
+ columns: {
139
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
140
+ name: "id";
141
+ tableName: "user_passkeys";
142
+ dataType: "number";
143
+ columnType: "SQLiteInteger";
144
+ data: number;
145
+ driverParam: number;
146
+ notNull: true;
147
+ hasDefault: true;
148
+ isPrimaryKey: true;
149
+ isAutoincrement: false;
150
+ hasRuntimeDefault: false;
151
+ enumValues: undefined;
152
+ baseColumn: never;
153
+ identity: undefined;
154
+ generated: undefined;
155
+ }, {}, {}>;
156
+ userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
157
+ name: "userId";
158
+ tableName: "user_passkeys";
159
+ dataType: "number";
160
+ columnType: "SQLiteInteger";
161
+ data: number;
162
+ driverParam: number;
163
+ notNull: true;
164
+ hasDefault: false;
165
+ isPrimaryKey: false;
166
+ isAutoincrement: false;
167
+ hasRuntimeDefault: false;
168
+ enumValues: undefined;
169
+ baseColumn: never;
170
+ identity: undefined;
171
+ generated: undefined;
172
+ }, {}, {}>;
173
+ credential: import("drizzle-orm/sqlite-core").SQLiteColumn<{
174
+ name: "credential";
175
+ tableName: "user_passkeys";
176
+ dataType: "json";
177
+ columnType: "SQLiteTextJson";
178
+ data: Record<string, unknown>;
179
+ driverParam: string;
180
+ notNull: true;
181
+ hasDefault: false;
182
+ isPrimaryKey: false;
183
+ isAutoincrement: false;
184
+ hasRuntimeDefault: false;
185
+ enumValues: undefined;
186
+ baseColumn: never;
187
+ identity: undefined;
188
+ generated: undefined;
189
+ }, {}, {
190
+ $type: Record<string, unknown>;
191
+ }>;
192
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
193
+ name: "createdAt";
194
+ tableName: "user_passkeys";
195
+ dataType: "date";
196
+ columnType: "SQLiteTimestamp";
197
+ data: Date;
198
+ driverParam: number;
199
+ notNull: true;
200
+ hasDefault: true;
201
+ isPrimaryKey: false;
202
+ isAutoincrement: false;
203
+ hasRuntimeDefault: true;
204
+ enumValues: undefined;
205
+ baseColumn: never;
206
+ identity: undefined;
207
+ generated: undefined;
208
+ }, {}, {}>;
209
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
210
+ name: "updatedAt";
211
+ tableName: "user_passkeys";
212
+ dataType: "date";
213
+ columnType: "SQLiteTimestamp";
214
+ data: Date;
215
+ driverParam: number;
216
+ notNull: true;
217
+ hasDefault: true;
218
+ isPrimaryKey: false;
219
+ isAutoincrement: false;
220
+ hasRuntimeDefault: false;
221
+ enumValues: undefined;
222
+ baseColumn: never;
223
+ identity: undefined;
224
+ generated: undefined;
225
+ }, {}, {}>;
226
+ };
227
+ dialect: "sqlite";
228
+ }>;
229
+ export declare const passwordResets: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
230
+ name: "password_resets";
231
+ schema: undefined;
232
+ columns: {
233
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
234
+ name: "id";
235
+ tableName: "password_resets";
236
+ dataType: "number";
237
+ columnType: "SQLiteInteger";
238
+ data: number;
239
+ driverParam: number;
240
+ notNull: true;
241
+ hasDefault: true;
242
+ isPrimaryKey: true;
243
+ isAutoincrement: false;
244
+ hasRuntimeDefault: false;
245
+ enumValues: undefined;
246
+ baseColumn: never;
247
+ identity: undefined;
248
+ generated: undefined;
249
+ }, {}, {}>;
250
+ userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
251
+ name: "userId";
252
+ tableName: "password_resets";
253
+ dataType: "number";
254
+ columnType: "SQLiteInteger";
255
+ data: number;
256
+ driverParam: number;
257
+ notNull: true;
258
+ hasDefault: false;
259
+ isPrimaryKey: false;
260
+ isAutoincrement: false;
261
+ hasRuntimeDefault: false;
262
+ enumValues: undefined;
263
+ baseColumn: never;
264
+ identity: undefined;
265
+ generated: undefined;
266
+ }, {}, {}>;
267
+ code: import("drizzle-orm/sqlite-core").SQLiteColumn<{
268
+ name: "code";
269
+ tableName: "password_resets";
270
+ dataType: "string";
271
+ columnType: "SQLiteText";
272
+ data: string;
273
+ driverParam: string;
274
+ notNull: true;
275
+ hasDefault: false;
276
+ isPrimaryKey: false;
277
+ isAutoincrement: false;
278
+ hasRuntimeDefault: false;
279
+ enumValues: [string, ...string[]];
280
+ baseColumn: never;
281
+ identity: undefined;
282
+ generated: undefined;
283
+ }, {}, {
284
+ length: undefined;
285
+ }>;
286
+ expiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
287
+ name: "expiresAt";
288
+ tableName: "password_resets";
289
+ dataType: "date";
290
+ columnType: "SQLiteTimestamp";
291
+ data: Date;
292
+ driverParam: number;
293
+ notNull: true;
294
+ hasDefault: false;
295
+ isPrimaryKey: false;
296
+ isAutoincrement: false;
297
+ hasRuntimeDefault: false;
298
+ enumValues: undefined;
299
+ baseColumn: never;
300
+ identity: undefined;
301
+ generated: undefined;
302
+ }, {}, {}>;
303
+ usedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
304
+ name: "usedAt";
305
+ tableName: "password_resets";
306
+ dataType: "date";
307
+ columnType: "SQLiteTimestamp";
308
+ data: Date;
309
+ driverParam: number;
310
+ notNull: false;
311
+ hasDefault: false;
312
+ isPrimaryKey: false;
313
+ isAutoincrement: false;
314
+ hasRuntimeDefault: false;
315
+ enumValues: undefined;
316
+ baseColumn: never;
317
+ identity: undefined;
318
+ generated: undefined;
319
+ }, {}, {}>;
320
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
321
+ name: "createdAt";
322
+ tableName: "password_resets";
323
+ dataType: "date";
324
+ columnType: "SQLiteTimestamp";
325
+ data: Date;
326
+ driverParam: number;
327
+ notNull: true;
328
+ hasDefault: true;
329
+ isPrimaryKey: false;
330
+ isAutoincrement: false;
331
+ hasRuntimeDefault: true;
332
+ enumValues: undefined;
333
+ baseColumn: never;
334
+ identity: undefined;
335
+ generated: undefined;
336
+ }, {}, {}>;
337
+ };
338
+ dialect: "sqlite";
339
+ }>;
@@ -0,0 +1,29 @@
1
+ import { sqliteTable, text, integer, index } from "drizzle-orm/sqlite-core";
2
+ export const users = sqliteTable("users", {
3
+ id: integer().primaryKey({ autoIncrement: true }),
4
+ name: text().notNull(),
5
+ email: text().notNull().unique(),
6
+ password: text(),
7
+ avatar: text(),
8
+ createdAt: integer({ mode: "timestamp" }).notNull().$defaultFn(() => /* @__PURE__ */ new Date()),
9
+ updatedAt: integer({ mode: "timestamp" }).notNull().$onUpdateFn(() => /* @__PURE__ */ new Date())
10
+ });
11
+ export const userPasskeys = sqliteTable("user_passkeys", {
12
+ id: integer().primaryKey({ autoIncrement: true }),
13
+ userId: integer().notNull().references(() => users.id, { onDelete: "cascade" }),
14
+ credential: text({ mode: "json" }).$type().notNull(),
15
+ createdAt: integer({ mode: "timestamp" }).notNull().$defaultFn(() => /* @__PURE__ */ new Date()),
16
+ updatedAt: integer({ mode: "timestamp" }).notNull().$onUpdateFn(() => /* @__PURE__ */ new Date())
17
+ }, (t) => [
18
+ index("user_passkey_user_idx").on(t.userId)
19
+ ]);
20
+ export const passwordResets = sqliteTable("password_resets", {
21
+ id: integer().primaryKey({ autoIncrement: true }),
22
+ userId: integer().notNull().references(() => users.id, { onDelete: "cascade" }),
23
+ code: text().notNull().unique(),
24
+ expiresAt: integer({ mode: "timestamp" }).notNull(),
25
+ usedAt: integer({ mode: "timestamp" }),
26
+ createdAt: integer({ mode: "timestamp" }).notNull().$defaultFn(() => /* @__PURE__ */ new Date())
27
+ }, (t) => [
28
+ index("password_reset_user_idx").on(t.userId)
29
+ ]);
@@ -0,0 +1,88 @@
1
+ {
2
+ "auth": {
3
+ "signIn": "Log ind",
4
+ "signUp": "Opret konto",
5
+ "signOut": "Log ud",
6
+ "signedInAs": "Logget ind som",
7
+ "dontHaveAnAccount": "Har du ik' en Frigear konto endnu? ➜",
8
+ "alreadyHaveAnAccount": "Har du allerede en Frigear konto? ➜",
9
+ "name": {
10
+ "label": "Navn",
11
+ "placeholder": "Navn Navnesen"
12
+ },
13
+ "email": {
14
+ "label": "E-mail",
15
+ "placeholder": "frivillig-helt{'@'}domain.lol",
16
+ "sent": {
17
+ "title": "E-mail sendt!",
18
+ "description": "Vi har sendt dig en e-mail. Tjek lige din inbox eller spam.",
19
+ "note": "Du ka' bare lukke det her vindue, og se mailen."
20
+ }
21
+ },
22
+ "password": {
23
+ "label": "Dit mega svære password",
24
+ "placeholder": "********"
25
+ },
26
+ "forgotPassword": {
27
+ "title": "Glemt password?",
28
+ "submit": "Gendan password"
29
+ },
30
+ "resetPassword": {
31
+ "title": "Nulstil password",
32
+ "new": {
33
+ "label": "Nyt password"
34
+ },
35
+ "confirm": {
36
+ "label": "Bekræft nyt password"
37
+ },
38
+ "current": {
39
+ "label": "Nuværende password"
40
+ }
41
+ },
42
+ "magicLink": {
43
+ "title": "Magic Link",
44
+ "submit": "Send mig et magisk link",
45
+ "modal": {
46
+ "in": {
47
+ "title": "Log ind med Magic Link",
48
+ "description": "Du kan skrive din e-mail, så fyrer vi dig et magisk link til at logge ind."
49
+ },
50
+ "up": {
51
+ "title": "Opret konto med Magic Link",
52
+ "description": "Din konto vil ik' ha' noget password, men du kan trygt logge ind fra din e-mail."
53
+ }
54
+ }
55
+ },
56
+ "verifyEmail": {
57
+ "title": "Verificer din e-mail",
58
+ "description": "Vi har sendt dig en e-mail. Tjek din inbox eller spam."
59
+ },
60
+ "confirm": {
61
+ "title": "Checker..."
62
+ },
63
+ "passkey": {
64
+ "login": "Log ind med en passkey"
65
+ },
66
+ "emailPassword": {
67
+ "label": "E-mail & password"
68
+ },
69
+ "passkeys": {
70
+ "label": "Passkey"
71
+ },
72
+ "oauth": {
73
+ "google": {
74
+ "label": "Google"
75
+ }
76
+ },
77
+ "errors": {
78
+ "signIn": {
79
+ "noPassword": "Du har ik' oprettet en adgangskode. Nulstil din adgangskode, eller log ind med et magic link.",
80
+ "failed": "Login mislykkedes. Er du sikker på, at du har en konto, eller at dette er den korrekte adgangskode?"
81
+ },
82
+ "signUp": {
83
+ "failed": "Kunne ik' opprette konto, ka' det være en eksisterende konto med denne e-mail?"
84
+ },
85
+ "label": "Fejl"
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "auth": {
3
+ "signIn": "Sign In",
4
+ "signUp": "Sign Up",
5
+ "signOut": "Sign Out",
6
+ "signedInAs": "Signed in as",
7
+ "dontHaveAnAccount": "Don't have a Frigear account yet? ➜",
8
+ "alreadyHaveAnAccount": "Already got a Frigear account? ➜",
9
+ "name": {
10
+ "label": "Name",
11
+ "placeholder": "John Doe"
12
+ },
13
+ "email": {
14
+ "label": "E-mail",
15
+ "placeholder": "volunteerHero{'@'}someDomain.lol",
16
+ "sent": {
17
+ "title": "E-mail sent!",
18
+ "description": "We have sent you an e-mail. Check your inbox or spam.",
19
+ "note": "You may close this window."
20
+ }
21
+ },
22
+ "password": {
23
+ "label": "Password",
24
+ "placeholder": "********"
25
+ },
26
+ "forgotPassword": {
27
+ "title": "Forgot password?",
28
+ "submit": "Set password"
29
+ },
30
+ "resetPassword": {
31
+ "title": "Reset password",
32
+ "new": {
33
+ "label": "New password"
34
+ },
35
+ "confirm": {
36
+ "label": "Confirm new password"
37
+ },
38
+ "current": {
39
+ "label": "Current password"
40
+ }
41
+ },
42
+ "magicLink": {
43
+ "title": "Magic Link",
44
+ "submit": "Send link",
45
+ "modal": {
46
+ "in": {
47
+ "title": "Sign In with Magic Link",
48
+ "description": "You can sign in with your e-mail, we'll send you a link."
49
+ },
50
+ "up": {
51
+ "title": "Sign up with Magic Link",
52
+ "description": "Your account will have no password, you can sign in with your e-mail."
53
+ }
54
+ }
55
+ },
56
+ "verifyEmail": {
57
+ "title": "Verify your e-mail",
58
+ "description": "We have sent you an e-mail. Check your inbox or spam."
59
+ },
60
+ "confirm": {
61
+ "title": "Checking..."
62
+ },
63
+ "passkey": {
64
+ "login": "Sign in with a passkey"
65
+ },
66
+ "emailPassword": {
67
+ "label": "Email & Password"
68
+ },
69
+ "passkeys": {
70
+ "label": "Passkey"
71
+ },
72
+ "oauth": {
73
+ "google": {
74
+ "label": "Google"
75
+ }
76
+ },
77
+ "errors": {
78
+ "signIn": {
79
+ "noPassword": "You have not set a password, please reset your password or sign in with magic link.",
80
+ "failed": "Sign in failed, are you sure you have an account or this is the correct password?"
81
+ },
82
+ "signUp": {
83
+ "failed": "Sign up failed, are you sure you don't have an account with this e-mail?"
84
+ },
85
+ "label": "Error"
86
+ }
87
+ }
88
+ }