wcz-test 6.5.2 → 6.5.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.
- package/dist/client-utils.d.ts +33 -32
- package/dist/hooks.d.ts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/server-utils.d.ts +35 -1
- package/dist/server-utils.js +88 -4
- package/dist/server-utils.js.map +1 -1
- package/dist/{utils-DLRiZ02r.d.ts → utils-ChipkRJ9.d.ts} +2 -0
- package/dist/utils.d.ts +1 -37
- package/dist/utils.js +1 -83
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-O7U2PUIW.js +0 -16
- package/dist/chunk-O7U2PUIW.js.map +0 -1
package/dist/client-utils.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { P as Platform } from './utils-
|
|
1
|
+
export { P as Platform } from './utils-ChipkRJ9.js';
|
|
2
2
|
export { default as i18n, t } from 'i18next';
|
|
3
3
|
export { initReactI18next, useTranslation } from 'react-i18next';
|
|
4
4
|
export { default as LanguageDetector } from 'i18next-browser-languagedetector';
|
|
5
5
|
import * as nanostores from 'nanostores';
|
|
6
|
-
import * as
|
|
7
|
-
import * as node_modules_better_auth_dist_shared_better_auth_DNnBkMGu from 'node_modules/better-auth/dist/shared/better-auth.DNnBkMGu';
|
|
6
|
+
import * as better_auth from 'better-auth';
|
|
8
7
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
9
8
|
import 'axios';
|
|
9
|
+
import 'uuidv7';
|
|
10
|
+
import '@t3-oss/env-core';
|
|
10
11
|
|
|
11
12
|
declare const WISTRON_PRIMARY_COLOR = "#00506E";
|
|
12
13
|
declare const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
@@ -82,7 +83,7 @@ declare const authClient: {
|
|
|
82
83
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
83
84
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
84
85
|
disableValidation?: boolean | undefined;
|
|
85
|
-
}>(data_0:
|
|
86
|
+
}>(data_0: better_auth.Prettify<{
|
|
86
87
|
provider: unknown;
|
|
87
88
|
callbackURL?: string | undefined;
|
|
88
89
|
newUserCallbackURL?: string | undefined;
|
|
@@ -175,7 +176,7 @@ declare const authClient: {
|
|
|
175
176
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
176
177
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
177
178
|
disableValidation?: boolean | undefined;
|
|
178
|
-
}>(data_0?:
|
|
179
|
+
}>(data_0?: better_auth.Prettify<{
|
|
179
180
|
query?: Record<string, any> | undefined;
|
|
180
181
|
fetchOptions?: FetchOptions | undefined;
|
|
181
182
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -246,7 +247,7 @@ declare const authClient: {
|
|
|
246
247
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
247
248
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
248
249
|
disableValidation?: boolean | undefined;
|
|
249
|
-
}>(data_0:
|
|
250
|
+
}>(data_0: better_auth.Prettify<{
|
|
250
251
|
email: string;
|
|
251
252
|
name: string;
|
|
252
253
|
password: string;
|
|
@@ -340,7 +341,7 @@ declare const authClient: {
|
|
|
340
341
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
341
342
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
342
343
|
disableValidation?: boolean | undefined;
|
|
343
|
-
}>(data_0:
|
|
344
|
+
}>(data_0: better_auth.Prettify<{
|
|
344
345
|
email: string;
|
|
345
346
|
password: string;
|
|
346
347
|
callbackURL?: string | undefined;
|
|
@@ -422,7 +423,7 @@ declare const authClient: {
|
|
|
422
423
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
423
424
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
424
425
|
disableValidation?: boolean | undefined;
|
|
425
|
-
}>(data_0:
|
|
426
|
+
}>(data_0: better_auth.Prettify<{
|
|
426
427
|
email: string;
|
|
427
428
|
redirectTo?: string | undefined;
|
|
428
429
|
} & {
|
|
@@ -492,7 +493,7 @@ declare const authClient: {
|
|
|
492
493
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
493
494
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
494
495
|
disableValidation?: boolean | undefined;
|
|
495
|
-
}>(data_0:
|
|
496
|
+
}>(data_0: better_auth.Prettify<{
|
|
496
497
|
newPassword: string;
|
|
497
498
|
token?: string | undefined;
|
|
498
499
|
} & {
|
|
@@ -560,7 +561,7 @@ declare const authClient: {
|
|
|
560
561
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
561
562
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
562
563
|
disableValidation?: boolean | undefined;
|
|
563
|
-
}>(data_0:
|
|
564
|
+
}>(data_0: better_auth.Prettify<{
|
|
564
565
|
query: {
|
|
565
566
|
token: string;
|
|
566
567
|
callbackURL?: string | undefined;
|
|
@@ -641,7 +642,7 @@ declare const authClient: {
|
|
|
641
642
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
642
643
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
643
644
|
disableValidation?: boolean | undefined;
|
|
644
|
-
}>(data_0:
|
|
645
|
+
}>(data_0: better_auth.Prettify<{
|
|
645
646
|
email: string;
|
|
646
647
|
callbackURL?: string | undefined;
|
|
647
648
|
} & {
|
|
@@ -709,7 +710,7 @@ declare const authClient: {
|
|
|
709
710
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
710
711
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
711
712
|
disableValidation?: boolean | undefined;
|
|
712
|
-
}>(data_0:
|
|
713
|
+
}>(data_0: better_auth.Prettify<{
|
|
713
714
|
newEmail: string;
|
|
714
715
|
callbackURL?: string | undefined;
|
|
715
716
|
} & {
|
|
@@ -778,7 +779,7 @@ declare const authClient: {
|
|
|
778
779
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
779
780
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
780
781
|
disableValidation?: boolean | undefined;
|
|
781
|
-
}>(data_0:
|
|
782
|
+
}>(data_0: better_auth.Prettify<{
|
|
782
783
|
newPassword: string;
|
|
783
784
|
currentPassword: string;
|
|
784
785
|
revokeOtherSessions?: boolean | undefined;
|
|
@@ -856,7 +857,7 @@ declare const authClient: {
|
|
|
856
857
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
857
858
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
858
859
|
disableValidation?: boolean | undefined;
|
|
859
|
-
}>(data_0?:
|
|
860
|
+
}>(data_0?: better_auth.Prettify<{
|
|
860
861
|
image?: string | null;
|
|
861
862
|
name?: string;
|
|
862
863
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -924,7 +925,7 @@ declare const authClient: {
|
|
|
924
925
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
925
926
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
926
927
|
disableValidation?: boolean | undefined;
|
|
927
|
-
}>(data_0?:
|
|
928
|
+
}>(data_0?: better_auth.Prettify<{
|
|
928
929
|
callbackURL?: string | undefined;
|
|
929
930
|
password?: string | undefined;
|
|
930
931
|
token?: string | undefined;
|
|
@@ -996,7 +997,7 @@ declare const authClient: {
|
|
|
996
997
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
997
998
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
998
999
|
disableValidation?: boolean | undefined;
|
|
999
|
-
}>(data_0:
|
|
1000
|
+
}>(data_0: better_auth.Prettify<{
|
|
1000
1001
|
query: {
|
|
1001
1002
|
callbackURL: string;
|
|
1002
1003
|
};
|
|
@@ -1063,7 +1064,7 @@ declare const authClient: {
|
|
|
1063
1064
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1064
1065
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1065
1066
|
disableValidation?: boolean | undefined;
|
|
1066
|
-
}>(data_0:
|
|
1067
|
+
}>(data_0: better_auth.Prettify<{
|
|
1067
1068
|
email: string;
|
|
1068
1069
|
redirectTo?: string | undefined;
|
|
1069
1070
|
} & {
|
|
@@ -1134,7 +1135,7 @@ declare const authClient: {
|
|
|
1134
1135
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1135
1136
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1136
1137
|
disableValidation?: boolean | undefined;
|
|
1137
|
-
}>(data_0:
|
|
1138
|
+
}>(data_0: better_auth.Prettify<{
|
|
1138
1139
|
query: {
|
|
1139
1140
|
callbackURL: string;
|
|
1140
1141
|
};
|
|
@@ -1198,10 +1199,10 @@ declare const authClient: {
|
|
|
1198
1199
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1199
1200
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1200
1201
|
disableValidation?: boolean | undefined;
|
|
1201
|
-
}>(data_0?:
|
|
1202
|
+
}>(data_0?: better_auth.Prettify<{
|
|
1202
1203
|
query?: Record<string, any> | undefined;
|
|
1203
1204
|
fetchOptions?: FetchOptions | undefined;
|
|
1204
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<
|
|
1205
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth.Prettify<{
|
|
1205
1206
|
id: string;
|
|
1206
1207
|
createdAt: Date;
|
|
1207
1208
|
updatedAt: Date;
|
|
@@ -1270,7 +1271,7 @@ declare const authClient: {
|
|
|
1270
1271
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1271
1272
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1272
1273
|
disableValidation?: boolean | undefined;
|
|
1273
|
-
}>(data_0:
|
|
1274
|
+
}>(data_0: better_auth.Prettify<{
|
|
1274
1275
|
token: string;
|
|
1275
1276
|
} & {
|
|
1276
1277
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -1334,7 +1335,7 @@ declare const authClient: {
|
|
|
1334
1335
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1335
1336
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1336
1337
|
disableValidation?: boolean | undefined;
|
|
1337
|
-
}>(data_0?:
|
|
1338
|
+
}>(data_0?: better_auth.Prettify<{
|
|
1338
1339
|
query?: Record<string, any> | undefined;
|
|
1339
1340
|
fetchOptions?: FetchOptions | undefined;
|
|
1340
1341
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -1397,7 +1398,7 @@ declare const authClient: {
|
|
|
1397
1398
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1398
1399
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1399
1400
|
disableValidation?: boolean | undefined;
|
|
1400
|
-
}>(data_0?:
|
|
1401
|
+
}>(data_0?: better_auth.Prettify<{
|
|
1401
1402
|
query?: Record<string, any> | undefined;
|
|
1402
1403
|
fetchOptions?: FetchOptions | undefined;
|
|
1403
1404
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -1474,7 +1475,7 @@ declare const authClient: {
|
|
|
1474
1475
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1475
1476
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1476
1477
|
disableValidation?: boolean | undefined;
|
|
1477
|
-
}>(data_0:
|
|
1478
|
+
}>(data_0: better_auth.Prettify<{
|
|
1478
1479
|
provider: unknown;
|
|
1479
1480
|
callbackURL?: string | undefined;
|
|
1480
1481
|
idToken?: {
|
|
@@ -1551,7 +1552,7 @@ declare const authClient: {
|
|
|
1551
1552
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1552
1553
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1553
1554
|
disableValidation?: boolean | undefined;
|
|
1554
|
-
}>(data_0?:
|
|
1555
|
+
}>(data_0?: better_auth.Prettify<{
|
|
1555
1556
|
query?: Record<string, any> | undefined;
|
|
1556
1557
|
fetchOptions?: FetchOptions | undefined;
|
|
1557
1558
|
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
|
|
@@ -1623,7 +1624,7 @@ declare const authClient: {
|
|
|
1623
1624
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1624
1625
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1625
1626
|
disableValidation?: boolean | undefined;
|
|
1626
|
-
}>(data_0:
|
|
1627
|
+
}>(data_0: better_auth.Prettify<{
|
|
1627
1628
|
query: {
|
|
1628
1629
|
token: string;
|
|
1629
1630
|
callbackURL?: string | undefined;
|
|
@@ -1694,7 +1695,7 @@ declare const authClient: {
|
|
|
1694
1695
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1695
1696
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1696
1697
|
disableValidation?: boolean | undefined;
|
|
1697
|
-
}>(data_0:
|
|
1698
|
+
}>(data_0: better_auth.Prettify<{
|
|
1698
1699
|
providerId: string;
|
|
1699
1700
|
accountId?: string | undefined;
|
|
1700
1701
|
} & {
|
|
@@ -1763,7 +1764,7 @@ declare const authClient: {
|
|
|
1763
1764
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1764
1765
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1765
1766
|
disableValidation?: boolean | undefined;
|
|
1766
|
-
}>(data_0:
|
|
1767
|
+
}>(data_0: better_auth.Prettify<{
|
|
1767
1768
|
providerId: string;
|
|
1768
1769
|
accountId?: string | undefined;
|
|
1769
1770
|
userId?: string | undefined;
|
|
@@ -1831,7 +1832,7 @@ declare const authClient: {
|
|
|
1831
1832
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1832
1833
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1833
1834
|
disableValidation?: boolean | undefined;
|
|
1834
|
-
}>(data_0:
|
|
1835
|
+
}>(data_0: better_auth.Prettify<{
|
|
1835
1836
|
providerId: string;
|
|
1836
1837
|
accountId?: string | undefined;
|
|
1837
1838
|
userId?: string | undefined;
|
|
@@ -1902,7 +1903,7 @@ declare const authClient: {
|
|
|
1902
1903
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1903
1904
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1904
1905
|
disableValidation?: boolean | undefined;
|
|
1905
|
-
}>(data_0:
|
|
1906
|
+
}>(data_0: better_auth.Prettify<{
|
|
1906
1907
|
accountId: string;
|
|
1907
1908
|
} & {
|
|
1908
1909
|
fetchOptions?: FetchOptions | undefined;
|
|
@@ -1970,7 +1971,7 @@ declare const authClient: {
|
|
|
1970
1971
|
output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
1971
1972
|
errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
|
|
1972
1973
|
disableValidation?: boolean | undefined;
|
|
1973
|
-
}>(data_0?:
|
|
1974
|
+
}>(data_0?: better_auth.Prettify<{
|
|
1974
1975
|
query?: {
|
|
1975
1976
|
disableCookieCache?: unknown;
|
|
1976
1977
|
disableRefresh?: unknown;
|
|
@@ -2027,7 +2028,7 @@ declare const authClient: {
|
|
|
2027
2028
|
isRefetching: boolean;
|
|
2028
2029
|
error: _better_fetch_fetch.BetterFetchError | null;
|
|
2029
2030
|
refetch: (queryParams?: {
|
|
2030
|
-
query?:
|
|
2031
|
+
query?: better_auth.SessionQueryParams;
|
|
2031
2032
|
}) => void;
|
|
2032
2033
|
};
|
|
2033
2034
|
$Infer: {
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
2
2
|
import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
|
-
import { F as FormOmittedProps } from './utils-
|
|
3
|
+
import { F as FormOmittedProps } from './utils-ChipkRJ9.js';
|
|
4
4
|
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
5
5
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
6
6
|
import * as react from 'react';
|
|
@@ -8,6 +8,8 @@ import { ReactNode } from 'react';
|
|
|
8
8
|
import * as _tanstack_form_core from '@tanstack/form-core';
|
|
9
9
|
export { useInView } from 'react-intersection-observer';
|
|
10
10
|
import 'axios';
|
|
11
|
+
import 'uuidv7';
|
|
12
|
+
import '@t3-oss/env-core';
|
|
11
13
|
|
|
12
14
|
type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
|
|
13
15
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { LinkOptions } from '@tanstack/react-router';
|
|
2
2
|
import { FC, ReactNode } from 'react';
|
|
3
3
|
import { CssVarsThemeOptions } from '@mui/material';
|
|
4
|
-
export { r as rootRouteHead } from './utils-
|
|
4
|
+
export { r as rootRouteHead } from './utils-ChipkRJ9.js';
|
|
5
5
|
import 'axios';
|
|
6
|
+
import 'uuidv7';
|
|
7
|
+
import '@t3-oss/env-core';
|
|
6
8
|
|
|
7
9
|
interface NavigationPageItem extends Partial<Pick<LinkOptions, "to" | "href" | "params" | "search">> {
|
|
8
10
|
title: string;
|
package/dist/server-utils.d.ts
CHANGED
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { Pool } from 'pg';
|
|
2
2
|
export { Pool } from 'pg';
|
|
3
3
|
import * as drizzle_orm_node_postgres from 'drizzle-orm/node-postgres';
|
|
4
|
+
import * as better_call from 'better-call';
|
|
5
|
+
import * as better_auth_adapters from 'better-auth/adapters';
|
|
6
|
+
import * as better_auth from 'better-auth';
|
|
4
7
|
|
|
5
8
|
declare const db: drizzle_orm_node_postgres.NodePgDatabase<Record<string, never>> & {
|
|
6
9
|
$client: Pool;
|
|
7
10
|
};
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
declare const auth: better_auth.Auth<{
|
|
13
|
+
database: (options: better_auth.BetterAuthOptions) => better_auth_adapters.DBAdapter<better_auth.BetterAuthOptions>;
|
|
14
|
+
session: {
|
|
15
|
+
cookieCache: {
|
|
16
|
+
enabled: true;
|
|
17
|
+
maxAge: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
socialProviders: {
|
|
21
|
+
microsoft: {
|
|
22
|
+
clientId: string;
|
|
23
|
+
clientSecret: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
plugins: [{
|
|
27
|
+
id: "react-start-cookies";
|
|
28
|
+
hooks: {
|
|
29
|
+
after: {
|
|
30
|
+
matcher(ctx: better_call.EndpointContext<string, any> & Omit<better_call.InputContext<string, any>, "method"> & {
|
|
31
|
+
context: better_auth.AuthContext & {
|
|
32
|
+
returned?: unknown;
|
|
33
|
+
responseHeaders?: Headers;
|
|
34
|
+
};
|
|
35
|
+
headers?: Headers;
|
|
36
|
+
}): true;
|
|
37
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
}];
|
|
41
|
+
}>;
|
|
42
|
+
|
|
43
|
+
export { auth, db };
|
package/dist/server-utils.js
CHANGED
|
@@ -1,13 +1,97 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-MZYWQKGY.js";
|
|
2
|
+
serverEnv
|
|
3
|
+
} from "./chunk-MZYWQKGY.js";
|
|
5
4
|
import "./chunk-5WRI5ZAA.js";
|
|
6
5
|
|
|
7
6
|
// src/server-utils.ts
|
|
7
|
+
import { Pool as Pool2 } from "pg";
|
|
8
|
+
|
|
9
|
+
// src/lib/db/index.ts
|
|
10
|
+
import { drizzle } from "drizzle-orm/node-postgres";
|
|
8
11
|
import { Pool } from "pg";
|
|
12
|
+
var pool = new Pool({
|
|
13
|
+
connectionString: serverEnv.DATABASE_URL
|
|
14
|
+
});
|
|
15
|
+
var db = drizzle(pool);
|
|
16
|
+
|
|
17
|
+
// src/lib/auth/auth.ts
|
|
18
|
+
import { betterAuth } from "better-auth";
|
|
19
|
+
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
|
20
|
+
import { reactStartCookies } from "better-auth/react-start";
|
|
21
|
+
|
|
22
|
+
// src/lib/db/schema/auth.ts
|
|
23
|
+
import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
24
|
+
var user = pgTable("user", {
|
|
25
|
+
id: text("id").primaryKey(),
|
|
26
|
+
name: text("name").notNull(),
|
|
27
|
+
email: text("email").notNull().unique(),
|
|
28
|
+
emailVerified: boolean("email_verified").default(false).notNull(),
|
|
29
|
+
image: text("image"),
|
|
30
|
+
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
31
|
+
updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
32
|
+
});
|
|
33
|
+
var session = pgTable("session", {
|
|
34
|
+
id: text("id").primaryKey(),
|
|
35
|
+
expiresAt: timestamp("expires_at").notNull(),
|
|
36
|
+
token: text("token").notNull().unique(),
|
|
37
|
+
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
38
|
+
updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
|
|
39
|
+
ipAddress: text("ip_address"),
|
|
40
|
+
userAgent: text("user_agent"),
|
|
41
|
+
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" })
|
|
42
|
+
});
|
|
43
|
+
var account = pgTable("account", {
|
|
44
|
+
id: text("id").primaryKey(),
|
|
45
|
+
accountId: text("account_id").notNull(),
|
|
46
|
+
providerId: text("provider_id").notNull(),
|
|
47
|
+
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
48
|
+
accessToken: text("access_token"),
|
|
49
|
+
refreshToken: text("refresh_token"),
|
|
50
|
+
idToken: text("id_token"),
|
|
51
|
+
accessTokenExpiresAt: timestamp("access_token_expires_at"),
|
|
52
|
+
refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
|
|
53
|
+
scope: text("scope"),
|
|
54
|
+
password: text("password"),
|
|
55
|
+
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
56
|
+
updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
57
|
+
});
|
|
58
|
+
var verification = pgTable("verification", {
|
|
59
|
+
id: text("id").primaryKey(),
|
|
60
|
+
identifier: text("identifier").notNull(),
|
|
61
|
+
value: text("value").notNull(),
|
|
62
|
+
expiresAt: timestamp("expires_at").notNull(),
|
|
63
|
+
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
64
|
+
updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// src/lib/auth/auth.ts
|
|
68
|
+
var auth = betterAuth({
|
|
69
|
+
database: drizzleAdapter(db, {
|
|
70
|
+
provider: "pg",
|
|
71
|
+
schema: {
|
|
72
|
+
user,
|
|
73
|
+
session,
|
|
74
|
+
account,
|
|
75
|
+
verification
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
session: {
|
|
79
|
+
cookieCache: {
|
|
80
|
+
enabled: true,
|
|
81
|
+
maxAge: 5 * 60
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
socialProviders: {
|
|
85
|
+
microsoft: {
|
|
86
|
+
clientId: serverEnv.MICROSOFT_CLIENT_ID,
|
|
87
|
+
clientSecret: serverEnv.MICROSOFT_CLIENT_SECRET
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
plugins: [reactStartCookies()]
|
|
91
|
+
});
|
|
9
92
|
export {
|
|
10
|
-
Pool,
|
|
93
|
+
Pool2 as Pool,
|
|
94
|
+
auth,
|
|
11
95
|
db
|
|
12
96
|
};
|
|
13
97
|
//# sourceMappingURL=server-utils.js.map
|
package/dist/server-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/server-utils.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/server-utils.ts","../src/lib/db/index.ts","../src/lib/auth/auth.ts","../src/lib/db/schema/auth.ts"],"sourcesContent":["export { Pool } from \"pg\";\r\nexport { db } from \"./lib/db/index\";\r\nexport { auth } from \"./lib/auth/auth\";\r\n","import { drizzle } from \"drizzle-orm/node-postgres\";\r\nimport { Pool } from \"pg\";\r\nimport { serverEnv } from \"~/env\";\r\n\r\nconst pool: Pool = new Pool({\r\n connectionString: serverEnv.DATABASE_URL,\r\n});\r\n\r\nexport const db = drizzle(pool);","import { betterAuth } from \"better-auth\";\r\nimport { drizzleAdapter } from \"better-auth/adapters/drizzle\";\r\nimport { reactStartCookies } from \"better-auth/react-start\";\r\nimport { db } from \"../db\";\r\nimport { account, session, user, verification } from \"../db/schema/auth\";\r\nimport { serverEnv } from \"~/env\";\r\n\r\nexport const auth = betterAuth({\r\n database: drizzleAdapter(db, {\r\n provider: \"pg\",\r\n schema: {\r\n user,\r\n session,\r\n account,\r\n verification\r\n }\r\n }),\r\n session: {\r\n cookieCache: {\r\n enabled: true,\r\n maxAge: 5 * 60,\r\n },\r\n },\r\n socialProviders: {\r\n microsoft: {\r\n clientId: serverEnv.MICROSOFT_CLIENT_ID,\r\n clientSecret: serverEnv.MICROSOFT_CLIENT_SECRET\r\n }\r\n },\r\n plugins: [reactStartCookies()]\r\n});\r\n","import { boolean, pgTable, text, timestamp } from \"drizzle-orm/pg-core\";\n\nexport const user = pgTable(\"user\", {\n id: text(\"id\").primaryKey(),\n name: text(\"name\").notNull(),\n email: text(\"email\").notNull().unique(),\n emailVerified: boolean(\"email_verified\").default(false).notNull(),\n image: text(\"image\"),\n createdAt: timestamp(\"created_at\").defaultNow().notNull(),\n updatedAt: timestamp(\"updated_at\")\n .defaultNow()\n .$onUpdate(() => /* @__PURE__ */ new Date())\n .notNull(),\n});\n\nexport const session = pgTable(\"session\", {\n id: text(\"id\").primaryKey(),\n expiresAt: timestamp(\"expires_at\").notNull(),\n token: text(\"token\").notNull().unique(),\n createdAt: timestamp(\"created_at\").defaultNow().notNull(),\n updatedAt: timestamp(\"updated_at\")\n .$onUpdate(() => /* @__PURE__ */ new Date())\n .notNull(),\n ipAddress: text(\"ip_address\"),\n userAgent: text(\"user_agent\"),\n userId: text(\"user_id\")\n .notNull()\n .references(() => user.id, { onDelete: \"cascade\" }),\n});\n\nexport const account = pgTable(\"account\", {\n id: text(\"id\").primaryKey(),\n accountId: text(\"account_id\").notNull(),\n providerId: text(\"provider_id\").notNull(),\n userId: text(\"user_id\")\n .notNull()\n .references(() => user.id, { onDelete: \"cascade\" }),\n accessToken: text(\"access_token\"),\n refreshToken: text(\"refresh_token\"),\n idToken: text(\"id_token\"),\n accessTokenExpiresAt: timestamp(\"access_token_expires_at\"),\n refreshTokenExpiresAt: timestamp(\"refresh_token_expires_at\"),\n scope: text(\"scope\"),\n password: text(\"password\"),\n createdAt: timestamp(\"created_at\").defaultNow().notNull(),\n updatedAt: timestamp(\"updated_at\")\n .$onUpdate(() => /* @__PURE__ */ new Date())\n .notNull(),\n});\n\nexport const verification = pgTable(\"verification\", {\n id: text(\"id\").primaryKey(),\n identifier: text(\"identifier\").notNull(),\n value: text(\"value\").notNull(),\n expiresAt: timestamp(\"expires_at\").notNull(),\n createdAt: timestamp(\"created_at\").defaultNow().notNull(),\n updatedAt: timestamp(\"updated_at\")\n .defaultNow()\n .$onUpdate(() => /* @__PURE__ */ new Date())\n .notNull(),\n});\n"],"mappings":"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","names":["Pool"]}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
export { h as httpClient } from './utils-
|
|
1
|
+
export { h as httpClient } from './utils-ChipkRJ9.js';
|
|
2
2
|
export { uuidv7 } from 'uuidv7';
|
|
3
3
|
export { createEnv } from '@t3-oss/env-core';
|
|
4
|
-
import * as better_call from 'better-call';
|
|
5
|
-
import * as better_auth_adapters from 'better-auth/adapters';
|
|
6
|
-
import * as better_auth from 'better-auth';
|
|
7
4
|
import 'axios';
|
|
8
|
-
|
|
9
|
-
declare const auth: better_auth.Auth<{
|
|
10
|
-
database: (options: better_auth.BetterAuthOptions) => better_auth_adapters.DBAdapter<better_auth.BetterAuthOptions>;
|
|
11
|
-
session: {
|
|
12
|
-
cookieCache: {
|
|
13
|
-
enabled: true;
|
|
14
|
-
maxAge: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
socialProviders: {
|
|
18
|
-
microsoft: {
|
|
19
|
-
clientId: string;
|
|
20
|
-
clientSecret: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
plugins: [{
|
|
24
|
-
id: "react-start-cookies";
|
|
25
|
-
hooks: {
|
|
26
|
-
after: {
|
|
27
|
-
matcher(ctx: better_call.EndpointContext<string, any> & Omit<better_call.InputContext<string, any>, "method"> & {
|
|
28
|
-
context: better_auth.AuthContext & {
|
|
29
|
-
returned?: unknown;
|
|
30
|
-
responseHeaders?: Headers;
|
|
31
|
-
};
|
|
32
|
-
headers?: Headers;
|
|
33
|
-
}): true;
|
|
34
|
-
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
35
|
-
}[];
|
|
36
|
-
};
|
|
37
|
-
}];
|
|
38
|
-
}>;
|
|
39
|
-
|
|
40
|
-
export { auth };
|
package/dist/utils.js
CHANGED
|
@@ -1,95 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
httpClient
|
|
3
3
|
} from "./chunk-T723TJ46.js";
|
|
4
|
-
import
|
|
5
|
-
db
|
|
6
|
-
} from "./chunk-O7U2PUIW.js";
|
|
7
|
-
import {
|
|
8
|
-
serverEnv
|
|
9
|
-
} from "./chunk-MZYWQKGY.js";
|
|
4
|
+
import "./chunk-MZYWQKGY.js";
|
|
10
5
|
import "./chunk-5WRI5ZAA.js";
|
|
11
6
|
|
|
12
7
|
// src/utils.ts
|
|
13
8
|
import { uuidv7 } from "uuidv7";
|
|
14
9
|
import { createEnv } from "@t3-oss/env-core";
|
|
15
|
-
|
|
16
|
-
// src/lib/auth/auth.ts
|
|
17
|
-
import { betterAuth } from "better-auth";
|
|
18
|
-
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
|
19
|
-
import { reactStartCookies } from "better-auth/react-start";
|
|
20
|
-
|
|
21
|
-
// src/lib/db/schema/auth.ts
|
|
22
|
-
import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
23
|
-
var user = pgTable("user", {
|
|
24
|
-
id: text("id").primaryKey(),
|
|
25
|
-
name: text("name").notNull(),
|
|
26
|
-
email: text("email").notNull().unique(),
|
|
27
|
-
emailVerified: boolean("email_verified").default(false).notNull(),
|
|
28
|
-
image: text("image"),
|
|
29
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
30
|
-
updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
31
|
-
});
|
|
32
|
-
var session = pgTable("session", {
|
|
33
|
-
id: text("id").primaryKey(),
|
|
34
|
-
expiresAt: timestamp("expires_at").notNull(),
|
|
35
|
-
token: text("token").notNull().unique(),
|
|
36
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
37
|
-
updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
|
|
38
|
-
ipAddress: text("ip_address"),
|
|
39
|
-
userAgent: text("user_agent"),
|
|
40
|
-
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" })
|
|
41
|
-
});
|
|
42
|
-
var account = pgTable("account", {
|
|
43
|
-
id: text("id").primaryKey(),
|
|
44
|
-
accountId: text("account_id").notNull(),
|
|
45
|
-
providerId: text("provider_id").notNull(),
|
|
46
|
-
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
47
|
-
accessToken: text("access_token"),
|
|
48
|
-
refreshToken: text("refresh_token"),
|
|
49
|
-
idToken: text("id_token"),
|
|
50
|
-
accessTokenExpiresAt: timestamp("access_token_expires_at"),
|
|
51
|
-
refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
|
|
52
|
-
scope: text("scope"),
|
|
53
|
-
password: text("password"),
|
|
54
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
55
|
-
updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
56
|
-
});
|
|
57
|
-
var verification = pgTable("verification", {
|
|
58
|
-
id: text("id").primaryKey(),
|
|
59
|
-
identifier: text("identifier").notNull(),
|
|
60
|
-
value: text("value").notNull(),
|
|
61
|
-
expiresAt: timestamp("expires_at").notNull(),
|
|
62
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
63
|
-
updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
// src/lib/auth/auth.ts
|
|
67
|
-
var auth = betterAuth({
|
|
68
|
-
database: drizzleAdapter(db, {
|
|
69
|
-
provider: "pg",
|
|
70
|
-
schema: {
|
|
71
|
-
user,
|
|
72
|
-
session,
|
|
73
|
-
account,
|
|
74
|
-
verification
|
|
75
|
-
}
|
|
76
|
-
}),
|
|
77
|
-
session: {
|
|
78
|
-
cookieCache: {
|
|
79
|
-
enabled: true,
|
|
80
|
-
maxAge: 5 * 60
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
socialProviders: {
|
|
84
|
-
microsoft: {
|
|
85
|
-
clientId: serverEnv.MICROSOFT_CLIENT_ID,
|
|
86
|
-
clientSecret: serverEnv.MICROSOFT_CLIENT_SECRET
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
plugins: [reactStartCookies()]
|
|
90
|
-
});
|
|
91
10
|
export {
|
|
92
|
-
auth,
|
|
93
11
|
createEnv,
|
|
94
12
|
httpClient,
|
|
95
13
|
uuidv7
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils.ts"
|
|
1
|
+
{"version":3,"sources":["../src/utils.ts"],"sourcesContent":["export { httpClient } from \"./lib/utils\";\r\nexport { uuidv7 } from \"uuidv7\";\r\nexport { createEnv } from \"@t3-oss/env-core\";\r\n"],"mappings":";;;;;;;AACA,SAAS,cAAc;AACvB,SAAS,iBAAiB;","names":[]}
|
package/package.json
CHANGED
package/dist/chunk-O7U2PUIW.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
serverEnv
|
|
3
|
-
} from "./chunk-MZYWQKGY.js";
|
|
4
|
-
|
|
5
|
-
// src/lib/db/index.ts
|
|
6
|
-
import { drizzle } from "drizzle-orm/node-postgres";
|
|
7
|
-
import { Pool } from "pg";
|
|
8
|
-
var pool = new Pool({
|
|
9
|
-
connectionString: serverEnv.DATABASE_URL
|
|
10
|
-
});
|
|
11
|
-
var db = drizzle(pool);
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
db
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-O7U2PUIW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/db/index.ts"],"sourcesContent":["import { drizzle } from \"drizzle-orm/node-postgres\";\r\nimport { Pool } from \"pg\";\r\nimport { serverEnv } from \"~/env\";\r\n\r\nconst pool: Pool = new Pool({\r\n connectionString: serverEnv.DATABASE_URL,\r\n});\r\n\r\nexport const db = drizzle(pool);"],"mappings":";;;;;AAAA,SAAS,eAAe;AACxB,SAAS,YAAY;AAGrB,IAAM,OAAa,IAAI,KAAK;AAAA,EACxB,kBAAkB,UAAU;AAChC,CAAC;AAEM,IAAM,KAAK,QAAQ,IAAI;","names":[]}
|