better-auth 1.4.4-beta.1 → 1.4.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/index.d.mts +9 -8
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.mjs +1 -1
- package/dist/{admin-DOf4RlqU.mjs → admin-C0d5dk6O.mjs} +1 -1
- package/dist/{anonymous-NbEz-M9T.mjs → anonymous-B5kAEMza.mjs} +1 -1
- package/dist/api/index.d.mts +5 -4
- package/dist/api/index.mjs +3 -3
- package/dist/{api-EbGN0arI.mjs → api-q2sbQ7PT.mjs} +3 -3
- package/dist/auth/minimal.d.mts +5 -4
- package/dist/auth/minimal.mjs +4 -4
- package/dist/{auth-DtuX7axC.mjs → auth-DtQf_JUg.mjs} +3 -3
- package/dist/{base-DNnxU0Gh.mjs → base-CPOjsixh.mjs} +2 -2
- package/dist/{chunk-DbI2OXuS.mjs → chunk-09eW3CcW.mjs} +12 -27
- package/dist/client/index.d.mts +5 -6
- package/dist/client/lynx/index.d.mts +22 -21
- package/dist/client/plugins/index.d.mts +84 -54
- package/dist/client/react/index.d.mts +20 -19
- package/dist/client/solid/index.d.mts +20 -19
- package/dist/client/svelte/index.d.mts +6 -5
- package/dist/client/vue/index.d.mts +22 -21
- package/dist/cookies/index.d.mts +6 -5
- package/dist/db/index.d.mts +5 -4
- package/dist/db/index.mjs +2 -2
- package/dist/{dialect-BvcuosDD.mjs → dialect-D9ZUZA4J.mjs} +2 -2
- package/dist/{email-otp-wH0n3Ta5.mjs → email-otp-wYPJyq8c.mjs} +1 -1
- package/dist/{esm-DkLFGBDk.mjs → esm-DPWELC5I.mjs} +1 -1
- package/dist/{generic-oauth-DbGqw_dO.mjs → generic-oauth-BlH-OSQN.mjs} +3 -3
- package/dist/{get-migration-BHJiEhv-.mjs → get-migration-wMpq_Lmw.mjs} +4 -4
- package/dist/{haveibeenpwned-BLpq2gIE.mjs → haveibeenpwned-v0bNR9PL.mjs} +1 -1
- package/dist/index-5t2DAD0k.d.mts +556 -0
- package/dist/index-B52PH6jU.d.mts +488 -0
- package/dist/{index-BJBZojsr.d.mts → index-BDwnO3gz.d.mts} +1 -1
- package/dist/index-BTk-wfTL.d.mts +6520 -0
- package/dist/{index-C_7_0n5I.d.mts → index-BbsJ-RVs.d.mts} +47 -6
- package/dist/{index-B5V55AT0.d.mts → index-Bn1R6aVZ.d.mts} +2 -2
- package/dist/{index-DGVCxXgt.d.mts → index-C-qjuMK3.d.mts} +52 -3
- package/dist/{index-DitoYNDA.d.mts → index-C40qLrfj.d.mts} +35 -3
- package/dist/index-C8eCoB52.d.mts +9444 -0
- package/dist/index-CBe2rvyJ.d.mts +197 -0
- package/dist/{index-BlFbMHpg.d.mts → index-CfCxrifw.d.mts} +149 -5
- package/dist/{index-C12miRzk.d.mts → index-CrYIJeWc.d.mts} +3 -3
- package/dist/{index-Ck6mqAGv.d.mts → index-D8MBzSjs.d.mts} +1 -1
- package/dist/{index-BH0dV2Ob.d.mts → index-DJFTvRYn.d.mts} +91 -14
- package/dist/index-DaaVQEvX.d.mts +76 -0
- package/dist/index-DcYTqy8J.d.mts +182 -0
- package/dist/index-DiT4DbMC.d.mts +393 -0
- package/dist/{index-DHAy8_Lx.d.mts → index-DljejjCu.d.mts} +45 -4
- package/dist/index-DmC6Ctb-.d.mts +76 -0
- package/dist/{index-BR5yXcTF.d.mts → index-J1rkw6JT.d.mts} +189 -11
- package/dist/index-UXC1tbRT.d.mts +909 -0
- package/dist/index-_MGUkN9y.d.mts +36 -0
- package/dist/index-d52kDVAg.d.mts +65 -0
- package/dist/index.d.mts +6 -7
- package/dist/index.mjs +5 -5
- package/dist/integrations/next-js.d.mts +5 -2
- package/dist/integrations/node.d.mts +7 -5
- package/dist/integrations/svelte-kit.d.mts +7 -5
- package/dist/integrations/tanstack-start.d.mts +5 -2
- package/dist/integrations/tanstack-start.mjs +1 -1
- package/dist/{jwt-CDYeUkGP.mjs → jwt-BcNc-TEx.mjs} +1 -1
- package/dist/{magic-link-Dqmi-o1j.mjs → magic-link-B1zZrjdu.mjs} +1 -1
- package/dist/{multi-session-BMU39Jg-.mjs → multi-session-C855V4lg.mjs} +4 -4
- package/dist/{oauth-proxy-C4DAoruM.mjs → oauth-proxy-CSxVQ45y.mjs} +1 -1
- package/dist/oauth2/index.d.mts +25 -8
- package/dist/oauth2/index.mjs +3 -3
- package/dist/{oidc-provider-Bj_V8yIY.mjs → oidc-provider-Dx4WDdQk.mjs} +6 -3
- package/dist/{one-tap-RrSKTQfM.mjs → one-tap-CPlglews.mjs} +1 -1
- package/dist/{open-api-sdGaJ0Cz.mjs → open-api-C33sH63J.mjs} +1 -1
- package/dist/{organization-BL87gz3V.mjs → organization-BsVZQpxC.mjs} +3 -22
- package/dist/plugins/access/index.d.mts +2 -2
- package/dist/plugins/admin/access/index.d.mts +42 -45
- package/dist/plugins/admin/index.d.mts +25 -6
- package/dist/plugins/admin/index.mjs +4 -4
- package/dist/plugins/anonymous/index.d.mts +6 -5
- package/dist/plugins/anonymous/index.mjs +4 -4
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.mts +6 -5
- package/dist/plugins/custom-session/index.mjs +3 -3
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.mjs +2 -2
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.mjs +4 -4
- package/dist/plugins/generic-oauth/index.d.mts +7 -6
- package/dist/plugins/generic-oauth/index.mjs +4 -4
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +4 -4
- package/dist/plugins/index.d.mts +26 -29
- package/dist/plugins/index.mjs +19 -19
- package/dist/plugins/jwt/index.d.mts +6 -7
- package/dist/plugins/jwt/index.mjs +4 -4
- package/dist/plugins/magic-link/index.d.mts +1 -1
- package/dist/plugins/magic-link/index.mjs +4 -4
- package/dist/plugins/multi-session/index.d.mts +2 -2
- package/dist/plugins/multi-session/index.mjs +4 -4
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +4 -4
- package/dist/plugins/oidc-provider/index.d.mts +25 -28
- package/dist/plugins/oidc-provider/index.mjs +5 -5
- package/dist/plugins/one-tap/index.d.mts +1 -1
- package/dist/plugins/one-tap/index.mjs +4 -4
- package/dist/plugins/one-time-token/index.d.mts +7 -6
- package/dist/plugins/one-time-token/index.mjs +19 -19
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.mjs +4 -4
- package/dist/plugins/organization/access/index.d.mts +25 -28
- package/dist/plugins/organization/index.d.mts +25 -28
- package/dist/plugins/organization/index.mjs +4 -4
- package/dist/plugins/phone-number/index.d.mts +6 -5
- package/dist/plugins/phone-number/index.mjs +3 -3
- package/dist/plugins/siwe/index.d.mts +6 -5
- package/dist/plugins/siwe/index.mjs +4 -4
- package/dist/plugins/two-factor/index.d.mts +7 -6
- package/dist/plugins/two-factor/index.mjs +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.mjs +4 -4
- package/dist/{plugins-KJX8_wM4.mjs → plugins-Bgc_0YsW.mjs} +12 -8
- package/dist/{plugins-ClXJF1tD.d.mts → plugins-SfZpwDiz.d.mts} +1 -1
- package/dist/{promise-B9Mgup-x.mjs → promise-C9ABpfHK.mjs} +1 -2
- package/dist/{siwe-Z-Dh181B.mjs → siwe-D4lyacqA.mjs} +1 -1
- package/dist/test-utils/index.d.mts +11639 -34
- package/dist/test-utils/index.mjs +24 -24
- package/dist/types/index.d.mts +5 -4
- package/dist/{username-CdqIK2bY.mjs → username-CxPDW9ty.mjs} +1 -1
- package/package.json +49 -47
- package/dist/index-5_YIhDIp.d.mts +0 -226
- package/dist/index-BEGcCYiE.d.mts +0 -37
- package/dist/index-BE_eABaa.d.mts +0 -31
- package/dist/index-B_kk6DT-.d.mts +0 -238
- package/dist/index-CyyfSaZ_.d.mts +0 -115
- package/dist/index-D-Mj2ulL.d.mts +0 -602
- package/dist/index-D-TY1MQ6.d.mts +0 -94
- package/dist/index-DKwYzmM8.d.mts +0 -206
- package/dist/index-DN-gBurh.d.mts +0 -42
- package/dist/index-G6KSgyww.d.mts +0 -500
- package/dist/index-JvBDcp_w.d.mts +0 -24
- package/dist/index-f88KMXPN.d.mts +0 -29
- package/dist/index-fj43kZq3.d.mts +0 -441
- package/dist/index-gmDk7lt-.d.mts +0 -73
- package/dist/index-zDc06B1e.d.mts +0 -3662
- package/dist/server-xLuaTNNF.mjs +0 -20940
- package/dist/state-M2NfiHag.d.mts +0 -25
- /package/dist/{bun-sqlite-dialect-2R9nCsVF.mjs → bun-sqlite-dialect-C3P_ISb5.mjs} +0 -0
- /package/dist/{helper-DU33OcfW.d.mts → helper-DFzV6jvx.d.mts} +0 -0
- /package/dist/{node-sqlite-dialect-CdC7L-ji.mjs → node-sqlite-dialect-D6w8Ekdz.mjs} +0 -0
- /package/dist/{types-CRiHq5rJ.d.mts → types-CEepZ-RG.d.mts} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../types-
|
|
3
|
-
import { u as Prettify } from "../helper-
|
|
4
|
-
import "../
|
|
1
|
+
import { $t as AdapterSchemaCreation, an as Where$1, in as TransactionAdapter } from "../index-BTk-wfTL.mjs";
|
|
2
|
+
import "../types-CEepZ-RG.mjs";
|
|
3
|
+
import { u as Prettify } from "../helper-DFzV6jvx.mjs";
|
|
4
|
+
import "../index-D8MBzSjs.mjs";
|
|
5
|
+
import "../plugins-SfZpwDiz.mjs";
|
|
5
6
|
import { BetterAuthOptions } from "@better-auth/core";
|
|
6
|
-
import * as
|
|
7
|
+
import * as _better_auth_core_db23 from "@better-auth/core/db";
|
|
7
8
|
import { BetterAuthDBSchema, DBFieldAttribute } from "@better-auth/core/db";
|
|
8
9
|
import { CustomAdapter as CustomAdapter$1, DBAdapter, DBAdapterFactoryConfig, JoinConfig } from "@better-auth/core/db/adapter";
|
|
9
10
|
export * from "@better-auth/core/db/adapter";
|
|
@@ -53,7 +54,7 @@ declare const initGetFieldAttributes: ({
|
|
|
53
54
|
}: {
|
|
54
55
|
model: string;
|
|
55
56
|
field: string;
|
|
56
|
-
}) =>
|
|
57
|
+
}) => _better_auth_core_db23.DBFieldAttribute<_better_auth_core_db23.DBFieldType>;
|
|
57
58
|
//#endregion
|
|
58
59
|
//#region src/adapters/adapter-factory/get-field-name.d.ts
|
|
59
60
|
declare const initGetFieldName: ({
|
|
@@ -95,8 +96,8 @@ declare const initGetIdField: ({
|
|
|
95
96
|
forceAllowId?: boolean;
|
|
96
97
|
}) => {
|
|
97
98
|
transform: {
|
|
98
|
-
input: (value:
|
|
99
|
-
output: (value:
|
|
99
|
+
input: (value: _better_auth_core_db23.DBPrimitive) => string | number | true | Date | unknown[] | Record<string, unknown> | undefined;
|
|
100
|
+
output: (value: _better_auth_core_db23.DBPrimitive) => string | undefined;
|
|
100
101
|
};
|
|
101
102
|
defaultValue?: (() => string | false | undefined) | undefined;
|
|
102
103
|
type: "string" | "number";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as KyselyDatabaseType } from "../../types-
|
|
1
|
+
import { t as KyselyDatabaseType } from "../../types-CEepZ-RG.mjs";
|
|
2
2
|
import { BetterAuthOptions } from "@better-auth/core";
|
|
3
3
|
import { Kysely } from "kysely";
|
|
4
4
|
import { DBAdapter, DBAdapterDebugLogOption } from "@better-auth/core/db/adapter";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getKyselyDatabaseType, t as createKyselyAdapter } from "../../dialect-
|
|
1
|
+
import { n as getKyselyDatabaseType, t as createKyselyAdapter } from "../../dialect-D9ZUZA4J.mjs";
|
|
2
2
|
import "../../get-model-name-D4DUV7S2.mjs";
|
|
3
3
|
import "../../utils-DBbaShi0.mjs";
|
|
4
4
|
import "../../crypto-BQxYXGGX.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as parseUserOutput, t as mergeSchema, u as getDate } from "./schema-CSB7dlK0.mjs";
|
|
2
|
-
import { t as APIError } from "./api-
|
|
2
|
+
import { t as APIError } from "./api-q2sbQ7PT.mjs";
|
|
3
3
|
import { c as setSessionCookie, n as deleteSessionCookie } from "./cookies-D_dksn7B.mjs";
|
|
4
4
|
import { r as getSessionFromCtx } from "./session-CgfX4vv1.mjs";
|
|
5
5
|
import { t as hasPermission } from "./has-permission-DN8I_Icv.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as generateId } from "./utils-DBbaShi0.mjs";
|
|
2
2
|
import { t as mergeSchema } from "./schema-CSB7dlK0.mjs";
|
|
3
|
-
import { t as APIError } from "./api-
|
|
3
|
+
import { t as APIError } from "./api-q2sbQ7PT.mjs";
|
|
4
4
|
import { c as setSessionCookie, l as parseSetCookieHeader } from "./cookies-D_dksn7B.mjs";
|
|
5
5
|
import { r as getSessionFromCtx } from "./session-CgfX4vv1.mjs";
|
|
6
6
|
import { defineErrorCodes } from "@better-auth/core/utils";
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { $ as createEmailVerificationToken, A as deleteUser, B as getSessionFromCtx, C as createAuthEndpoint, D as router, E as optionsMiddleware, F as signOut, G as revokeSessions, H as requestOnlySessionMiddleware, I as signInEmail, J as requestPasswordReset, K as sensitiveSessionMiddleware, L as signInSocial, M as setPassword, N as updateUser, O as changeEmail, P as signUpEmail, Q as error, R as freshSessionMiddleware, S as checkEndpointConflicts, T as getEndpoints, U as revokeOtherSessions, V as listSessions, W as revokeSession, X as resetPassword, Y as requestPasswordResetCallback, Z as ok, at as getAccessToken, b as AuthEndpoint, ct as refreshToken, dt as originCheckMiddleware, et as sendVerificationEmail, ft as getOAuthState, it as accountInfo, j as deleteUserCallback, k as changePassword, lt as unlinkAccount, nt as verifyEmail, ot as linkSocialAccount, pt as getIp, q as sessionMiddleware, rt as callbackOAuth, st as listUserAccounts, tt as sendVerificationEmailFn, ut as originCheck, w as createAuthMiddleware, x as AuthMiddleware, y as APIError, z as getSession } from "../index-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../helper-
|
|
4
|
-
import "../
|
|
1
|
+
import { $ as createEmailVerificationToken, A as deleteUser, B as getSessionFromCtx, C as createAuthEndpoint, D as router, E as optionsMiddleware, F as signOut, G as revokeSessions, H as requestOnlySessionMiddleware, I as signInEmail, J as requestPasswordReset, K as sensitiveSessionMiddleware, L as signInSocial, M as setPassword, N as updateUser, O as changeEmail, P as signUpEmail, Q as error, R as freshSessionMiddleware, S as checkEndpointConflicts, T as getEndpoints, U as revokeOtherSessions, V as listSessions, W as revokeSession, X as resetPassword, Y as requestPasswordResetCallback, Z as ok, at as getAccessToken, b as AuthEndpoint, ct as refreshToken, dt as originCheckMiddleware, et as sendVerificationEmail, ft as getOAuthState, it as accountInfo, j as deleteUserCallback, k as changePassword, lt as unlinkAccount, nt as verifyEmail, ot as linkSocialAccount, pt as getIp, q as sessionMiddleware, rt as callbackOAuth, st as listUserAccounts, tt as sendVerificationEmailFn, ut as originCheck, w as createAuthMiddleware, x as AuthMiddleware, y as APIError, z as getSession } from "../index-BTk-wfTL.mjs";
|
|
2
|
+
import "../types-CEepZ-RG.mjs";
|
|
3
|
+
import "../helper-DFzV6jvx.mjs";
|
|
4
|
+
import "../index-D8MBzSjs.mjs";
|
|
5
|
+
import "../plugins-SfZpwDiz.mjs";
|
|
5
6
|
export { APIError, AuthEndpoint, AuthMiddleware, accountInfo, callbackOAuth, changeEmail, changePassword, checkEndpointConflicts, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, error, freshSessionMiddleware, getAccessToken, getEndpoints, getIp, getOAuthState, getSession, getSessionFromCtx, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, refreshToken, requestOnlySessionMiddleware, requestPasswordReset, requestPasswordResetCallback, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sensitiveSessionMiddleware, sessionMiddleware, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../dialect-
|
|
1
|
+
import "../dialect-D9ZUZA4J.mjs";
|
|
2
2
|
import "../get-model-name-D4DUV7S2.mjs";
|
|
3
|
-
import "../get-migration-
|
|
3
|
+
import "../get-migration-wMpq_Lmw.mjs";
|
|
4
4
|
import { a as getOAuthState } from "../utils-DBbaShi0.mjs";
|
|
5
5
|
import "../crypto-BQxYXGGX.mjs";
|
|
6
6
|
import "../jwt-DzuIBp7t.mjs";
|
|
@@ -9,7 +9,7 @@ import "../schema-CSB7dlK0.mjs";
|
|
|
9
9
|
import { t as getIp } from "../get-request-ip-RYTz2Uba.mjs";
|
|
10
10
|
import "../json-_HMgPUVh.mjs";
|
|
11
11
|
import "../url-BLNRhCPO.mjs";
|
|
12
|
-
import { A as getAccessToken, C as createEmailVerificationToken, D as callbackOAuth, E as verifyEmail, L as originCheck, M as listUserAccounts, N as refreshToken, P as unlinkAccount, R as originCheckMiddleware, S as error, T as sendVerificationEmailFn, _ as signInSocial, a as getEndpoints, b as resetPassword, c as changeEmail, d as deleteUserCallback, f as setPassword, g as signInEmail, h as signOut, i as createAuthMiddleware, j as linkSocialAccount, k as accountInfo, l as changePassword, m as signUpEmail, n as checkEndpointConflicts, o as optionsMiddleware, p as updateUser, r as createAuthEndpoint, s as router, t as APIError, u as deleteUser, v as requestPasswordReset, w as sendVerificationEmail, x as ok, y as requestPasswordResetCallback } from "../api-
|
|
12
|
+
import { A as getAccessToken, C as createEmailVerificationToken, D as callbackOAuth, E as verifyEmail, L as originCheck, M as listUserAccounts, N as refreshToken, P as unlinkAccount, R as originCheckMiddleware, S as error, T as sendVerificationEmailFn, _ as signInSocial, a as getEndpoints, b as resetPassword, c as changeEmail, d as deleteUserCallback, f as setPassword, g as signInEmail, h as signOut, i as createAuthMiddleware, j as linkSocialAccount, k as accountInfo, l as changePassword, m as signUpEmail, n as checkEndpointConflicts, o as optionsMiddleware, p as updateUser, r as createAuthEndpoint, s as router, t as APIError, u as deleteUser, v as requestPasswordReset, w as sendVerificationEmail, x as ok, y as requestPasswordResetCallback } from "../api-q2sbQ7PT.mjs";
|
|
13
13
|
import "../cookies-D_dksn7B.mjs";
|
|
14
14
|
import { a as requestOnlySessionMiddleware, c as revokeSessions, i as listSessions, l as sensitiveSessionMiddleware, n as getSession, o as revokeOtherSessions, r as getSessionFromCtx, s as revokeSession, t as freshSessionMiddleware, u as sessionMiddleware } from "../session-CgfX4vv1.mjs";
|
|
15
15
|
|
|
@@ -1821,12 +1821,13 @@ function redirectCallback(ctx, callbackURL, query) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
const requestPasswordReset = createAuthEndpoint("/request-password-reset", {
|
|
1823
1823
|
method: "POST",
|
|
1824
|
+
operationId: "forgetPassword",
|
|
1824
1825
|
body: z.object({
|
|
1825
1826
|
email: z.email().meta({ description: "The email address of the user to send a password reset email to" }),
|
|
1826
1827
|
redirectTo: z.string().meta({ description: "The URL to redirect the user to reset their password. If the token isn't valid or expired, it'll be redirected with a query parameter `?error=INVALID_TOKEN`. If the token is valid, it'll be redirected with a query parameter `?token=VALID_TOKEN" }).optional()
|
|
1827
1828
|
}),
|
|
1828
1829
|
metadata: { openapi: {
|
|
1829
|
-
operationId: "
|
|
1830
|
+
operationId: "forgetPassword",
|
|
1830
1831
|
description: "Send a password reset email to the user",
|
|
1831
1832
|
responses: { "200": {
|
|
1832
1833
|
description: "Success",
|
|
@@ -2463,8 +2464,7 @@ const updateUser = () => createAuthEndpoint("/update-user", {
|
|
|
2463
2464
|
},
|
|
2464
2465
|
image: {
|
|
2465
2466
|
type: "string",
|
|
2466
|
-
description: "The image of the user"
|
|
2467
|
-
nullable: true
|
|
2467
|
+
description: "The image of the user"
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
2470
|
} } } },
|
package/dist/auth/minimal.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { o as Auth } from "../index-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../helper-
|
|
4
|
-
import "../
|
|
1
|
+
import { o as Auth } from "../index-BTk-wfTL.mjs";
|
|
2
|
+
import "../types-CEepZ-RG.mjs";
|
|
3
|
+
import "../helper-DFzV6jvx.mjs";
|
|
4
|
+
import "../index-D8MBzSjs.mjs";
|
|
5
|
+
import "../plugins-SfZpwDiz.mjs";
|
|
5
6
|
import { BetterAuthOptions } from "@better-auth/core";
|
|
6
7
|
|
|
7
8
|
//#region src/auth/minimal.d.ts
|
package/dist/auth/minimal.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../dialect-
|
|
1
|
+
import "../dialect-D9ZUZA4J.mjs";
|
|
2
2
|
import "../get-model-name-D4DUV7S2.mjs";
|
|
3
|
-
import { d as getBaseAdapter } from "../get-migration-
|
|
3
|
+
import { d as getBaseAdapter } from "../get-migration-wMpq_Lmw.mjs";
|
|
4
4
|
import "../utils-DBbaShi0.mjs";
|
|
5
5
|
import "../crypto-BQxYXGGX.mjs";
|
|
6
6
|
import "../jwt-DzuIBp7t.mjs";
|
|
@@ -9,10 +9,10 @@ import "../schema-CSB7dlK0.mjs";
|
|
|
9
9
|
import "../get-request-ip-RYTz2Uba.mjs";
|
|
10
10
|
import "../json-_HMgPUVh.mjs";
|
|
11
11
|
import "../url-BLNRhCPO.mjs";
|
|
12
|
-
import "../api-
|
|
12
|
+
import "../api-q2sbQ7PT.mjs";
|
|
13
13
|
import "../cookies-D_dksn7B.mjs";
|
|
14
14
|
import "../session-CgfX4vv1.mjs";
|
|
15
|
-
import { n as createAuthContext, t as createBetterAuth } from "../base-
|
|
15
|
+
import { n as createAuthContext, t as createBetterAuth } from "../base-CPOjsixh.mjs";
|
|
16
16
|
import "../password-DBH2q5D6.mjs";
|
|
17
17
|
import { BetterAuthError } from "@better-auth/core/error";
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as getKyselyDatabaseType } from "./dialect-
|
|
2
|
-
import { t as getMigrations, u as getAdapter } from "./get-migration-
|
|
3
|
-
import { n as createAuthContext, t as createBetterAuth } from "./base-
|
|
1
|
+
import { n as getKyselyDatabaseType } from "./dialect-D9ZUZA4J.mjs";
|
|
2
|
+
import { t as getMigrations, u as getAdapter } from "./get-migration-wMpq_Lmw.mjs";
|
|
3
|
+
import { n as createAuthContext, t as createBetterAuth } from "./base-CPOjsixh.mjs";
|
|
4
4
|
import { BetterAuthError } from "@better-auth/core/error";
|
|
5
5
|
|
|
6
6
|
//#region src/context/init.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as getAuthTables } from "./get-model-name-D4DUV7S2.mjs";
|
|
2
|
-
import { a as createInternalAdapter } from "./get-migration-
|
|
2
|
+
import { a as createInternalAdapter } from "./get-migration-wMpq_Lmw.mjs";
|
|
3
3
|
import { t as generateId } from "./utils-DBbaShi0.mjs";
|
|
4
4
|
import { a as verifyPassword, i as hashPassword } from "./crypto-BQxYXGGX.mjs";
|
|
5
5
|
import { r as getOrigin, t as getBaseURL } from "./url-BLNRhCPO.mjs";
|
|
6
|
-
import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-
|
|
6
|
+
import { a as getEndpoints, n as checkEndpointConflicts, s as router } from "./api-q2sbQ7PT.mjs";
|
|
7
7
|
import { i as getCookies, t as createCookieGetter } from "./cookies-D_dksn7B.mjs";
|
|
8
8
|
import { t as checkPassword } from "./password-DBH2q5D6.mjs";
|
|
9
9
|
import { runWithAdapter } from "@better-auth/core/context";
|
|
@@ -10,40 +10,25 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
10
10
|
var __commonJS = (cb, mod) => function() {
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
|
-
var __export = (all
|
|
13
|
+
var __export = (all) => {
|
|
14
14
|
let target = {};
|
|
15
|
-
for (var name in all) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (symbols) {
|
|
22
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
|
-
}
|
|
15
|
+
for (var name in all) __defProp(target, name, {
|
|
16
|
+
get: all[name],
|
|
17
|
+
enumerable: true
|
|
18
|
+
});
|
|
24
19
|
return target;
|
|
25
20
|
};
|
|
26
21
|
var __copyProps = (to, from, except, desc) => {
|
|
27
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
23
|
+
key = keys[i];
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
25
|
+
get: ((k) => from[k]).bind(null, key),
|
|
26
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
27
|
+
});
|
|
37
28
|
}
|
|
38
29
|
return to;
|
|
39
30
|
};
|
|
40
|
-
var __reExport = (target, mod, secondTarget,
|
|
41
|
-
if (symbols) {
|
|
42
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
43
|
-
secondTarget && __defProp(secondTarget, Symbol.toStringTag, { value: "Module" });
|
|
44
|
-
}
|
|
45
|
-
__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default");
|
|
46
|
-
};
|
|
31
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
47
32
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
48
33
|
value: mod,
|
|
49
34
|
enumerable: true
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { At as
|
|
2
|
-
import "../types-
|
|
3
|
-
import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../helper-
|
|
4
|
-
import "../
|
|
5
|
-
import
|
|
6
|
-
import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-Ck6mqAGv.mjs";
|
|
1
|
+
import { At as BroadcastMessage, Ct as OnlineManager, Dt as kFocusManager, Et as FocusManager, Mt as kBroadcastChannel, Ot as BroadcastChannel, St as OnlineListener, Tt as FocusListener, _n as InferSessionFromClient, _t as AuthClient, bn as SessionQueryParams, bt as createSessionRefreshManager, cn as BetterAuthClientPlugin, dn as ClientStore, fn as InferActions, gn as InferPluginsFromClient, gt as Primitive, hn as InferErrorCodes, ht as InferPlugin, jt as getGlobalBroadcastChannel, kt as BroadcastListener, ln as ClientAtomListener, mn as InferClientAPI, mt as InferAuth, on as AtomListener, pn as InferAdditionalFromClient, sn as BetterAuthClientOptions, un as ClientOptions, vn as InferUserFromClient, vt as createAuthClient, wt as kOnlineManager, xn as Store, xt as useAuthQuery, yn as IsSignal, yt as SessionRefreshOptions } from "../index-BTk-wfTL.mjs";
|
|
2
|
+
import "../types-CEepZ-RG.mjs";
|
|
3
|
+
import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../helper-DFzV6jvx.mjs";
|
|
4
|
+
import { a as Role, c as Subset, i as AccessControl, n as createAccessControl, o as Statements, r as role, s as SubArray, t as AuthorizeResponse } from "../index-D8MBzSjs.mjs";
|
|
5
|
+
import "../plugins-SfZpwDiz.mjs";
|
|
7
6
|
export * from "@better-auth/core/db";
|
|
8
7
|
export * from "nanostores";
|
|
9
8
|
export * from "@better-fetch/fetch";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../types-
|
|
3
|
-
import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-
|
|
4
|
-
import "../../
|
|
1
|
+
import { bn as SessionQueryParams, fn as InferActions, hn as InferErrorCodes, mn as InferClientAPI, yn as IsSignal } from "../../index-BTk-wfTL.mjs";
|
|
2
|
+
import "../../types-CEepZ-RG.mjs";
|
|
3
|
+
import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DFzV6jvx.mjs";
|
|
4
|
+
import "../../index-D8MBzSjs.mjs";
|
|
5
|
+
import "../../plugins-SfZpwDiz.mjs";
|
|
5
6
|
import { BetterAuthClientOptions, BetterAuthClientPlugin } from "@better-auth/core";
|
|
6
7
|
import { BASE_ERROR_CODES } from "@better-auth/core/error";
|
|
7
|
-
import * as
|
|
8
|
+
import * as nanostores2 from "nanostores";
|
|
8
9
|
import { Store, StoreValue } from "nanostores";
|
|
9
|
-
import * as
|
|
10
|
+
import * as _better_fetch_fetch67 from "@better-fetch/fetch";
|
|
10
11
|
import { BetterFetchError } from "@better-fetch/fetch";
|
|
11
12
|
import { DependencyList } from "@lynx-js/react";
|
|
12
13
|
export * from "nanostores";
|
|
@@ -95,27 +96,27 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
|
|
|
95
96
|
error: null;
|
|
96
97
|
} ? S : Res : never>;
|
|
97
98
|
};
|
|
98
|
-
$fetch:
|
|
99
|
-
plugins: (
|
|
99
|
+
$fetch: _better_fetch_fetch67.BetterFetch<{
|
|
100
|
+
plugins: (_better_fetch_fetch67.BetterFetchPlugin | {
|
|
100
101
|
id: string;
|
|
101
102
|
name: string;
|
|
102
103
|
hooks: {
|
|
103
|
-
onSuccess(context:
|
|
104
|
+
onSuccess(context: _better_fetch_fetch67.SuccessContext<any>): void;
|
|
104
105
|
};
|
|
105
106
|
} | {
|
|
106
107
|
id: string;
|
|
107
108
|
name: string;
|
|
108
109
|
hooks: {
|
|
109
|
-
onRequest<T extends Record<string, any>>(context:
|
|
110
|
+
onRequest<T extends Record<string, any>>(context: _better_fetch_fetch67.RequestContext<T>): void;
|
|
110
111
|
};
|
|
111
112
|
} | {
|
|
112
113
|
id: string;
|
|
113
114
|
name: string;
|
|
114
115
|
hooks: {
|
|
115
|
-
onSuccess: ((context:
|
|
116
|
-
onError: ((context:
|
|
117
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
118
|
-
onResponse: ((context:
|
|
116
|
+
onSuccess: ((context: _better_fetch_fetch67.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
117
|
+
onError: ((context: _better_fetch_fetch67.ErrorContext) => Promise<void> | void) | undefined;
|
|
118
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch67.RequestContext<T>) => Promise<_better_fetch_fetch67.RequestContext | void> | _better_fetch_fetch67.RequestContext | void) | undefined;
|
|
119
|
+
onResponse: ((context: _better_fetch_fetch67.ResponseContext) => Promise<Response | void | _better_fetch_fetch67.ResponseContext> | Response | _better_fetch_fetch67.ResponseContext | void) | undefined;
|
|
119
120
|
};
|
|
120
121
|
})[];
|
|
121
122
|
cache?: RequestCache | undefined;
|
|
@@ -125,22 +126,22 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
|
|
|
125
126
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
126
127
|
authorization: "Bearer" | "Basic";
|
|
127
128
|
})) | undefined;
|
|
129
|
+
redirect?: RequestRedirect | undefined;
|
|
128
130
|
credentials?: RequestCredentials;
|
|
129
131
|
integrity?: string | undefined;
|
|
130
132
|
keepalive?: boolean | undefined;
|
|
131
133
|
mode?: RequestMode | undefined;
|
|
132
134
|
priority?: RequestPriority | undefined;
|
|
133
|
-
redirect?: RequestRedirect | undefined;
|
|
134
135
|
referrer?: string | undefined;
|
|
135
136
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
136
137
|
signal?: (AbortSignal | null) | undefined;
|
|
137
138
|
window?: null | undefined;
|
|
138
|
-
onRetry?: ((response:
|
|
139
|
+
onRetry?: ((response: _better_fetch_fetch67.ResponseContext) => Promise<void> | void) | undefined;
|
|
139
140
|
hookOptions?: {
|
|
140
141
|
cloneResponse?: boolean;
|
|
141
142
|
} | undefined;
|
|
142
143
|
timeout?: number | undefined;
|
|
143
|
-
customFetchImpl:
|
|
144
|
+
customFetchImpl: _better_fetch_fetch67.FetchEsque;
|
|
144
145
|
baseURL: string;
|
|
145
146
|
throw?: boolean | undefined;
|
|
146
147
|
auth?: ({
|
|
@@ -160,17 +161,17 @@ declare function createAuthClient<Option extends BetterAuthClientOptions>(option
|
|
|
160
161
|
params?: any;
|
|
161
162
|
duplex?: "full" | "half" | undefined;
|
|
162
163
|
jsonParser: (text: string) => Promise<any> | any;
|
|
163
|
-
retry?:
|
|
164
|
+
retry?: _better_fetch_fetch67.RetryOptions | undefined;
|
|
164
165
|
retryAttempt?: number | undefined;
|
|
165
|
-
output?: (
|
|
166
|
-
errorSchema?:
|
|
166
|
+
output?: (_better_fetch_fetch67.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
167
|
+
errorSchema?: _better_fetch_fetch67.StandardSchemaV1 | undefined;
|
|
167
168
|
disableValidation?: boolean | undefined;
|
|
168
169
|
disableSignal?: boolean | undefined;
|
|
169
170
|
}, unknown, unknown, {}>;
|
|
170
171
|
$store: {
|
|
171
172
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
172
173
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
173
|
-
atoms: Record<string,
|
|
174
|
+
atoms: Record<string, nanostores2.WritableAtom<any>>;
|
|
174
175
|
};
|
|
175
176
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
176
177
|
};
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../types-
|
|
3
|
-
import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-
|
|
4
|
-
import "../../
|
|
5
|
-
import
|
|
6
|
-
import "../../index-
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import "../../index-
|
|
11
|
-
import "../../index-
|
|
12
|
-
import "../../index-
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import "../../index-
|
|
17
|
-
import "../../
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import "../../index-
|
|
22
|
-
import "../../index-
|
|
23
|
-
import { n as
|
|
24
|
-
import "../../index-
|
|
25
|
-
import { n as
|
|
26
|
-
import
|
|
27
|
-
import { a as TwoFactorProvider, c as TOTPOptions, d as otp2fa, f as BackupCodeOptions, g as verifyBackupCode, h as getBackupCodes, i as TwoFactorOptions, l as totp2fa, m as generateBackupCodes, n as twoFactorClient, o as TwoFactorTable, p as backupCode2fa, s as UserWithTwoFactor, u as OTPOptions } from "../../index-G6KSgyww.mjs";
|
|
28
|
-
import { n as username } from "../../index-BH0dV2Ob.mjs";
|
|
29
|
-
import * as _better_auth_core6 from "@better-auth/core";
|
|
1
|
+
import { Un as InferAdditionalFieldsFromPluginOptions, bn as SessionQueryParams, r as BetterAuthOptions$1 } from "../../index-BTk-wfTL.mjs";
|
|
2
|
+
import "../../types-CEepZ-RG.mjs";
|
|
3
|
+
import { a as LiteralNumber, c as OmitId, d as PrettifyDeep, f as Primitive, g as WithoutEmpty, h as UnionToIntersection, i as HasRequiredKeys, l as PreserveJSDoc, m as StripEmptyObjects, n as DeepPartial, o as LiteralString, p as RequiredKeysOf, r as Expand, s as LiteralUnion, t as Awaitable, u as Prettify } from "../../helper-DFzV6jvx.mjs";
|
|
4
|
+
import { a as Role, i as AccessControl, o as Statements } from "../../index-D8MBzSjs.mjs";
|
|
5
|
+
import "../../plugins-SfZpwDiz.mjs";
|
|
6
|
+
import { B as OrganizationOptions, C as Organization, D as Team, T as OrganizationRole, _ as InferTeam, c as OrganizationPlugin, f as InferInvitation, ht as admin, k as TeamMember, m as InferOrganization, p as InferMember, pt as apiKey, tt as oidcProvider, v as Invitation, x as Member } from "../../index-C8eCoB52.mjs";
|
|
7
|
+
import { t as anonymous } from "../../index-BbsJ-RVs.mjs";
|
|
8
|
+
import "../../index-_MGUkN9y.mjs";
|
|
9
|
+
import "../../index-Bn1R6aVZ.mjs";
|
|
10
|
+
import "../../index-d52kDVAg.mjs";
|
|
11
|
+
import { n as deviceAuthorization } from "../../index-DiT4DbMC.mjs";
|
|
12
|
+
import { n as emailOTP } from "../../index-5t2DAD0k.mjs";
|
|
13
|
+
import { r as genericOAuth } from "../../index-CfCxrifw.mjs";
|
|
14
|
+
import "../../index-CrYIJeWc.mjs";
|
|
15
|
+
import { t as jwt } from "../../index-J1rkw6JT.mjs";
|
|
16
|
+
import { n as magicLink } from "../../index-DcYTqy8J.mjs";
|
|
17
|
+
import { t as multiSession } from "../../index-CBe2rvyJ.mjs";
|
|
18
|
+
import "../../index-DmC6Ctb-.mjs";
|
|
19
|
+
import "../../index-DaaVQEvX.mjs";
|
|
20
|
+
import { t as oneTimeToken } from "../../index-DljejjCu.mjs";
|
|
21
|
+
import "../../index-C-qjuMK3.mjs";
|
|
22
|
+
import { t as phoneNumber } from "../../index-B52PH6jU.mjs";
|
|
23
|
+
import { n as siwe } from "../../index-C40qLrfj.mjs";
|
|
24
|
+
import { n as twoFactorClient } from "../../index-UXC1tbRT.mjs";
|
|
25
|
+
import { n as username } from "../../index-DJFTvRYn.mjs";
|
|
26
|
+
import * as _better_auth_core27 from "@better-auth/core";
|
|
30
27
|
import { BetterAuthOptions, BetterAuthPlugin, ClientFetchOption } from "@better-auth/core";
|
|
31
28
|
import { DBFieldAttribute } from "@better-auth/core/db";
|
|
32
29
|
import { JSONWebKeySet } from "jose";
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
30
|
+
import * as nanostores5 from "nanostores";
|
|
31
|
+
import * as _better_fetch_fetch101 from "@better-fetch/fetch";
|
|
35
32
|
import { Auth } from "better-auth";
|
|
36
33
|
|
|
37
34
|
//#region src/plugins/additional-fields/client.d.ts
|
|
@@ -268,7 +265,7 @@ declare const jwtClient: (options?: JwtClientOptions) => {
|
|
|
268
265
|
pathMethods: {
|
|
269
266
|
[x: string]: "GET";
|
|
270
267
|
};
|
|
271
|
-
getActions: ($fetch:
|
|
268
|
+
getActions: ($fetch: _better_fetch_fetch101.BetterFetch) => {
|
|
272
269
|
jwks: (fetchOptions?: any) => Promise<{
|
|
273
270
|
data: null;
|
|
274
271
|
error: {
|
|
@@ -418,10 +415,10 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
|
|
|
418
415
|
}
|
|
419
416
|
declare const oneTapClient: (options: GoogleOneTapOptions) => {
|
|
420
417
|
id: "one-tap";
|
|
421
|
-
getActions: ($fetch:
|
|
418
|
+
getActions: ($fetch: _better_fetch_fetch101.BetterFetch, _: _better_auth_core27.ClientStore) => {
|
|
422
419
|
oneTap: (opts?: GoogleOneTapActionOptions | undefined, fetchOptions?: ClientFetchOption | undefined) => Promise<void>;
|
|
423
420
|
};
|
|
424
|
-
getAtoms($fetch:
|
|
421
|
+
getAtoms($fetch: _better_fetch_fetch101.BetterFetch): {};
|
|
425
422
|
};
|
|
426
423
|
//#endregion
|
|
427
424
|
//#region src/plugins/one-time-token/client.d.ts
|
|
@@ -520,11 +517,32 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
520
517
|
} ? true : false;
|
|
521
518
|
};
|
|
522
519
|
}>;
|
|
523
|
-
getActions: ($fetch:
|
|
520
|
+
getActions: ($fetch: _better_fetch_fetch101.BetterFetch, _$store: _better_auth_core27.ClientStore, co: _better_auth_core27.BetterAuthClientOptions | undefined) => {
|
|
524
521
|
$Infer: {
|
|
525
522
|
ActiveOrganization: CO["teams"] extends {
|
|
526
523
|
enabled: true;
|
|
527
|
-
} ?
|
|
524
|
+
} ? {
|
|
525
|
+
members: InferMember<CO, false>[];
|
|
526
|
+
invitations: InferInvitation<CO>[];
|
|
527
|
+
teams: InferTeam<CO, false>[];
|
|
528
|
+
} & ({
|
|
529
|
+
id: string;
|
|
530
|
+
name: string;
|
|
531
|
+
slug: string;
|
|
532
|
+
createdAt: Date;
|
|
533
|
+
logo?: string | null | undefined;
|
|
534
|
+
metadata?: any;
|
|
535
|
+
} & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T ? { [K in keyof T]: T[K] } : never) : {
|
|
536
|
+
members: InferMember<CO, false>[];
|
|
537
|
+
invitations: InferInvitation<CO, false>[];
|
|
538
|
+
} & ({
|
|
539
|
+
id: string;
|
|
540
|
+
name: string;
|
|
541
|
+
slug: string;
|
|
542
|
+
createdAt: Date;
|
|
543
|
+
logo?: string | null | undefined;
|
|
544
|
+
metadata?: any;
|
|
545
|
+
} & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never);
|
|
528
546
|
Organization: InferOrganization<CO, false>;
|
|
529
547
|
Invitation: InferInvitation<CO, false>;
|
|
530
548
|
Member: InferMember<CO, false>;
|
|
@@ -583,37 +601,47 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
583
601
|
}) => boolean;
|
|
584
602
|
};
|
|
585
603
|
};
|
|
586
|
-
getAtoms: ($fetch:
|
|
587
|
-
$listOrg:
|
|
588
|
-
$activeOrgSignal:
|
|
589
|
-
$activeMemberSignal:
|
|
590
|
-
$activeMemberRoleSignal:
|
|
591
|
-
activeOrganization:
|
|
592
|
-
data: Prettify<
|
|
593
|
-
|
|
604
|
+
getAtoms: ($fetch: _better_fetch_fetch101.BetterFetch) => {
|
|
605
|
+
$listOrg: nanostores5.PreinitializedWritableAtom<boolean> & object;
|
|
606
|
+
$activeOrgSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
|
|
607
|
+
$activeMemberSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
|
|
608
|
+
$activeMemberRoleSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
|
|
609
|
+
activeOrganization: nanostores5.PreinitializedWritableAtom<{
|
|
610
|
+
data: Prettify<({
|
|
611
|
+
id: string;
|
|
612
|
+
name: string;
|
|
613
|
+
slug: string;
|
|
614
|
+
createdAt: Date;
|
|
615
|
+
logo?: string | null | undefined;
|
|
616
|
+
metadata?: any;
|
|
617
|
+
} & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T ? { [K in keyof T]: T[K] } : never) & {
|
|
618
|
+
members: InferMember<CO, false>[];
|
|
619
|
+
invitations: InferInvitation<CO, false>[];
|
|
620
|
+
}> | null;
|
|
621
|
+
error: null | _better_fetch_fetch101.BetterFetchError;
|
|
594
622
|
isPending: boolean;
|
|
595
623
|
isRefetching: boolean;
|
|
596
624
|
refetch: (queryParams?: {
|
|
597
625
|
query?: SessionQueryParams;
|
|
598
626
|
} | undefined) => Promise<void>;
|
|
599
627
|
}> & object;
|
|
600
|
-
listOrganizations:
|
|
601
|
-
data:
|
|
628
|
+
listOrganizations: nanostores5.PreinitializedWritableAtom<{
|
|
629
|
+
data: ({
|
|
602
630
|
id: string;
|
|
603
631
|
name: string;
|
|
604
632
|
slug: string;
|
|
605
633
|
createdAt: Date;
|
|
606
634
|
logo?: string | null | undefined;
|
|
607
635
|
metadata?: any;
|
|
608
|
-
} & InferAdditionalFieldsFromPluginOptions<"organization",
|
|
609
|
-
error: null |
|
|
636
|
+
} & InferAdditionalFieldsFromPluginOptions<"organization", CO, false> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never)[] | null;
|
|
637
|
+
error: null | _better_fetch_fetch101.BetterFetchError;
|
|
610
638
|
isPending: boolean;
|
|
611
639
|
isRefetching: boolean;
|
|
612
640
|
refetch: (queryParams?: {
|
|
613
641
|
query?: SessionQueryParams;
|
|
614
642
|
} | undefined) => Promise<void>;
|
|
615
643
|
}> & object;
|
|
616
|
-
activeMember:
|
|
644
|
+
activeMember: nanostores5.PreinitializedWritableAtom<{
|
|
617
645
|
data: {
|
|
618
646
|
id: string;
|
|
619
647
|
organizationId: string;
|
|
@@ -621,18 +649,18 @@ declare const organizationClient: <CO extends OrganizationClientOptions>(options
|
|
|
621
649
|
role: string;
|
|
622
650
|
createdAt: Date;
|
|
623
651
|
} | null;
|
|
624
|
-
error: null |
|
|
652
|
+
error: null | _better_fetch_fetch101.BetterFetchError;
|
|
625
653
|
isPending: boolean;
|
|
626
654
|
isRefetching: boolean;
|
|
627
655
|
refetch: (queryParams?: {
|
|
628
656
|
query?: SessionQueryParams;
|
|
629
657
|
} | undefined) => Promise<void>;
|
|
630
658
|
}> & object;
|
|
631
|
-
activeMemberRole:
|
|
659
|
+
activeMemberRole: nanostores5.PreinitializedWritableAtom<{
|
|
632
660
|
data: {
|
|
633
661
|
role: string;
|
|
634
662
|
} | null;
|
|
635
|
-
error: null |
|
|
663
|
+
error: null | _better_fetch_fetch101.BetterFetchError;
|
|
636
664
|
isPending: boolean;
|
|
637
665
|
isRefetching: boolean;
|
|
638
666
|
refetch: (queryParams?: {
|
|
@@ -753,7 +781,9 @@ declare const inferOrgAdditionalFields: <O$1 extends {
|
|
|
753
781
|
fields?: { [key in keyof Omit<OrganizationRole, "id">]?: string };
|
|
754
782
|
additionalFields?: { [key in string]: DBFieldAttribute };
|
|
755
783
|
};
|
|
756
|
-
} | undefined ?
|
|
784
|
+
} | undefined ? { [K in keyof S_1]: S_1[K] extends {
|
|
785
|
+
additionalFields: infer AF;
|
|
786
|
+
} ? S_1[K] : undefined } : undefined : undefined : undefined : S$1;
|
|
757
787
|
//#endregion
|
|
758
788
|
//#region src/plugins/phone-number/client.d.ts
|
|
759
789
|
declare const phoneNumberClient: () => {
|
|
@@ -793,4 +823,4 @@ declare const InferServerPlugin: <AuthOrOption extends BetterAuthOptions | {
|
|
|
793
823
|
} ? P : never : never;
|
|
794
824
|
};
|
|
795
825
|
//#endregion
|
|
796
|
-
export {
|
|
826
|
+
export { ApiKeyClientPlugin, Awaitable, DeepPartial, Expand, GoogleOneTapActionOptions, GoogleOneTapOptions, HasRequiredKeys, InferServerPlugin, LastLoginMethodClientConfig, LiteralNumber, LiteralString, LiteralUnion, OidcClientPlugin, OmitId, PreserveJSDoc, Prettify, PrettifyDeep, Primitive, RequiredKeysOf, StripEmptyObjects, UnionToIntersection, WithoutEmpty, adminClient, anonymousClient, apiKeyClient, clientSideHasPermission, customSessionClient, deviceAuthorizationClient, emailOTPClient, genericOAuthClient, inferAdditionalFields, inferOrgAdditionalFields, jwtClient, lastLoginMethodClient, magicLinkClient, multiSessionClient, oidcClient, oneTapClient, oneTimeTokenClient, organizationClient, phoneNumberClient, siweClient, twoFactorClient, usernameClient };
|