better-auth 1.2.9-beta.6 → 1.2.9-beta.8
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/adapters/drizzle-adapter/index.d.cts +4 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +4 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +4 -3
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +4 -3
- package/dist/adapters/memory-adapter/index.d.mts +4 -3
- package/dist/adapters/memory-adapter/index.d.ts +4 -3
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +4 -3
- package/dist/adapters/prisma-adapter/index.d.mts +4 -3
- package/dist/adapters/prisma-adapter/index.d.ts +4 -3
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/api/index.d.cts +4 -4
- package/dist/api/index.d.mts +4 -4
- package/dist/api/index.d.ts +4 -4
- package/dist/client/index.d.cts +5 -5
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.d.ts +5 -5
- package/dist/client/plugins/index.d.cts +6 -4
- package/dist/client/plugins/index.d.mts +6 -4
- package/dist/client/plugins/index.d.ts +6 -4
- package/dist/client/react/index.d.cts +10 -10
- package/dist/client/react/index.d.mts +10 -10
- package/dist/client/react/index.d.ts +10 -10
- package/dist/client/solid/index.d.cts +4 -4
- package/dist/client/solid/index.d.mts +4 -4
- package/dist/client/solid/index.d.ts +4 -4
- package/dist/client/svelte/index.d.cts +4 -4
- package/dist/client/svelte/index.d.mts +4 -4
- package/dist/client/svelte/index.d.ts +4 -4
- package/dist/client/vue/index.d.cts +4 -4
- package/dist/client/vue/index.d.mts +4 -4
- package/dist/client/vue/index.d.ts +4 -4
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/crypto/index.d.cts +2 -1
- package/dist/crypto/index.d.mts +2 -1
- package/dist/crypto/index.d.ts +2 -1
- package/dist/db/index.d.cts +6 -6
- package/dist/db/index.d.mts +6 -6
- package/dist/db/index.d.ts +6 -6
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/plugins/access/index.d.cts +2 -1
- package/dist/plugins/access/index.d.mts +2 -1
- package/dist/plugins/access/index.d.ts +2 -1
- package/dist/plugins/admin/access/index.d.cts +17 -17
- package/dist/plugins/admin/access/index.d.mts +17 -17
- package/dist/plugins/admin/access/index.d.ts +17 -17
- package/dist/plugins/admin/index.d.cts +34 -33
- package/dist/plugins/admin/index.d.mts +34 -33
- package/dist/plugins/admin/index.d.ts +34 -33
- package/dist/plugins/anonymous/index.d.cts +4 -3
- package/dist/plugins/anonymous/index.d.mts +4 -3
- package/dist/plugins/anonymous/index.d.ts +4 -3
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.d.cts +2 -2
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.ts +2 -2
- package/dist/plugins/email-otp/index.d.cts +14 -13
- package/dist/plugins/email-otp/index.d.mts +14 -13
- package/dist/plugins/email-otp/index.d.ts +14 -13
- package/dist/plugins/generic-oauth/index.d.cts +14 -13
- package/dist/plugins/generic-oauth/index.d.mts +14 -13
- package/dist/plugins/generic-oauth/index.d.ts +14 -13
- package/dist/plugins/haveibeenpwned/index.d.cts +4 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +4 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +4 -3
- package/dist/plugins/index.cjs +194 -196
- package/dist/plugins/index.d.cts +16 -16
- package/dist/plugins/index.d.mts +16 -16
- package/dist/plugins/index.d.ts +16 -16
- package/dist/plugins/index.mjs +195 -197
- package/dist/plugins/jwt/index.d.cts +5 -4
- package/dist/plugins/jwt/index.d.mts +5 -4
- package/dist/plugins/jwt/index.d.ts +5 -4
- package/dist/plugins/multi-session/index.d.cts +5 -5
- package/dist/plugins/multi-session/index.d.mts +5 -5
- package/dist/plugins/multi-session/index.d.ts +5 -5
- package/dist/plugins/oauth-proxy/index.d.cts +6 -6
- package/dist/plugins/oauth-proxy/index.d.mts +6 -6
- package/dist/plugins/oauth-proxy/index.d.ts +6 -6
- package/dist/plugins/oidc-provider/index.cjs +1 -1
- package/dist/plugins/oidc-provider/index.d.cts +21 -11
- package/dist/plugins/oidc-provider/index.d.mts +21 -11
- package/dist/plugins/oidc-provider/index.d.ts +21 -11
- package/dist/plugins/oidc-provider/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.d.cts +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.d.ts +3 -3
- package/dist/plugins/open-api/index.d.cts +4 -3
- package/dist/plugins/open-api/index.d.mts +4 -3
- package/dist/plugins/open-api/index.d.ts +4 -3
- package/dist/plugins/organization/index.d.cts +171 -170
- package/dist/plugins/organization/index.d.mts +171 -170
- package/dist/plugins/organization/index.d.ts +171 -170
- package/dist/plugins/passkey/index.d.cts +9 -8
- package/dist/plugins/passkey/index.d.mts +9 -8
- package/dist/plugins/passkey/index.d.ts +9 -8
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +8 -7
- package/dist/plugins/phone-number/index.d.mts +8 -7
- package/dist/plugins/phone-number/index.d.ts +8 -7
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sso/index.d.cts +33 -32
- package/dist/plugins/sso/index.d.mts +33 -32
- package/dist/plugins/sso/index.d.ts +33 -32
- package/dist/plugins/two-factor/index.d.cts +12 -11
- package/dist/plugins/two-factor/index.d.mts +12 -11
- package/dist/plugins/two-factor/index.d.ts +12 -11
- package/dist/plugins/username/index.d.cts +5 -4
- package/dist/plugins/username/index.d.mts +5 -4
- package/dist/plugins/username/index.d.ts +5 -4
- package/dist/shared/{better-auth.BFR46gjQ.d.ts → better-auth.BNd5XKh_.d.ts} +3 -3
- package/dist/shared/{better-auth.ByC0y0O-.d.ts → better-auth.BTuiucL9.d.ts} +2 -1
- package/dist/shared/{better-auth.CDo1lsla.mjs → better-auth.BxnsZrT2.mjs} +25 -14
- package/dist/shared/{better-auth.B0Qseyk5.d.mts → better-auth.CEh_VF4H.d.mts} +46 -106
- package/dist/shared/{better-auth.BmjQ3Bjc.d.ts → better-auth.CFiv_jsY.d.ts} +532 -531
- package/dist/shared/{better-auth.pfMfSSjQ.d.cts → better-auth.Ca-u1VDq.d.cts} +46 -106
- package/dist/shared/{better-auth.c8uOsc8s.d.cts → better-auth.CpY7n5vC.d.cts} +532 -531
- package/dist/shared/{better-auth.DqE__YRm.d.cts → better-auth.CtOqPuAo.d.cts} +3 -3
- package/dist/shared/{better-auth.BWb7XZvT.cjs → better-auth.DBsHPrgZ.cjs} +25 -14
- package/dist/shared/{better-auth.CggyDr6H.d.mts → better-auth.DNEJbRnE.d.mts} +2 -1
- package/dist/shared/{better-auth.yS_3d_FU.d.mts → better-auth.Dz-H0d-W.d.mts} +532 -531
- package/dist/shared/{better-auth.BgtukYVC.d.cts → better-auth.Dz9w_OUB.d.cts} +2 -1
- package/dist/shared/{better-auth.B79sBZ5R.d.ts → better-auth.UGX6z4ai.d.ts} +46 -106
- package/dist/shared/{better-auth.BQP9roUV.d.mts → better-auth.vOCuqX1T.d.mts} +3 -3
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/types/index.d.cts +5 -4
- package/dist/types/index.d.mts +5 -4
- package/dist/types/index.d.ts +5 -4
- package/package.json +2 -2
|
@@ -7,10 +7,10 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CpY7n5vC.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
+
data: infer S;
|
|
70
|
+
error: null;
|
|
71
|
+
} | {
|
|
69
72
|
data: null;
|
|
70
73
|
error: {
|
|
71
74
|
message?: string | undefined;
|
|
72
75
|
status: number;
|
|
73
76
|
statusText: string;
|
|
74
77
|
};
|
|
75
|
-
} | {
|
|
76
|
-
data: infer S;
|
|
77
|
-
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
+
data: infer S;
|
|
88
|
+
error: null;
|
|
89
|
+
} | {
|
|
87
90
|
data: null;
|
|
88
91
|
error: {
|
|
89
92
|
message?: string | undefined;
|
|
90
93
|
status: number;
|
|
91
94
|
statusText: string;
|
|
92
95
|
};
|
|
93
|
-
} | {
|
|
94
|
-
data: infer S;
|
|
95
|
-
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -103,6 +103,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
103
103
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
104
104
|
};
|
|
105
105
|
})[];
|
|
106
|
+
redirect?: RequestRedirect;
|
|
107
|
+
method: string;
|
|
106
108
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
109
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
110
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -112,10 +114,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
112
114
|
credentials?: RequestCredentials;
|
|
113
115
|
integrity?: string;
|
|
114
116
|
keepalive?: boolean;
|
|
115
|
-
method: string;
|
|
116
117
|
mode?: RequestMode;
|
|
117
118
|
priority?: RequestPriority;
|
|
118
|
-
redirect?: RequestRedirect;
|
|
119
119
|
referrer?: string;
|
|
120
120
|
referrerPolicy?: ReferrerPolicy;
|
|
121
121
|
signal?: AbortSignal | null;
|
|
@@ -7,10 +7,10 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dz-H0d-W.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
+
data: infer S;
|
|
70
|
+
error: null;
|
|
71
|
+
} | {
|
|
69
72
|
data: null;
|
|
70
73
|
error: {
|
|
71
74
|
message?: string | undefined;
|
|
72
75
|
status: number;
|
|
73
76
|
statusText: string;
|
|
74
77
|
};
|
|
75
|
-
} | {
|
|
76
|
-
data: infer S;
|
|
77
|
-
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
+
data: infer S;
|
|
88
|
+
error: null;
|
|
89
|
+
} | {
|
|
87
90
|
data: null;
|
|
88
91
|
error: {
|
|
89
92
|
message?: string | undefined;
|
|
90
93
|
status: number;
|
|
91
94
|
statusText: string;
|
|
92
95
|
};
|
|
93
|
-
} | {
|
|
94
|
-
data: infer S;
|
|
95
|
-
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -103,6 +103,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
103
103
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
104
104
|
};
|
|
105
105
|
})[];
|
|
106
|
+
redirect?: RequestRedirect;
|
|
107
|
+
method: string;
|
|
106
108
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
109
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
110
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -112,10 +114,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
112
114
|
credentials?: RequestCredentials;
|
|
113
115
|
integrity?: string;
|
|
114
116
|
keepalive?: boolean;
|
|
115
|
-
method: string;
|
|
116
117
|
mode?: RequestMode;
|
|
117
118
|
priority?: RequestPriority;
|
|
118
|
-
redirect?: RequestRedirect;
|
|
119
119
|
referrer?: string;
|
|
120
120
|
referrerPolicy?: ReferrerPolicy;
|
|
121
121
|
signal?: AbortSignal | null;
|
|
@@ -7,10 +7,10 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CFiv_jsY.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
@@ -66,15 +66,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
66
66
|
data: InferClientAPI<Option> extends {
|
|
67
67
|
getSession: () => Promise<infer Res>;
|
|
68
68
|
} ? Res extends {
|
|
69
|
+
data: infer S;
|
|
70
|
+
error: null;
|
|
71
|
+
} | {
|
|
69
72
|
data: null;
|
|
70
73
|
error: {
|
|
71
74
|
message?: string | undefined;
|
|
72
75
|
status: number;
|
|
73
76
|
statusText: string;
|
|
74
77
|
};
|
|
75
|
-
} | {
|
|
76
|
-
data: infer S;
|
|
77
|
-
error: null;
|
|
78
78
|
} ? S : Res : never;
|
|
79
79
|
isPending: boolean;
|
|
80
80
|
error: BetterFetchError | null;
|
|
@@ -84,15 +84,15 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
84
84
|
Session: NonNullable<InferClientAPI<Option> extends {
|
|
85
85
|
getSession: () => Promise<infer Res>;
|
|
86
86
|
} ? Res extends {
|
|
87
|
+
data: infer S;
|
|
88
|
+
error: null;
|
|
89
|
+
} | {
|
|
87
90
|
data: null;
|
|
88
91
|
error: {
|
|
89
92
|
message?: string | undefined;
|
|
90
93
|
status: number;
|
|
91
94
|
statusText: string;
|
|
92
95
|
};
|
|
93
|
-
} | {
|
|
94
|
-
data: infer S;
|
|
95
|
-
error: null;
|
|
96
96
|
} ? S : Res : never>;
|
|
97
97
|
};
|
|
98
98
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -103,6 +103,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
103
103
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
104
104
|
};
|
|
105
105
|
})[];
|
|
106
|
+
redirect?: RequestRedirect;
|
|
107
|
+
method: string;
|
|
106
108
|
headers?: (HeadersInit & (HeadersInit | {
|
|
107
109
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
108
110
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -112,10 +114,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
112
114
|
credentials?: RequestCredentials;
|
|
113
115
|
integrity?: string;
|
|
114
116
|
keepalive?: boolean;
|
|
115
|
-
method: string;
|
|
116
117
|
mode?: RequestMode;
|
|
117
118
|
priority?: RequestPriority;
|
|
118
|
-
redirect?: RequestRedirect;
|
|
119
119
|
referrer?: string;
|
|
120
120
|
referrerPolicy?: ReferrerPolicy;
|
|
121
121
|
signal?: AbortSignal | null;
|
|
@@ -4,11 +4,11 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CpY7n5vC.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -59,6 +59,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
59
59
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
60
60
|
};
|
|
61
61
|
})[];
|
|
62
|
+
redirect?: RequestRedirect;
|
|
63
|
+
method: string;
|
|
62
64
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
65
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
66
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -68,10 +70,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
68
70
|
credentials?: RequestCredentials;
|
|
69
71
|
integrity?: string;
|
|
70
72
|
keepalive?: boolean;
|
|
71
|
-
method: string;
|
|
72
73
|
mode?: RequestMode;
|
|
73
74
|
priority?: RequestPriority;
|
|
74
|
-
redirect?: RequestRedirect;
|
|
75
75
|
referrer?: string;
|
|
76
76
|
referrerPolicy?: ReferrerPolicy;
|
|
77
77
|
signal?: AbortSignal | null;
|
|
@@ -4,11 +4,11 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dz-H0d-W.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -59,6 +59,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
59
59
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
60
60
|
};
|
|
61
61
|
})[];
|
|
62
|
+
redirect?: RequestRedirect;
|
|
63
|
+
method: string;
|
|
62
64
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
65
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
66
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -68,10 +70,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
68
70
|
credentials?: RequestCredentials;
|
|
69
71
|
integrity?: string;
|
|
70
72
|
keepalive?: boolean;
|
|
71
|
-
method: string;
|
|
72
73
|
mode?: RequestMode;
|
|
73
74
|
priority?: RequestPriority;
|
|
74
|
-
redirect?: RequestRedirect;
|
|
75
75
|
referrer?: string;
|
|
76
76
|
referrerPolicy?: ReferrerPolicy;
|
|
77
77
|
signal?: AbortSignal | null;
|
|
@@ -4,11 +4,11 @@ export * from '@better-fetch/fetch';
|
|
|
4
4
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
5
5
|
import { Accessor } from 'solid-js';
|
|
6
6
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
7
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CFiv_jsY.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../shared/better-auth.
|
|
11
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
@@ -59,6 +59,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
59
59
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
60
60
|
};
|
|
61
61
|
})[];
|
|
62
|
+
redirect?: RequestRedirect;
|
|
63
|
+
method: string;
|
|
62
64
|
headers?: (HeadersInit & (HeadersInit | {
|
|
63
65
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
64
66
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -68,10 +70,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
68
70
|
credentials?: RequestCredentials;
|
|
69
71
|
integrity?: string;
|
|
70
72
|
keepalive?: boolean;
|
|
71
|
-
method: string;
|
|
72
73
|
mode?: RequestMode;
|
|
73
74
|
priority?: RequestPriority;
|
|
74
|
-
redirect?: RequestRedirect;
|
|
75
75
|
referrer?: string;
|
|
76
76
|
referrerPolicy?: ReferrerPolicy;
|
|
77
77
|
signal?: AbortSignal | null;
|
|
@@ -6,10 +6,10 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CpY7n5vC.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -45,6 +45,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
46
46
|
};
|
|
47
47
|
})[];
|
|
48
|
+
redirect?: RequestRedirect;
|
|
49
|
+
method: string;
|
|
48
50
|
headers?: (HeadersInit & (HeadersInit | {
|
|
49
51
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
50
52
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -54,10 +56,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
54
56
|
credentials?: RequestCredentials;
|
|
55
57
|
integrity?: string;
|
|
56
58
|
keepalive?: boolean;
|
|
57
|
-
method: string;
|
|
58
59
|
mode?: RequestMode;
|
|
59
60
|
priority?: RequestPriority;
|
|
60
|
-
redirect?: RequestRedirect;
|
|
61
61
|
referrer?: string;
|
|
62
62
|
referrerPolicy?: ReferrerPolicy;
|
|
63
63
|
signal?: AbortSignal | null;
|
|
@@ -6,10 +6,10 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dz-H0d-W.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -45,6 +45,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
46
46
|
};
|
|
47
47
|
})[];
|
|
48
|
+
redirect?: RequestRedirect;
|
|
49
|
+
method: string;
|
|
48
50
|
headers?: (HeadersInit & (HeadersInit | {
|
|
49
51
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
50
52
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -54,10 +56,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
54
56
|
credentials?: RequestCredentials;
|
|
55
57
|
integrity?: string;
|
|
56
58
|
keepalive?: boolean;
|
|
57
|
-
method: string;
|
|
58
59
|
mode?: RequestMode;
|
|
59
60
|
priority?: RequestPriority;
|
|
60
|
-
redirect?: RequestRedirect;
|
|
61
61
|
referrer?: string;
|
|
62
62
|
referrerPolicy?: ReferrerPolicy;
|
|
63
63
|
signal?: AbortSignal | null;
|
|
@@ -6,10 +6,10 @@ import { BetterFetchError } from '@better-fetch/fetch';
|
|
|
6
6
|
export * from '@better-fetch/fetch';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CFiv_jsY.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -45,6 +45,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
45
45
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
46
46
|
};
|
|
47
47
|
})[];
|
|
48
|
+
redirect?: RequestRedirect;
|
|
49
|
+
method: string;
|
|
48
50
|
headers?: (HeadersInit & (HeadersInit | {
|
|
49
51
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
50
52
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -54,10 +56,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
54
56
|
credentials?: RequestCredentials;
|
|
55
57
|
integrity?: string;
|
|
56
58
|
keepalive?: boolean;
|
|
57
|
-
method: string;
|
|
58
59
|
mode?: RequestMode;
|
|
59
60
|
priority?: RequestPriority;
|
|
60
|
-
redirect?: RequestRedirect;
|
|
61
61
|
referrer?: string;
|
|
62
62
|
referrerPolicy?: ReferrerPolicy;
|
|
63
63
|
signal?: AbortSignal | null;
|
|
@@ -6,10 +6,10 @@ export * from '@better-fetch/fetch';
|
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CpY7n5vC.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.Dz9w_OUB.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -83,6 +83,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
83
83
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
84
84
|
};
|
|
85
85
|
})[];
|
|
86
|
+
redirect?: RequestRedirect;
|
|
87
|
+
method: string;
|
|
86
88
|
headers?: (HeadersInit & (HeadersInit | {
|
|
87
89
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
88
90
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -92,10 +94,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
92
94
|
credentials?: RequestCredentials;
|
|
93
95
|
integrity?: string;
|
|
94
96
|
keepalive?: boolean;
|
|
95
|
-
method: string;
|
|
96
97
|
mode?: RequestMode;
|
|
97
98
|
priority?: RequestPriority;
|
|
98
|
-
redirect?: RequestRedirect;
|
|
99
99
|
referrer?: string;
|
|
100
100
|
referrerPolicy?: ReferrerPolicy;
|
|
101
101
|
signal?: AbortSignal | null;
|
|
@@ -6,10 +6,10 @@ export * from '@better-fetch/fetch';
|
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.Dz-H0d-W.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.DNEJbRnE.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -83,6 +83,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
83
83
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
84
84
|
};
|
|
85
85
|
})[];
|
|
86
|
+
redirect?: RequestRedirect;
|
|
87
|
+
method: string;
|
|
86
88
|
headers?: (HeadersInit & (HeadersInit | {
|
|
87
89
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
88
90
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -92,10 +94,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
92
94
|
credentials?: RequestCredentials;
|
|
93
95
|
integrity?: string;
|
|
94
96
|
keepalive?: boolean;
|
|
95
|
-
method: string;
|
|
96
97
|
mode?: RequestMode;
|
|
97
98
|
priority?: RequestPriority;
|
|
98
|
-
redirect?: RequestRedirect;
|
|
99
99
|
referrer?: string;
|
|
100
100
|
referrerPolicy?: ReferrerPolicy;
|
|
101
101
|
signal?: AbortSignal | null;
|
|
@@ -6,10 +6,10 @@ export * from '@better-fetch/fetch';
|
|
|
6
6
|
import { DeepReadonly, Ref } from 'vue';
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, P as PrettifyDeep } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
9
|
-
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { f as BASE_ERROR_CODES } from '../../shared/better-auth.CFiv_jsY.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
|
-
import '../../shared/better-auth.
|
|
12
|
+
import '../../shared/better-auth.BTuiucL9.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
@@ -83,6 +83,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
83
83
|
onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
|
|
84
84
|
};
|
|
85
85
|
})[];
|
|
86
|
+
redirect?: RequestRedirect;
|
|
87
|
+
method: string;
|
|
86
88
|
headers?: (HeadersInit & (HeadersInit | {
|
|
87
89
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
88
90
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -92,10 +94,8 @@ declare function createAuthClient<Option extends ClientOptions>(options?: Option
|
|
|
92
94
|
credentials?: RequestCredentials;
|
|
93
95
|
integrity?: string;
|
|
94
96
|
keepalive?: boolean;
|
|
95
|
-
method: string;
|
|
96
97
|
mode?: RequestMode;
|
|
97
98
|
priority?: RequestPriority;
|
|
98
|
-
redirect?: RequestRedirect;
|
|
99
99
|
referrer?: string;
|
|
100
100
|
referrerPolicy?: ReferrerPolicy;
|
|
101
101
|
signal?: AbortSignal | null;
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.CpY7n5vC.cjs';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.Dz-H0d-W.mjs';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.DNEJbRnE.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { ax as BetterAuthCookies, aC as EligibleCookies, av as createCookieGetter, aA as deleteSessionCookie, aE as getCookieCache, aw as getCookies, aD as getSessionCookie, aB as parseCookies, aF as parseSetCookieHeader, ay as setCookieCache, aG as setCookieToHeader, az as setSessionCookie } from '../shared/better-auth.CFiv_jsY.js';
|
|
3
3
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.BTuiucL9.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
package/dist/crypto/index.d.cts
CHANGED
|
@@ -27,4 +27,5 @@ type SymmetricDecryptOptions = {
|
|
|
27
27
|
};
|
|
28
28
|
declare const symmetricDecrypt: ({ key, data, }: SymmetricDecryptOptions) => Promise<string>;
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { compareHash, constantTimeEqual, generateRandomString, hashPassword, hashToBase64, signJWT, symmetricDecrypt, symmetricEncrypt, verifyPassword };
|
|
31
|
+
export type { SymmetricDecryptOptions, SymmetricEncryptOptions };
|
package/dist/crypto/index.d.mts
CHANGED
|
@@ -27,4 +27,5 @@ type SymmetricDecryptOptions = {
|
|
|
27
27
|
};
|
|
28
28
|
declare const symmetricDecrypt: ({ key, data, }: SymmetricDecryptOptions) => Promise<string>;
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { compareHash, constantTimeEqual, generateRandomString, hashPassword, hashToBase64, signJWT, symmetricDecrypt, symmetricEncrypt, verifyPassword };
|
|
31
|
+
export type { SymmetricDecryptOptions, SymmetricEncryptOptions };
|
package/dist/crypto/index.d.ts
CHANGED
|
@@ -27,4 +27,5 @@ type SymmetricDecryptOptions = {
|
|
|
27
27
|
};
|
|
28
28
|
declare const symmetricDecrypt: ({ key, data, }: SymmetricDecryptOptions) => Promise<string>;
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { compareHash, constantTimeEqual, generateRandomString, hashPassword, hashToBase64, signJWT, symmetricDecrypt, symmetricEncrypt, verifyPassword };
|
|
31
|
+
export type { SymmetricDecryptOptions, SymmetricEncryptOptions };
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { a as Adapter, B as BetterAuthOptions, G as GenericEndpointContext, W as Where, a1 as FieldAttribute, a2 as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CpY7n5vC.cjs';
|
|
2
|
+
export { ae as BetterAuthDbSchema, a5 as FieldAttributeConfig, ad as InferFieldsFromOptions, ac as InferFieldsFromPlugins, a9 as InferFieldsInput, aa as InferFieldsInputClient, a8 as InferFieldsOutput, a7 as InferValueType, a4 as InternalAdapter, ab as PluginFieldAttribute, ag as accountSchema, a6 as createFieldAttribute, a3 as createInternalAdapter, al as getAllFields, af as getAuthTables, au as mergeSchema, as as parseAccountInput, an as parseAccountOutput, ar as parseAdditionalUserInput, ap as parseInputData, ak as parseOutputData, at as parseSessionInput, ao as parseSessionOutput, aq as parseUserInput, am as parseUserOutput, ai as sessionSchema, ah as userSchema, aj as verificationSchema } from '../shared/better-auth.CpY7n5vC.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
|
-
import '../shared/better-auth.
|
|
5
|
+
import '../shared/better-auth.Dz9w_OUB.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
@@ -13,15 +13,15 @@ declare function getWithHooks(adapter: Adapter, ctx: {
|
|
|
13
13
|
options: BetterAuthOptions;
|
|
14
14
|
hooks: Exclude<BetterAuthOptions["databaseHooks"], undefined>[];
|
|
15
15
|
}): {
|
|
16
|
-
createWithHooks: <T extends Record<string, any>>(data: T, model: "
|
|
16
|
+
createWithHooks: <T extends Record<string, any>>(data: T, model: "user" | "account" | "session" | "verification", customCreateFn?: {
|
|
17
17
|
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
18
18
|
executeMainFn?: boolean;
|
|
19
19
|
}, context?: GenericEndpointContext) => Promise<any>;
|
|
20
|
-
updateWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "
|
|
20
|
+
updateWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "user" | "account" | "session" | "verification", customUpdateFn?: {
|
|
21
21
|
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
22
22
|
executeMainFn?: boolean;
|
|
23
23
|
}, context?: GenericEndpointContext) => Promise<any>;
|
|
24
|
-
updateManyWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "
|
|
24
|
+
updateManyWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "user" | "account" | "session" | "verification", customUpdateFn?: {
|
|
25
25
|
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
26
26
|
executeMainFn?: boolean;
|
|
27
27
|
}, context?: GenericEndpointContext) => Promise<any>;
|