better-auth 1.2.8-beta.5 → 1.2.8-beta.6
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 +2 -3
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -3
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -3
- package/dist/adapters/index.d.cts +3 -4
- package/dist/adapters/index.d.mts +3 -4
- package/dist/adapters/index.d.ts +3 -4
- package/dist/adapters/kysely-adapter/index.cjs +1 -1
- package/dist/adapters/kysely-adapter/index.d.cts +2 -3
- package/dist/adapters/kysely-adapter/index.d.mts +2 -3
- package/dist/adapters/kysely-adapter/index.d.ts +2 -3
- package/dist/adapters/kysely-adapter/index.mjs +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +2 -3
- package/dist/adapters/memory-adapter/index.d.mts +2 -3
- package/dist/adapters/memory-adapter/index.d.ts +2 -3
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -3
- package/dist/adapters/prisma-adapter/index.d.mts +2 -3
- package/dist/adapters/prisma-adapter/index.d.ts +2 -3
- package/dist/adapters/test.d.cts +1 -2
- package/dist/adapters/test.d.mts +1 -2
- package/dist/adapters/test.d.ts +1 -2
- package/dist/api/index.cjs +79 -77
- package/dist/api/index.d.cts +1 -2
- package/dist/api/index.d.mts +1 -2
- package/dist/api/index.d.ts +1 -2
- package/dist/api/index.mjs +6 -5
- package/dist/client/index.d.cts +1 -2
- package/dist/client/index.d.mts +1 -2
- package/dist/client/index.d.ts +1 -2
- package/dist/client/plugins/index.d.cts +2 -3
- package/dist/client/plugins/index.d.mts +2 -3
- package/dist/client/plugins/index.d.ts +2 -3
- package/dist/client/react/index.d.cts +1 -2
- package/dist/client/react/index.d.mts +1 -2
- package/dist/client/react/index.d.ts +1 -2
- package/dist/client/solid/index.d.cts +1 -2
- package/dist/client/solid/index.d.mts +1 -2
- package/dist/client/solid/index.d.ts +1 -2
- package/dist/client/svelte/index.d.cts +1 -2
- package/dist/client/svelte/index.d.mts +1 -2
- package/dist/client/svelte/index.d.ts +1 -2
- package/dist/client/vue/index.d.cts +1 -2
- package/dist/client/vue/index.d.mts +1 -2
- package/dist/client/vue/index.d.ts +1 -2
- package/dist/cookies/index.d.cts +1 -2
- package/dist/cookies/index.d.mts +1 -2
- package/dist/cookies/index.d.ts +1 -2
- package/dist/db/index.cjs +2 -2
- package/dist/db/index.d.cts +2 -3
- package/dist/db/index.d.mts +2 -3
- package/dist/db/index.d.ts +2 -3
- package/dist/db/index.mjs +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.mjs +4 -4
- package/dist/integrations/next-js.cjs +3 -3
- package/dist/integrations/next-js.d.cts +1 -2
- package/dist/integrations/next-js.d.mts +1 -2
- package/dist/integrations/next-js.d.ts +1 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +1 -2
- package/dist/integrations/node.d.mts +1 -2
- package/dist/integrations/node.d.ts +1 -2
- package/dist/integrations/react-start.cjs +3 -3
- package/dist/integrations/react-start.d.cts +1 -2
- package/dist/integrations/react-start.d.mts +1 -2
- package/dist/integrations/react-start.d.ts +1 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.d.cts +1 -2
- package/dist/integrations/svelte-kit.d.mts +1 -2
- package/dist/integrations/svelte-kit.d.ts +1 -2
- package/dist/oauth2/index.d.cts +2 -3
- package/dist/oauth2/index.d.mts +2 -3
- package/dist/oauth2/index.d.ts +2 -3
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +3 -4
- package/dist/plugins/admin/index.d.mts +3 -4
- package/dist/plugins/admin/index.d.ts +3 -4
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +7 -6
- package/dist/plugins/anonymous/index.d.cts +10 -2
- package/dist/plugins/anonymous/index.d.mts +10 -2
- package/dist/plugins/anonymous/index.d.ts +10 -2
- package/dist/plugins/anonymous/index.mjs +4 -3
- package/dist/plugins/bearer/index.cjs +3 -3
- package/dist/plugins/bearer/index.d.cts +1 -2
- package/dist/plugins/bearer/index.d.mts +1 -2
- package/dist/plugins/bearer/index.d.ts +1 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -2
- package/dist/plugins/captcha/index.d.mts +1 -2
- package/dist/plugins/captcha/index.d.ts +1 -2
- package/dist/plugins/custom-session/index.cjs +3 -3
- package/dist/plugins/custom-session/index.d.cts +1 -2
- package/dist/plugins/custom-session/index.d.mts +1 -2
- package/dist/plugins/custom-session/index.d.ts +1 -2
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +12 -12
- package/dist/plugins/email-otp/index.d.cts +1 -2
- package/dist/plugins/email-otp/index.d.mts +1 -2
- package/dist/plugins/email-otp/index.d.ts +1 -2
- package/dist/plugins/email-otp/index.mjs +4 -4
- package/dist/plugins/generic-oauth/index.cjs +7 -7
- package/dist/plugins/generic-oauth/index.d.cts +1 -2
- package/dist/plugins/generic-oauth/index.d.mts +1 -2
- package/dist/plugins/generic-oauth/index.d.ts +1 -2
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +21 -21
- package/dist/plugins/index.d.cts +2 -3
- package/dist/plugins/index.d.mts +2 -3
- package/dist/plugins/index.d.ts +2 -3
- package/dist/plugins/index.mjs +5 -5
- package/dist/plugins/jwt/index.cjs +5 -5
- package/dist/plugins/jwt/index.d.cts +1 -2
- package/dist/plugins/jwt/index.d.mts +1 -2
- package/dist/plugins/jwt/index.d.ts +1 -2
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.cjs +6 -6
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.cjs +8 -8
- package/dist/plugins/multi-session/index.d.cts +1 -2
- package/dist/plugins/multi-session/index.d.mts +1 -2
- package/dist/plugins/multi-session/index.d.ts +1 -2
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +5 -5
- package/dist/plugins/oauth-proxy/index.d.cts +1 -2
- package/dist/plugins/oauth-proxy/index.d.mts +1 -2
- package/dist/plugins/oauth-proxy/index.d.ts +1 -2
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +13 -13
- package/dist/plugins/oidc-provider/index.d.cts +1 -2
- package/dist/plugins/oidc-provider/index.d.mts +1 -2
- package/dist/plugins/oidc-provider/index.d.ts +1 -2
- package/dist/plugins/oidc-provider/index.mjs +1 -1
- package/dist/plugins/one-tap/index.cjs +4 -4
- package/dist/plugins/one-tap/index.mjs +3 -3
- package/dist/plugins/one-time-token/index.cjs +5 -5
- package/dist/plugins/one-time-token/index.d.cts +1 -2
- package/dist/plugins/one-time-token/index.d.mts +1 -2
- package/dist/plugins/one-time-token/index.d.ts +1 -2
- package/dist/plugins/one-time-token/index.mjs +2 -2
- package/dist/plugins/open-api/index.cjs +3 -3
- package/dist/plugins/open-api/index.d.cts +1 -2
- package/dist/plugins/open-api/index.d.mts +1 -2
- package/dist/plugins/open-api/index.d.ts +1 -2
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +2 -2
- package/dist/plugins/organization/index.d.cts +2 -2
- package/dist/plugins/organization/index.d.mts +2 -2
- package/dist/plugins/organization/index.d.ts +2 -2
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.cjs +15 -15
- package/dist/plugins/passkey/index.d.cts +1 -2
- package/dist/plugins/passkey/index.d.mts +1 -2
- package/dist/plugins/passkey/index.d.ts +1 -2
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +14 -14
- package/dist/plugins/phone-number/index.d.cts +1 -2
- package/dist/plugins/phone-number/index.d.mts +1 -2
- package/dist/plugins/phone-number/index.d.ts +1 -2
- package/dist/plugins/phone-number/index.mjs +3 -3
- package/dist/plugins/sso/index.cjs +6 -6
- package/dist/plugins/sso/index.d.cts +1 -2
- package/dist/plugins/sso/index.d.mts +1 -2
- package/dist/plugins/sso/index.d.ts +1 -2
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +25 -25
- package/dist/plugins/two-factor/index.d.cts +1 -2
- package/dist/plugins/two-factor/index.d.mts +1 -2
- package/dist/plugins/two-factor/index.d.ts +1 -2
- package/dist/plugins/two-factor/index.mjs +6 -6
- package/dist/plugins/username/index.cjs +10 -10
- package/dist/plugins/username/index.d.cts +1 -2
- package/dist/plugins/username/index.d.mts +1 -2
- package/dist/plugins/username/index.d.ts +1 -2
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/shared/{better-auth.DOJYkooL.d.mts → better-auth.345hEx94.d.cts} +1 -1
- package/dist/shared/{better-auth.DWHYF1zb.d.mts → better-auth.B-fvTvBt.d.mts} +1 -1
- package/dist/shared/{better-auth.DcYHYdSr.mjs → better-auth.B0PuwKEL.mjs} +22 -11
- package/dist/shared/{better-auth.D6n2BM2j.d.cts → better-auth.B0UoRWG9.d.cts} +1 -1
- package/dist/shared/{better-auth.BZRaTIwt.d.ts → better-auth.BEXh0Yfx.d.ts} +1 -1
- package/dist/shared/{better-auth.4AOoWsWt.cjs → better-auth.BJiRPytD.cjs} +0 -9
- package/dist/shared/{better-auth.DH3y_izw.d.cts → better-auth.BZj5bcIv.d.cts} +413 -5
- package/dist/shared/{better-auth.BI9PwjHN.cjs → better-auth.Bp3dnvEl.cjs} +41 -30
- package/dist/shared/{better-auth.hVRuraA_.d.ts → better-auth.C9V-i-W4.d.ts} +1 -1
- package/dist/shared/{better-auth.s9jQKDI8.d.mts → better-auth.CDeExxQS.d.mts} +413 -5
- package/dist/shared/{better-auth.C-pOcaA8.mjs → better-auth.Cd_A6t3-.mjs} +5 -5
- package/dist/shared/{better-auth.Da6_deha.mjs → better-auth.DKF2BM5s.mjs} +0 -9
- package/dist/shared/{better-auth.Dahkdi9Z.d.cts → better-auth.DKdkqLRU.d.mts} +1 -1
- package/dist/shared/{better-auth.BiOsDr1_.d.mts → better-auth.Dp7AeJty.d.mts} +1 -1
- package/dist/shared/{better-auth.bGngF9WG.cjs → better-auth.IF8Wj_xM.cjs} +39 -38
- package/dist/shared/{better-auth.B4GrHyoP.mjs → better-auth.TKj1bZrD.mjs} +3 -2
- package/dist/shared/{better-auth.C71O0JQF.mjs → better-auth.VFdNP2fm.mjs} +137 -9
- package/dist/shared/{better-auth.DEruvHER.d.ts → better-auth.dkazx1HL.d.ts} +413 -5
- package/dist/shared/{better-auth.DZ-QPO4D.d.cts → better-auth.jD93qavQ.d.cts} +1 -1
- package/dist/shared/{better-auth.ogBjk2_R.cjs → better-auth.jkkUo-gB.cjs} +5 -5
- package/dist/shared/{better-auth.DWZaGq-n.d.ts → better-auth.qiXm3ePU.d.ts} +1 -1
- package/dist/shared/{better-auth.DnKeVZ5H.cjs → better-auth.r0iyl8Tx.cjs} +137 -8
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/package.json +15 -16
- package/dist/chunks/bun-sqlite-dialect.cjs +0 -170
- package/dist/chunks/bun-sqlite-dialect.mjs +0 -164
package/dist/api/index.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '../shared/better-auth.CYegVoq1.cjs';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware,
|
|
3
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, b7 as getAccessToken, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware, ba as originCheck, b9 as originCheckMiddleware, b8 as refreshToken, aJ as requestOnlySessionMiddleware, aS as resetPassword, aO as revokeOtherSessions, aM as revokeSession, aN as revokeSessions, aC as router, aV as sendVerificationEmail, aU as sendVerificationEmailFn, aI as sessionMiddleware, aZ as setPassword, aE as signInEmail, aD as signInSocial, aP as signOut, b3 as signUpEmail, b6 as unlinkAccount, aX as updateUser, aW as verifyEmail } from '../shared/better-auth.BZj5bcIv.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.7QibuQ0I.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
|
-
import 'bun:sqlite';
|
|
9
8
|
import 'jose';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '../shared/better-auth.CYegVoq1.mjs';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware,
|
|
3
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, b7 as getAccessToken, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware, ba as originCheck, b9 as originCheckMiddleware, b8 as refreshToken, aJ as requestOnlySessionMiddleware, aS as resetPassword, aO as revokeOtherSessions, aM as revokeSession, aN as revokeSessions, aC as router, aV as sendVerificationEmail, aU as sendVerificationEmailFn, aI as sessionMiddleware, aZ as setPassword, aE as signInEmail, aD as signInSocial, aP as signOut, b3 as signUpEmail, b6 as unlinkAccount, aX as updateUser, aW as verifyEmail } from '../shared/better-auth.CDeExxQS.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.C39-x5Oo.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
|
-
import 'bun:sqlite';
|
|
9
8
|
import 'jose';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '../shared/better-auth.CYegVoq1.js';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware,
|
|
3
|
+
export { d as AuthEndpoint, e as AuthMiddleware, aF as callbackOAuth, b0 as changeEmail, aY as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aT as createEmailVerificationToken, a_ as deleteUser, a$ as deleteUserCallback, b1 as error, aQ as forgetPassword, aR as forgetPasswordCallback, aK as freshSessionMiddleware, b7 as getAccessToken, aB as getEndpoints, aG as getSession, aH as getSessionFromCtx, b5 as linkSocialAccount, aL as listSessions, b4 as listUserAccounts, b2 as ok, o as optionsMiddleware, ba as originCheck, b9 as originCheckMiddleware, b8 as refreshToken, aJ as requestOnlySessionMiddleware, aS as resetPassword, aO as revokeOtherSessions, aM as revokeSession, aN as revokeSessions, aC as router, aV as sendVerificationEmail, aU as sendVerificationEmailFn, aI as sessionMiddleware, aZ as setPassword, aE as signInEmail, aD as signInSocial, aP as signOut, b3 as signUpEmail, b6 as unlinkAccount, aX as updateUser, aW as verifyEmail } from '../shared/better-auth.dkazx1HL.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.CpEzqKmn.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
|
-
import 'bun:sqlite';
|
|
9
8
|
import 'jose';
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as originCheckMiddleware, j as error, k as ok, r as refreshToken,
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx,
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as originCheckMiddleware, j as error, k as ok, m as getAccessToken, r as refreshToken, n as unlinkAccount, p as deleteUserCallback, q as listUserAccounts, t as linkSocialAccount, v as revokeOtherSessions, x as revokeSessions, y as revokeSession, z as forgetPasswordCallback, A as deleteUser, C as setPassword, D as changePassword, E as changeEmail, F as sendVerificationEmail, G as verifyEmail, I as resetPassword, J as forgetPassword, K as signInEmail, L as signOut, M as callbackOAuth, N as signInSocial } from '../shared/better-auth.VFdNP2fm.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, P as optionsMiddleware, o as originCheck, O as requestOnlySessionMiddleware, d as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.VFdNP2fm.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -260,7 +260,7 @@ const signUpEmail = () => createAuthEndpoint(
|
|
|
260
260
|
}
|
|
261
261
|
const session = await ctx.context.internalAdapter.createSession(
|
|
262
262
|
createdUser.id,
|
|
263
|
-
ctx
|
|
263
|
+
ctx
|
|
264
264
|
);
|
|
265
265
|
if (!session) {
|
|
266
266
|
throw new APIError("BAD_REQUEST", {
|
|
@@ -697,7 +697,8 @@ function getEndpoints(ctx, options) {
|
|
|
697
697
|
listUserAccounts,
|
|
698
698
|
deleteUserCallback,
|
|
699
699
|
unlinkAccount,
|
|
700
|
-
refreshToken
|
|
700
|
+
refreshToken,
|
|
701
|
+
getAccessToken
|
|
701
702
|
};
|
|
702
703
|
const endpoints = {
|
|
703
704
|
...baseEndpoints,
|
|
@@ -790,4 +791,4 @@ const router = (ctx, options) => {
|
|
|
790
791
|
});
|
|
791
792
|
};
|
|
792
793
|
|
|
793
|
-
export { callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, getEndpoints, getSession, linkSocialAccount, listSessions, listUserAccounts, ok, originCheckMiddleware, refreshToken, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|
|
794
|
+
export { callbackOAuth, changeEmail, changePassword, createAuthEndpoint, createEmailVerificationToken, deleteUser, deleteUserCallback, error, forgetPassword, forgetPasswordCallback, getAccessToken, getEndpoints, getSession, linkSocialAccount, listSessions, listUserAccounts, ok, originCheckMiddleware, refreshToken, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, setPassword, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateUser, verifyEmail };
|
package/dist/client/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.BZj5bcIv.cjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -14,7 +14,6 @@ import 'jose';
|
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
|
-
import 'bun:sqlite';
|
|
18
17
|
|
|
19
18
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
20
19
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: Atoms[key];
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.CDeExxQS.mjs';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -14,7 +14,6 @@ import 'jose';
|
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
|
-
import 'bun:sqlite';
|
|
18
17
|
|
|
19
18
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
20
19
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: Atoms[key];
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.
|
|
1
|
+
import { j as BASE_ERROR_CODES, B as BetterAuthPlugin } from '../shared/better-auth.dkazx1HL.js';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
|
4
4
|
export * from '@better-fetch/fetch';
|
|
@@ -14,7 +14,6 @@ import 'jose';
|
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-call';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
|
-
import 'bun:sqlite';
|
|
18
17
|
|
|
19
18
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
20
19
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: Atoms[key];
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.cjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.cjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.cjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.cjs';
|
|
14
|
-
import { F as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { F as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.BZj5bcIv.cjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.cjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.cjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.cjs';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.cjs';
|
|
|
20
20
|
import { Store } from '../../types/index.cjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.cjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.cjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.jD93qavQ.cjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.cjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
import 'zod';
|
|
@@ -30,7 +30,6 @@ import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
|
30
30
|
import 'jose';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
33
|
-
import 'bun:sqlite';
|
|
34
33
|
|
|
35
34
|
interface OrganizationClientOptions {
|
|
36
35
|
ac?: AccessControl;
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.mjs';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.mjs';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.mjs';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.mjs';
|
|
14
|
-
import { F as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { F as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.CDeExxQS.mjs';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.mjs';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.mjs';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.mjs';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.mjs';
|
|
|
20
20
|
import { Store } from '../../types/index.mjs';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.mjs';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.mjs';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.B-fvTvBt.mjs';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.mjs';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
import 'zod';
|
|
@@ -30,7 +30,6 @@ import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
|
30
30
|
import 'jose';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
33
|
-
import 'bun:sqlite';
|
|
34
33
|
|
|
35
34
|
interface OrganizationClientOptions {
|
|
36
35
|
ac?: AccessControl;
|
|
@@ -11,7 +11,7 @@ export { twoFactorClient } from '../../plugins/two-factor/index.js';
|
|
|
11
11
|
import { magicLink } from '../../plugins/magic-link/index.js';
|
|
12
12
|
import { phoneNumber } from '../../plugins/phone-number/index.js';
|
|
13
13
|
import { anonymous } from '../../plugins/anonymous/index.js';
|
|
14
|
-
import { F as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.
|
|
14
|
+
import { F as FieldAttribute, f as BetterAuthOptions, B as BetterAuthPlugin } from '../../shared/better-auth.dkazx1HL.js';
|
|
15
15
|
import { admin } from '../../plugins/admin/index.js';
|
|
16
16
|
import { genericOAuth } from '../../plugins/generic-oauth/index.js';
|
|
17
17
|
import { jwt } from '../../plugins/jwt/index.js';
|
|
@@ -20,7 +20,7 @@ import { emailOTP } from '../../plugins/email-otp/index.js';
|
|
|
20
20
|
import { Store } from '../../types/index.js';
|
|
21
21
|
import { sso } from '../../plugins/sso/index.js';
|
|
22
22
|
import { oidcProvider } from '../../plugins/oidc-provider/index.js';
|
|
23
|
-
import { a as apiKey } from '../../shared/better-auth.
|
|
23
|
+
import { a as apiKey } from '../../shared/better-auth.qiXm3ePU.js';
|
|
24
24
|
import { oneTimeToken } from '../../plugins/one-time-token/index.js';
|
|
25
25
|
export * from '@simplewebauthn/server';
|
|
26
26
|
import 'zod';
|
|
@@ -30,7 +30,6 @@ import '../../shared/better-auth.CpEzqKmn.js';
|
|
|
30
30
|
import 'jose';
|
|
31
31
|
import 'kysely';
|
|
32
32
|
import 'better-sqlite3';
|
|
33
|
-
import 'bun:sqlite';
|
|
34
33
|
|
|
35
34
|
interface OrganizationClientOptions {
|
|
36
35
|
ac?: AccessControl;
|
|
@@ -7,14 +7,13 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.cjs';
|
|
8
8
|
import { U as UnionToIntersection, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.cjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.BZj5bcIv.cjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
|
-
import 'bun:sqlite';
|
|
18
17
|
|
|
19
18
|
type StoreKeys<T> = T extends {
|
|
20
19
|
setKey: (k: infer K, v: any) => unknown;
|
|
@@ -7,14 +7,13 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.mjs';
|
|
8
8
|
import { U as UnionToIntersection, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.mjs';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.CDeExxQS.mjs';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
|
-
import 'bun:sqlite';
|
|
18
17
|
|
|
19
18
|
type StoreKeys<T> = T extends {
|
|
20
19
|
setKey: (k: infer K, v: any) => unknown;
|
|
@@ -7,14 +7,13 @@ export * from '@better-fetch/fetch';
|
|
|
7
7
|
import { ClientOptions, BetterAuthClientPlugin, IsSignal, InferClientAPI, InferActions, InferErrorCodes } from '../../types/index.js';
|
|
8
8
|
import { U as UnionToIntersection, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.js';
|
|
9
9
|
import { DependencyList } from 'react';
|
|
10
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
10
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.dkazx1HL.js';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
14
14
|
import 'jose';
|
|
15
15
|
import 'kysely';
|
|
16
16
|
import 'better-sqlite3';
|
|
17
|
-
import 'bun:sqlite';
|
|
18
17
|
|
|
19
18
|
type StoreKeys<T> = T extends {
|
|
20
19
|
setKey: (k: infer K, v: any) => unknown;
|
|
@@ -4,7 +4,7 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.cjs';
|
|
7
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.BZj5bcIv.cjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -12,7 +12,6 @@ import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
15
|
-
import 'bun:sqlite';
|
|
16
15
|
|
|
17
16
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
18
17
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Accessor<ReturnType<Atoms[key]["get"]>>;
|
|
@@ -4,7 +4,7 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.mjs';
|
|
7
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.CDeExxQS.mjs';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -12,7 +12,6 @@ import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
15
|
-
import 'bun:sqlite';
|
|
16
15
|
|
|
17
16
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
18
17
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Accessor<ReturnType<Atoms[key]["get"]>>;
|
|
@@ -4,7 +4,7 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.js';
|
|
7
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
7
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.dkazx1HL.js';
|
|
8
8
|
export * from 'nanostores';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'zod';
|
|
@@ -12,7 +12,6 @@ import '../../shared/better-auth.CpEzqKmn.js';
|
|
|
12
12
|
import 'jose';
|
|
13
13
|
import 'kysely';
|
|
14
14
|
import 'better-sqlite3';
|
|
15
|
-
import 'bun:sqlite';
|
|
16
15
|
|
|
17
16
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
18
17
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Accessor<ReturnType<Atoms[key]["get"]>>;
|
|
@@ -6,14 +6,13 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.cjs';
|
|
9
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.BZj5bcIv.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
|
-
import 'bun:sqlite';
|
|
17
16
|
|
|
18
17
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
19
18
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Atoms[key];
|
|
@@ -6,14 +6,13 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.mjs';
|
|
9
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.CDeExxQS.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
|
-
import 'bun:sqlite';
|
|
17
16
|
|
|
18
17
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
19
18
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Atoms[key];
|
|
@@ -6,14 +6,13 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.js';
|
|
9
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.dkazx1HL.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
|
-
import 'bun:sqlite';
|
|
17
16
|
|
|
18
17
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
19
18
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Atoms[key];
|
|
@@ -6,14 +6,13 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.cjs';
|
|
9
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.BZj5bcIv.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
|
-
import 'bun:sqlite';
|
|
17
16
|
|
|
18
17
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
19
18
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => DeepReadonly<Ref<ReturnType<Atoms[key]["get"]>>>;
|
|
@@ -6,14 +6,13 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.mjs';
|
|
9
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.CDeExxQS.mjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
|
-
import 'bun:sqlite';
|
|
17
16
|
|
|
18
17
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
19
18
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => DeepReadonly<Ref<ReturnType<Atoms[key]["get"]>>>;
|
|
@@ -6,14 +6,13 @@ 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, a as PrettifyDeep } from '../../shared/better-auth.CYegVoq1.js';
|
|
9
|
-
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
9
|
+
import { j as BASE_ERROR_CODES } from '../../shared/better-auth.dkazx1HL.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
13
13
|
import 'jose';
|
|
14
14
|
import 'kysely';
|
|
15
15
|
import 'better-sqlite3';
|
|
16
|
-
import 'bun:sqlite';
|
|
17
16
|
|
|
18
17
|
type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends BetterAuthClientPlugin ? Plugin["getAtoms"] extends (fetch: any) => infer Atoms ? Atoms extends Record<string, any> ? {
|
|
19
18
|
[key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => DeepReadonly<Ref<ReturnType<Atoms[key]["get"]>>>;
|
package/dist/cookies/index.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ar as BetterAuthCookies, aw as EligibleCookies, ap as createCookieGetter, au as deleteSessionCookie, ay as getCookieCache, aq as getCookies, ax as getSessionCookie, av as parseCookies, az as parseSetCookieHeader, as as setCookieCache, aA as setCookieToHeader, at as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { ar as BetterAuthCookies, aw as EligibleCookies, ap as createCookieGetter, au as deleteSessionCookie, ay as getCookieCache, aq as getCookies, ax as getSessionCookie, av as parseCookies, az as parseSetCookieHeader, as as setCookieCache, aA as setCookieToHeader, at as setSessionCookie } from '../shared/better-auth.BZj5bcIv.cjs';
|
|
3
3
|
import '../shared/better-auth.CYegVoq1.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.7QibuQ0I.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
|
-
import 'bun:sqlite';
|
package/dist/cookies/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ar as BetterAuthCookies, aw as EligibleCookies, ap as createCookieGetter, au as deleteSessionCookie, ay as getCookieCache, aq as getCookies, ax as getSessionCookie, av as parseCookies, az as parseSetCookieHeader, as as setCookieCache, aA as setCookieToHeader, at as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { ar as BetterAuthCookies, aw as EligibleCookies, ap as createCookieGetter, au as deleteSessionCookie, ay as getCookieCache, aq as getCookies, ax as getSessionCookie, av as parseCookies, az as parseSetCookieHeader, as as setCookieCache, aA as setCookieToHeader, at as setSessionCookie } from '../shared/better-auth.CDeExxQS.mjs';
|
|
3
3
|
import '../shared/better-auth.CYegVoq1.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.C39-x5Oo.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
|
-
import 'bun:sqlite';
|
package/dist/cookies/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { ar as BetterAuthCookies, aw as EligibleCookies, ap as createCookieGetter, au as deleteSessionCookie, ay as getCookieCache, aq as getCookies, ax as getSessionCookie, av as parseCookies, az as parseSetCookieHeader, as as setCookieCache, aA as setCookieToHeader, at as setSessionCookie } from '../shared/better-auth.
|
|
2
|
+
export { ar as BetterAuthCookies, aw as EligibleCookies, ap as createCookieGetter, au as deleteSessionCookie, ay as getCookieCache, aq as getCookies, ax as getSessionCookie, av as parseCookies, az as parseSetCookieHeader, as as setCookieCache, aA as setCookieToHeader, at as setSessionCookie } from '../shared/better-auth.dkazx1HL.js';
|
|
3
3
|
import '../shared/better-auth.CYegVoq1.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../shared/better-auth.CpEzqKmn.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
|
-
import 'bun:sqlite';
|
package/dist/db/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const getMigration = require('../shared/better-auth.
|
|
3
|
+
const getMigration = require('../shared/better-auth.jkkUo-gB.cjs');
|
|
4
4
|
const getTables = require('../shared/better-auth.BEphVDyL.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const schema = require('../shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -24,7 +24,7 @@ require('@noble/hashes/utils');
|
|
|
24
24
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
25
25
|
require('../shared/better-auth.GpOOav9x.cjs');
|
|
26
26
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
27
|
-
require('../shared/better-auth.
|
|
27
|
+
require('../shared/better-auth.BJiRPytD.cjs');
|
|
28
28
|
require('kysely');
|
|
29
29
|
require('../shared/better-auth.BLnaKDpp.cjs');
|
|
30
30
|
require('../shared/better-auth.CUdxApHl.cjs');
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, F as FieldAttribute, Z as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { h as BetterAuthDbSchema, a0 as FieldAttributeConfig, a8 as InferFieldsFromOptions, a7 as InferFieldsFromPlugins, a4 as InferFieldsInput, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, a2 as InferValueType, $ as InternalAdapter, a6 as PluginFieldAttribute, aa as accountSchema, a1 as createFieldAttribute, _ as createInternalAdapter, af as getAllFields, a9 as getAuthTables, ao as mergeSchema, am as parseAccountInput, ah as parseAccountOutput, al as parseAdditionalUserInput, aj as parseInputData, ae as parseOutputData, an as parseSessionInput, ai as parseSessionOutput, ak as parseUserInput, ag as parseUserOutput, ac as sessionSchema, ab as userSchema, ad as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, F as FieldAttribute, Z as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.BZj5bcIv.cjs';
|
|
2
|
+
export { h as BetterAuthDbSchema, a0 as FieldAttributeConfig, a8 as InferFieldsFromOptions, a7 as InferFieldsFromPlugins, a4 as InferFieldsInput, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, a2 as InferValueType, $ as InternalAdapter, a6 as PluginFieldAttribute, aa as accountSchema, a1 as createFieldAttribute, _ as createInternalAdapter, af as getAllFields, a9 as getAuthTables, ao as mergeSchema, am as parseAccountInput, ah as parseAccountOutput, al as parseAdditionalUserInput, aj as parseInputData, ae as parseOutputData, an as parseSessionInput, ai as parseSessionOutput, ak as parseUserInput, ag as parseUserOutput, ac as sessionSchema, ab as userSchema, ad as verificationSchema } from '../shared/better-auth.BZj5bcIv.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import '../shared/better-auth.7QibuQ0I.cjs';
|
|
@@ -7,7 +7,6 @@ import 'jose';
|
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
|
-
import 'bun:sqlite';
|
|
11
10
|
|
|
12
11
|
declare function getWithHooks(adapter: Adapter, ctx: {
|
|
13
12
|
options: BetterAuthOptions;
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, F as FieldAttribute, Z as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { h as BetterAuthDbSchema, a0 as FieldAttributeConfig, a8 as InferFieldsFromOptions, a7 as InferFieldsFromPlugins, a4 as InferFieldsInput, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, a2 as InferValueType, $ as InternalAdapter, a6 as PluginFieldAttribute, aa as accountSchema, a1 as createFieldAttribute, _ as createInternalAdapter, af as getAllFields, a9 as getAuthTables, ao as mergeSchema, am as parseAccountInput, ah as parseAccountOutput, al as parseAdditionalUserInput, aj as parseInputData, ae as parseOutputData, an as parseSessionInput, ai as parseSessionOutput, ak as parseUserInput, ag as parseUserOutput, ac as sessionSchema, ab as userSchema, ad as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, F as FieldAttribute, Z as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.CDeExxQS.mjs';
|
|
2
|
+
export { h as BetterAuthDbSchema, a0 as FieldAttributeConfig, a8 as InferFieldsFromOptions, a7 as InferFieldsFromPlugins, a4 as InferFieldsInput, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, a2 as InferValueType, $ as InternalAdapter, a6 as PluginFieldAttribute, aa as accountSchema, a1 as createFieldAttribute, _ as createInternalAdapter, af as getAllFields, a9 as getAuthTables, ao as mergeSchema, am as parseAccountInput, ah as parseAccountOutput, al as parseAdditionalUserInput, aj as parseInputData, ae as parseOutputData, an as parseSessionInput, ai as parseSessionOutput, ak as parseUserInput, ag as parseUserOutput, ac as sessionSchema, ab as userSchema, ad as verificationSchema } from '../shared/better-auth.CDeExxQS.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import '../shared/better-auth.C39-x5Oo.mjs';
|
|
@@ -7,7 +7,6 @@ import 'jose';
|
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
|
-
import 'bun:sqlite';
|
|
11
10
|
|
|
12
11
|
declare function getWithHooks(adapter: Adapter, ctx: {
|
|
13
12
|
options: BetterAuthOptions;
|
package/dist/db/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, F as FieldAttribute, Z as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.
|
|
2
|
-
export { h as BetterAuthDbSchema, a0 as FieldAttributeConfig, a8 as InferFieldsFromOptions, a7 as InferFieldsFromPlugins, a4 as InferFieldsInput, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, a2 as InferValueType, $ as InternalAdapter, a6 as PluginFieldAttribute, aa as accountSchema, a1 as createFieldAttribute, _ as createInternalAdapter, af as getAllFields, a9 as getAuthTables, ao as mergeSchema, am as parseAccountInput, ah as parseAccountOutput, al as parseAdditionalUserInput, aj as parseInputData, ae as parseOutputData, an as parseSessionInput, ai as parseSessionOutput, ak as parseUserInput, ag as parseUserOutput, ac as sessionSchema, ab as userSchema, ad as verificationSchema } from '../shared/better-auth.
|
|
1
|
+
import { g as Adapter, f as BetterAuthOptions, G as GenericEndpointContext, W as Where, F as FieldAttribute, Z as FieldType, K as KyselyDatabaseType } from '../shared/better-auth.dkazx1HL.js';
|
|
2
|
+
export { h as BetterAuthDbSchema, a0 as FieldAttributeConfig, a8 as InferFieldsFromOptions, a7 as InferFieldsFromPlugins, a4 as InferFieldsInput, a5 as InferFieldsInputClient, a3 as InferFieldsOutput, a2 as InferValueType, $ as InternalAdapter, a6 as PluginFieldAttribute, aa as accountSchema, a1 as createFieldAttribute, _ as createInternalAdapter, af as getAllFields, a9 as getAuthTables, ao as mergeSchema, am as parseAccountInput, ah as parseAccountOutput, al as parseAdditionalUserInput, aj as parseInputData, ae as parseOutputData, an as parseSessionInput, ai as parseSessionOutput, ak as parseUserInput, ag as parseUserOutput, ac as sessionSchema, ab as userSchema, ad as verificationSchema } from '../shared/better-auth.dkazx1HL.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import '../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import '../shared/better-auth.CpEzqKmn.js';
|
|
@@ -7,7 +7,6 @@ import 'jose';
|
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-call';
|
|
9
9
|
import 'better-sqlite3';
|
|
10
|
-
import 'bun:sqlite';
|
|
11
10
|
|
|
12
11
|
declare function getWithHooks(adapter: Adapter, ctx: {
|
|
13
12
|
options: BetterAuthOptions;
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.
|
|
1
|
+
export { d as convertFromDB, b as convertToDB, c as createInternalAdapter, a as getAdapter, e as getMigrations, f as getSchema, g as getWithHooks, m as matchType } from '../shared/better-auth.Cd_A6t3-.mjs';
|
|
2
2
|
export { g as getAuthTables } from '../shared/better-auth.DORkW_Ge.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export { a as accountSchema, g as getAllFields, m as mergeSchema, i as parseAccountInput, c as parseAccountOutput, h as parseAdditionalUserInput, e as parseInputData, p as parseOutputData, j as parseSessionInput, d as parseSessionOutput, f as parseUserInput, b as parseUserOutput, s as sessionSchema, u as userSchema, v as verificationSchema } from '../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -22,7 +22,7 @@ import '@noble/hashes/utils';
|
|
|
22
22
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
23
23
|
import '../shared/better-auth.Cqykj82J.mjs';
|
|
24
24
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
25
|
-
import '../shared/better-auth.
|
|
25
|
+
import '../shared/better-auth.DKF2BM5s.mjs';
|
|
26
26
|
import 'kysely';
|
|
27
27
|
import '../shared/better-auth.Du54XGQ5.mjs';
|
|
28
28
|
import '../shared/better-auth.0TC26uRi.mjs';
|
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const api_index = require('./api/index.cjs');
|
|
4
4
|
const defu = require('defu');
|
|
5
5
|
const password = require('./shared/better-auth.YUF6P-PB.cjs');
|
|
6
|
-
const getMigration = require('./shared/better-auth.
|
|
6
|
+
const getMigration = require('./shared/better-auth.jkkUo-gB.cjs');
|
|
7
7
|
const getTables = require('./shared/better-auth.BEphVDyL.cjs');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('./shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -23,7 +23,7 @@ const env = require('./shared/better-auth.DiSjtgs9.cjs');
|
|
|
23
23
|
const password$1 = require('./shared/better-auth.CDXNofOe.cjs');
|
|
24
24
|
const url = require('./shared/better-auth.C-R0J0n1.cjs');
|
|
25
25
|
const index = require('./shared/better-auth.ANpbi45u.cjs');
|
|
26
|
-
const
|
|
26
|
+
const account = require('./shared/better-auth.r0iyl8Tx.cjs');
|
|
27
27
|
const misc = require('./shared/better-auth.BLDOwz3i.cjs');
|
|
28
28
|
const state = require('./shared/better-auth.QbbyHMYf.cjs');
|
|
29
29
|
require('./shared/better-auth.B7cZ2juS.cjs');
|
|
@@ -34,7 +34,7 @@ require('@noble/hashes/utils');
|
|
|
34
34
|
require('./shared/better-auth.C1hdVENX.cjs');
|
|
35
35
|
require('./shared/better-auth.D3mtHEZg.cjs');
|
|
36
36
|
require('@better-auth/utils/random');
|
|
37
|
-
require('./shared/better-auth.
|
|
37
|
+
require('./shared/better-auth.BJiRPytD.cjs');
|
|
38
38
|
require('kysely');
|
|
39
39
|
require('./shared/better-auth.BLnaKDpp.cjs');
|
|
40
40
|
require('./shared/better-auth.CUdxApHl.cjs');
|
|
@@ -250,7 +250,7 @@ const betterAuth = (options) => {
|
|
|
250
250
|
$Infer: {},
|
|
251
251
|
$ERROR_CODES: {
|
|
252
252
|
...errorCodes,
|
|
253
|
-
...
|
|
253
|
+
...account.BASE_ERROR_CODES
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
};
|
|
@@ -262,7 +262,7 @@ exports.shouldPublishLog = logger.shouldPublishLog;
|
|
|
262
262
|
exports.generateId = id.generateId;
|
|
263
263
|
exports.BetterAuthError = index.BetterAuthError;
|
|
264
264
|
exports.MissingDependencyError = index.MissingDependencyError;
|
|
265
|
-
exports.HIDE_METADATA =
|
|
265
|
+
exports.HIDE_METADATA = account.HIDE_METADATA;
|
|
266
266
|
exports.capitalizeFirstLetter = misc.capitalizeFirstLetter;
|
|
267
267
|
exports.generateState = state.generateState;
|
|
268
268
|
exports.parseState = state.parseState;
|