better-auth 1.4.0-beta.3 → 1.4.0-beta.4
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 +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +7 -6
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +9 -8
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +9 -9
- package/dist/client/react/index.d.mts +9 -9
- package/dist/client/react/index.d.ts +9 -9
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +9 -9
- package/dist/client/solid/index.d.mts +9 -9
- package/dist/client/solid/index.d.ts +9 -9
- package/dist/client/solid/index.mjs +2 -2
- package/dist/client/svelte/index.cjs +2 -2
- package/dist/client/svelte/index.d.cts +3 -3
- package/dist/client/svelte/index.d.mts +3 -3
- package/dist/client/svelte/index.d.ts +3 -3
- package/dist/client/svelte/index.mjs +2 -2
- package/dist/client/vue/index.cjs +3 -3
- package/dist/client/vue/index.d.cts +3 -3
- package/dist/client/vue/index.d.mts +3 -3
- package/dist/client/vue/index.d.ts +3 -3
- package/dist/client/vue/index.mjs +3 -3
- package/dist/cookies/index.cjs +2 -2
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/cookies/index.mjs +2 -2
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/index.cjs +7 -6
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.mjs +7 -6
- package/dist/integrations/next-js.cjs +6 -5
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +6 -5
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +6 -5
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +6 -5
- package/dist/integrations/svelte-kit.cjs +5 -4
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/integrations/svelte-kit.mjs +5 -4
- package/dist/oauth2/index.cjs +5 -4
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/oauth2/index.mjs +5 -4
- package/dist/plugins/admin/index.cjs +6 -5
- package/dist/plugins/admin/index.d.cts +7 -6
- package/dist/plugins/admin/index.d.mts +7 -6
- package/dist/plugins/admin/index.d.ts +7 -6
- package/dist/plugins/admin/index.mjs +6 -5
- package/dist/plugins/anonymous/index.cjs +5 -4
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.mjs +5 -4
- package/dist/plugins/bearer/index.cjs +5 -4
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/bearer/index.mjs +5 -4
- package/dist/plugins/captcha/index.cjs +5 -4
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/captcha/index.mjs +5 -4
- package/dist/plugins/custom-session/index.cjs +11 -8
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.mjs +11 -8
- package/dist/plugins/device-authorization/index.cjs +52 -19
- package/dist/plugins/device-authorization/index.d.cts +1 -1
- package/dist/plugins/device-authorization/index.d.mts +1 -1
- package/dist/plugins/device-authorization/index.d.ts +1 -1
- package/dist/plugins/device-authorization/index.mjs +52 -19
- package/dist/plugins/email-otp/index.cjs +62 -21
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.mjs +62 -21
- package/dist/plugins/generic-oauth/index.cjs +44 -25
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.mjs +44 -25
- package/dist/plugins/haveibeenpwned/index.cjs +5 -4
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +5 -4
- package/dist/plugins/index.cjs +11 -10
- package/dist/plugins/index.d.cts +6 -6
- package/dist/plugins/index.d.mts +6 -6
- package/dist/plugins/index.d.ts +6 -6
- package/dist/plugins/index.mjs +13 -12
- package/dist/plugins/jwt/index.cjs +5 -4
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/jwt/index.mjs +5 -4
- package/dist/plugins/magic-link/index.cjs +32 -21
- package/dist/plugins/magic-link/index.mjs +32 -21
- package/dist/plugins/multi-session/index.cjs +11 -6
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.mjs +11 -6
- package/dist/plugins/oauth-proxy/index.cjs +11 -6
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +11 -6
- package/dist/plugins/oidc-provider/index.cjs +6 -5
- package/dist/plugins/oidc-provider/index.d.cts +5 -5
- package/dist/plugins/oidc-provider/index.d.mts +5 -5
- package/dist/plugins/oidc-provider/index.d.ts +5 -5
- package/dist/plugins/oidc-provider/index.mjs +6 -5
- package/dist/plugins/one-tap/index.cjs +8 -7
- package/dist/plugins/one-tap/index.mjs +8 -7
- package/dist/plugins/one-time-token/index.cjs +7 -6
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +7 -6
- package/dist/plugins/open-api/index.cjs +5 -4
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/open-api/index.mjs +5 -4
- package/dist/plugins/organization/index.cjs +7 -6
- package/dist/plugins/organization/index.d.cts +9 -9
- package/dist/plugins/organization/index.d.mts +9 -9
- package/dist/plugins/organization/index.d.ts +9 -9
- package/dist/plugins/organization/index.mjs +7 -6
- package/dist/plugins/passkey/index.cjs +17 -12
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/passkey/index.mjs +17 -12
- package/dist/plugins/phone-number/index.cjs +41 -24
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.mjs +41 -24
- package/dist/plugins/siwe/index.cjs +5 -4
- package/dist/plugins/siwe/index.d.cts +1 -1
- package/dist/plugins/siwe/index.d.mts +1 -1
- package/dist/plugins/siwe/index.d.ts +1 -1
- package/dist/plugins/siwe/index.mjs +5 -4
- package/dist/plugins/sso/index.cjs +89 -62
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/sso/index.mjs +89 -62
- package/dist/plugins/two-factor/index.cjs +50 -19
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.mjs +50 -19
- package/dist/plugins/username/index.cjs +18 -11
- package/dist/plugins/username/index.d.cts +19 -19
- package/dist/plugins/username/index.d.mts +19 -19
- package/dist/plugins/username/index.d.ts +19 -19
- package/dist/plugins/username/index.mjs +18 -11
- package/dist/shared/{better-auth.CuyhlHls.cjs → better-auth.1iHKsGdY.cjs} +2 -2
- package/dist/shared/{better-auth.DyZUF2_t.d.ts → better-auth.3es9ZU_K.d.ts} +36 -37
- package/dist/shared/{better-auth.COdnr6eY.cjs → better-auth.B2Bmtu6f.cjs} +83 -47
- package/dist/shared/{better-auth.T3Ux10v9.mjs → better-auth.BAPVOPl3.mjs} +3 -3
- package/dist/shared/{better-auth.DxV4YGX3.mjs → better-auth.BAQSo96z.mjs} +6 -4
- package/dist/shared/{better-auth.cXemjp2M.mjs → better-auth.BHwIy11H.mjs} +83 -47
- package/dist/shared/{better-auth.B1Za4fb4.d.cts → better-auth.BLDIAFp8.d.cts} +5 -5
- package/dist/shared/{better-auth.DHiuXI9L.d.cts → better-auth.BOKSn3AP.d.cts} +36 -37
- package/dist/shared/{better-auth.ZC_QEMLv.d.cts → better-auth.BW0VS3vZ.d.cts} +1 -1
- package/dist/shared/{better-auth.DXd8qaHd.mjs → better-auth.Bc2H_kPB.mjs} +54 -28
- package/dist/shared/{better-auth.DhQzyejE.mjs → better-auth.BoY6Vo7c.mjs} +1 -1
- package/dist/shared/{better-auth.D1jaLDAW.mjs → better-auth.C-9OPnjJ.mjs} +151 -71
- package/dist/shared/{better-auth.A_lT_4ey.cjs → better-auth.C0WkvM-b.cjs} +151 -71
- package/dist/shared/{better-auth.iE8wqp5_.cjs → better-auth.C2xLgiCv.cjs} +1 -1
- package/dist/shared/{better-auth.Cdkx1UlR.cjs → better-auth.C4gSFtQb.cjs} +54 -28
- package/dist/shared/{better-auth.D3u5pPGf.d.ts → better-auth.CAc8m5ps.d.ts} +1 -1
- package/dist/shared/{better-auth.BUqsHDoX.d.ts → better-auth.CBpfh9gd.d.ts} +1 -1
- package/dist/shared/{better-auth.BUmFH1YH.d.mts → better-auth.CHakYG_s.d.mts} +5 -5
- package/dist/shared/{better-auth.Co88PbP3.mjs → better-auth.CIqzVuC5.mjs} +15 -9
- package/dist/shared/{better-auth.DL28hkwE.mjs → better-auth.CJk6lu9H.mjs} +5 -5
- package/dist/shared/{better-auth.wBgaxGEw.cjs → better-auth.CWoe8tep.cjs} +15 -9
- package/dist/shared/{better-auth.TQtfFmwt.mjs → better-auth.Cs4ObP2J.mjs} +246 -139
- package/dist/shared/{better-auth.BftmE2f4.mjs → better-auth.Cw2Wb5xl.mjs} +2 -2
- package/dist/shared/{better-auth.BTmQo2-r.mjs → better-auth.CyhdLtgz.mjs} +122 -54
- package/dist/shared/{better-auth.Cn3gHKIq.d.ts → better-auth.D1mfnXw8.d.ts} +5 -5
- package/dist/shared/better-auth.D2xndZ2p.mjs +5 -0
- package/dist/shared/{better-auth.LBYUF6qL.d.mts → better-auth.D63GoHoT.d.mts} +1 -1
- package/dist/shared/{better-auth.DrO1u8u7.cjs → better-auth.DVpUemsq.cjs} +49 -10
- package/dist/shared/{better-auth.CYRK2rir.cjs → better-auth.DcLnIy5M.cjs} +122 -54
- package/dist/shared/{better-auth.B-RhOtHf.cjs → better-auth.Df7v65t4.cjs} +3 -3
- package/dist/shared/{better-auth.g25nv4YL.mjs → better-auth.DpE8ZxDZ.mjs} +49 -10
- package/dist/shared/{better-auth.8am3GyvS.d.cts → better-auth.DqouI_5s.d.cts} +1 -1
- package/dist/shared/{better-auth.DRmln2Nr.cjs → better-auth.DxBcELEX.cjs} +6 -4
- package/dist/shared/{better-auth.BSU7i7gN.cjs → better-auth.Fhb5xDFB.cjs} +5 -5
- package/dist/shared/{better-auth.CNhgW39t.cjs → better-auth.W6wY8Xk1.cjs} +246 -139
- package/dist/shared/{better-auth.DIfV2UBl.cjs → better-auth.oHfRlmfe.cjs} +1 -1
- package/dist/shared/{better-auth.C3bLnul-.mjs → better-auth.pyHheoY8.mjs} +1 -1
- package/dist/shared/better-auth.uykCWCYS.cjs +7 -0
- package/dist/shared/{better-auth.DQBMcFsm.d.mts → better-auth.vNMd9aBC.d.mts} +36 -37
- package/dist/shared/{better-auth.BC_XVl81.d.mts → better-auth.x83uJ-Ru.d.mts} +1 -1
- package/dist/social-providers/index.cjs +5 -4
- package/dist/social-providers/index.mjs +5 -4
- package/dist/test-utils/index.cjs +10 -9
- package/dist/test-utils/index.d.cts +59 -57
- package/dist/test-utils/index.d.mts +59 -57
- package/dist/test-utils/index.d.ts +59 -57
- package/dist/test-utils/index.mjs +10 -9
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -2
package/dist/oauth2/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.v_lf-jeY.cjs';
|
|
2
2
|
export { a as OAuth2UserInfo, b as OAuthProvider } from '../shared/better-auth.v_lf-jeY.cjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { d as AuthContext, G as GenericEndpointContext, U as User, af as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
4
|
+
import { d as AuthContext, G as GenericEndpointContext, U as User, af as Account } from '../shared/better-auth.BOKSn3AP.cjs';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.DqouI_5s.cjs';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.cjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'kysely';
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.XefKa8DI.mjs';
|
|
2
2
|
export { a as OAuth2UserInfo, b as OAuthProvider } from '../shared/better-auth.XefKa8DI.mjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { d as AuthContext, G as GenericEndpointContext, U as User, af as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
4
|
+
import { d as AuthContext, G as GenericEndpointContext, U as User, af as Account } from '../shared/better-auth.vNMd9aBC.mjs';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.x83uJ-Ru.mjs';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'kysely';
|
package/dist/oauth2/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.4SXCyo06.js';
|
|
2
2
|
export { a as OAuth2UserInfo, b as OAuthProvider } from '../shared/better-auth.4SXCyo06.js';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { d as AuthContext, G as GenericEndpointContext, U as User, af as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
4
|
+
import { d as AuthContext, G as GenericEndpointContext, U as User, af as Account } from '../shared/better-auth.3es9ZU_K.js';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.CBpfh9gd.js';
|
|
6
6
|
import '../shared/better-auth.DTtXpZYr.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'kysely';
|
package/dist/oauth2/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
export { a as createAuthorizationCodeRequest, c as createAuthorizationURL, d as createRefreshAccessTokenRequest, i as decryptOAuthToken, h as encodeOAuthParameter, e as generateCodeChallenge, g as generateState, f as getOAuth2Tokens, j as handleOAuthUserInfo, p as parseState, r as refreshAccessToken, s as setTokenUtil, v as validateAuthorizationCode, b as validateToken } from '../shared/better-auth.
|
|
1
|
+
export { a as createAuthorizationCodeRequest, c as createAuthorizationURL, d as createRefreshAccessTokenRequest, i as decryptOAuthToken, h as encodeOAuthParameter, e as generateCodeChallenge, g as generateState, f as getOAuth2Tokens, j as handleOAuthUserInfo, p as parseState, r as refreshAccessToken, s as setTokenUtil, v as validateAuthorizationCode, b as validateToken } from '../shared/better-auth.C-9OPnjJ.mjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../shared/better-auth.
|
|
3
|
+
import '../shared/better-auth.CIqzVuC5.mjs';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.pyHheoY8.mjs';
|
|
7
7
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
8
8
|
import '../shared/better-auth.CiuwFiHM.mjs';
|
|
9
9
|
import '@better-auth/utils/base64';
|
|
10
10
|
import '@better-auth/utils/hmac';
|
|
11
11
|
import '../shared/better-auth.CvNZNAOW.mjs';
|
|
12
12
|
import '../shared/better-auth.C4g12FAA.mjs';
|
|
13
|
-
import '../shared/better-auth.
|
|
13
|
+
import '../shared/better-auth.BAQSo96z.mjs';
|
|
14
14
|
import '@better-auth/utils/binary';
|
|
15
|
+
import '../shared/better-auth.D2xndZ2p.mjs';
|
|
15
16
|
import '@better-auth/utils/hash';
|
|
16
17
|
import '../crypto/index.mjs';
|
|
17
18
|
import '@noble/ciphers/chacha.js';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const admin = require('../../shared/better-auth.
|
|
3
|
+
const admin = require('../../shared/better-auth.DcLnIy5M.cjs');
|
|
4
4
|
require('zod');
|
|
5
5
|
require('better-call');
|
|
6
|
-
require('../../shared/better-auth.
|
|
7
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.C0WkvM-b.cjs');
|
|
7
|
+
require('../../shared/better-auth.CWoe8tep.cjs');
|
|
8
8
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
9
|
-
require('../../shared/better-auth.
|
|
9
|
+
require('../../shared/better-auth.oHfRlmfe.cjs');
|
|
10
10
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
11
11
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
12
12
|
require('@better-auth/utils/base64');
|
|
13
13
|
require('@better-auth/utils/hmac');
|
|
14
14
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
15
15
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
16
|
-
require('../../shared/better-auth.
|
|
16
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
17
17
|
require('@better-auth/utils/binary');
|
|
18
|
+
require('../../shared/better-auth.uykCWCYS.cjs');
|
|
18
19
|
require('@better-auth/utils/hash');
|
|
19
20
|
require('../../crypto/index.cjs');
|
|
20
21
|
require('@noble/ciphers/chacha.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.cjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
+
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -542,7 +542,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
542
542
|
} & {
|
|
543
543
|
query: {
|
|
544
544
|
searchValue?: string | undefined;
|
|
545
|
-
searchField?: "
|
|
545
|
+
searchField?: "name" | "email" | undefined;
|
|
546
546
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
547
547
|
limit?: string | number | undefined;
|
|
548
548
|
offset?: string | number | undefined;
|
|
@@ -550,7 +550,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
550
550
|
sortDirection?: "asc" | "desc" | undefined;
|
|
551
551
|
filterField?: string | undefined;
|
|
552
552
|
filterValue?: string | number | boolean | undefined;
|
|
553
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" |
|
|
553
|
+
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
554
554
|
};
|
|
555
555
|
} & {
|
|
556
556
|
params?: Record<string, any>;
|
|
@@ -597,8 +597,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
597
597
|
query: z.ZodObject<{
|
|
598
598
|
searchValue: z.ZodOptional<z.ZodString>;
|
|
599
599
|
searchField: z.ZodOptional<z.ZodEnum<{
|
|
600
|
-
email: "email";
|
|
601
600
|
name: "name";
|
|
601
|
+
email: "email";
|
|
602
602
|
}>>;
|
|
603
603
|
searchOperator: z.ZodOptional<z.ZodEnum<{
|
|
604
604
|
contains: "contains";
|
|
@@ -615,13 +615,13 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
615
615
|
filterField: z.ZodOptional<z.ZodString>;
|
|
616
616
|
filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
|
|
617
617
|
filterOperator: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
contains: "contains";
|
|
618
619
|
eq: "eq";
|
|
619
620
|
ne: "ne";
|
|
620
621
|
lt: "lt";
|
|
621
622
|
lte: "lte";
|
|
622
623
|
gt: "gt";
|
|
623
624
|
gte: "gte";
|
|
624
|
-
contains: "contains";
|
|
625
625
|
}>>;
|
|
626
626
|
}, z.core.$strip>;
|
|
627
627
|
metadata: {
|
|
@@ -1632,7 +1632,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
$ERROR_CODES: {
|
|
1634
1634
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
1635
|
-
readonly USER_ALREADY_EXISTS: "User already exists.
|
|
1635
|
+
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
1636
|
+
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
1636
1637
|
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
1637
1638
|
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
1638
1639
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.mjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
+
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -542,7 +542,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
542
542
|
} & {
|
|
543
543
|
query: {
|
|
544
544
|
searchValue?: string | undefined;
|
|
545
|
-
searchField?: "
|
|
545
|
+
searchField?: "name" | "email" | undefined;
|
|
546
546
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
547
547
|
limit?: string | number | undefined;
|
|
548
548
|
offset?: string | number | undefined;
|
|
@@ -550,7 +550,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
550
550
|
sortDirection?: "asc" | "desc" | undefined;
|
|
551
551
|
filterField?: string | undefined;
|
|
552
552
|
filterValue?: string | number | boolean | undefined;
|
|
553
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" |
|
|
553
|
+
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
554
554
|
};
|
|
555
555
|
} & {
|
|
556
556
|
params?: Record<string, any>;
|
|
@@ -597,8 +597,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
597
597
|
query: z.ZodObject<{
|
|
598
598
|
searchValue: z.ZodOptional<z.ZodString>;
|
|
599
599
|
searchField: z.ZodOptional<z.ZodEnum<{
|
|
600
|
-
email: "email";
|
|
601
600
|
name: "name";
|
|
601
|
+
email: "email";
|
|
602
602
|
}>>;
|
|
603
603
|
searchOperator: z.ZodOptional<z.ZodEnum<{
|
|
604
604
|
contains: "contains";
|
|
@@ -615,13 +615,13 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
615
615
|
filterField: z.ZodOptional<z.ZodString>;
|
|
616
616
|
filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
|
|
617
617
|
filterOperator: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
contains: "contains";
|
|
618
619
|
eq: "eq";
|
|
619
620
|
ne: "ne";
|
|
620
621
|
lt: "lt";
|
|
621
622
|
lte: "lte";
|
|
622
623
|
gt: "gt";
|
|
623
624
|
gte: "gte";
|
|
624
|
-
contains: "contains";
|
|
625
625
|
}>>;
|
|
626
626
|
}, z.core.$strip>;
|
|
627
627
|
metadata: {
|
|
@@ -1632,7 +1632,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
$ERROR_CODES: {
|
|
1634
1634
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
1635
|
-
readonly USER_ALREADY_EXISTS: "User already exists.
|
|
1635
|
+
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
1636
|
+
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
1636
1637
|
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
1637
1638
|
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
1638
1639
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.js';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
+
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.3es9ZU_K.js';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
@@ -542,7 +542,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
542
542
|
} & {
|
|
543
543
|
query: {
|
|
544
544
|
searchValue?: string | undefined;
|
|
545
|
-
searchField?: "
|
|
545
|
+
searchField?: "name" | "email" | undefined;
|
|
546
546
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
547
547
|
limit?: string | number | undefined;
|
|
548
548
|
offset?: string | number | undefined;
|
|
@@ -550,7 +550,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
550
550
|
sortDirection?: "asc" | "desc" | undefined;
|
|
551
551
|
filterField?: string | undefined;
|
|
552
552
|
filterValue?: string | number | boolean | undefined;
|
|
553
|
-
filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" |
|
|
553
|
+
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
554
554
|
};
|
|
555
555
|
} & {
|
|
556
556
|
params?: Record<string, any>;
|
|
@@ -597,8 +597,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
597
597
|
query: z.ZodObject<{
|
|
598
598
|
searchValue: z.ZodOptional<z.ZodString>;
|
|
599
599
|
searchField: z.ZodOptional<z.ZodEnum<{
|
|
600
|
-
email: "email";
|
|
601
600
|
name: "name";
|
|
601
|
+
email: "email";
|
|
602
602
|
}>>;
|
|
603
603
|
searchOperator: z.ZodOptional<z.ZodEnum<{
|
|
604
604
|
contains: "contains";
|
|
@@ -615,13 +615,13 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
615
615
|
filterField: z.ZodOptional<z.ZodString>;
|
|
616
616
|
filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
|
|
617
617
|
filterOperator: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
contains: "contains";
|
|
618
619
|
eq: "eq";
|
|
619
620
|
ne: "ne";
|
|
620
621
|
lt: "lt";
|
|
621
622
|
lte: "lte";
|
|
622
623
|
gt: "gt";
|
|
623
624
|
gte: "gte";
|
|
624
|
-
contains: "contains";
|
|
625
625
|
}>>;
|
|
626
626
|
}, z.core.$strip>;
|
|
627
627
|
metadata: {
|
|
@@ -1632,7 +1632,8 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
$ERROR_CODES: {
|
|
1634
1634
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
1635
|
-
readonly USER_ALREADY_EXISTS: "User already exists.
|
|
1635
|
+
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
1636
|
+
readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
|
|
1636
1637
|
readonly YOU_CANNOT_BAN_YOURSELF: "You cannot ban yourself";
|
|
1637
1638
|
readonly YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: "You are not allowed to change users role";
|
|
1638
1639
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: "You are not allowed to create users";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
export { a as admin } from '../../shared/better-auth.
|
|
1
|
+
export { a as admin } from '../../shared/better-auth.CyhdLtgz.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'better-call';
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.C-9OPnjJ.mjs';
|
|
5
|
+
import '../../shared/better-auth.CIqzVuC5.mjs';
|
|
6
6
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.pyHheoY8.mjs';
|
|
8
8
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
9
9
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
10
10
|
import '@better-auth/utils/base64';
|
|
11
11
|
import '@better-auth/utils/hmac';
|
|
12
12
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
13
13
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
14
|
-
import '../../shared/better-auth.
|
|
14
|
+
import '../../shared/better-auth.BAQSo96z.mjs';
|
|
15
15
|
import '@better-auth/utils/binary';
|
|
16
|
+
import '../../shared/better-auth.D2xndZ2p.mjs';
|
|
16
17
|
import '@better-auth/utils/hash';
|
|
17
18
|
import '../../crypto/index.mjs';
|
|
18
19
|
import '@noble/ciphers/chacha.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
require('../../shared/better-auth.
|
|
5
|
-
const session = require('../../shared/better-auth.
|
|
4
|
+
require('../../shared/better-auth.C0WkvM-b.cjs');
|
|
5
|
+
const session = require('../../shared/better-auth.CWoe8tep.cjs');
|
|
6
6
|
require('zod');
|
|
7
|
-
const cookies_index = require('../../shared/better-auth.
|
|
7
|
+
const cookies_index = require('../../shared/better-auth.oHfRlmfe.cjs');
|
|
8
8
|
const schema$1 = require('../../shared/better-auth.DcYLM7Us.cjs');
|
|
9
9
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
10
10
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
11
|
-
const url = require('../../shared/better-auth.
|
|
11
|
+
const url = require('../../shared/better-auth.DxBcELEX.cjs');
|
|
12
12
|
const id = require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
13
13
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
14
14
|
require('@better-auth/utils/hash');
|
|
@@ -29,6 +29,7 @@ require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
|
29
29
|
require('@better-auth/utils/hmac');
|
|
30
30
|
require('@better-auth/utils/binary');
|
|
31
31
|
require('defu');
|
|
32
|
+
require('../../shared/better-auth.uykCWCYS.cjs');
|
|
32
33
|
|
|
33
34
|
const schema = {
|
|
34
35
|
user: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, d as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { U as User, S as Session, d as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { EndpointContext } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, d as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { U as User, S as Session, d as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { EndpointContext } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, d as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { U as User, S as Session, d as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.3es9ZU_K.js';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { EndpointContext } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import '../../shared/better-auth.
|
|
3
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
2
|
+
import '../../shared/better-auth.C-9OPnjJ.mjs';
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.CIqzVuC5.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import { p as parseSetCookieHeader, s as setSessionCookie } from '../../shared/better-auth.
|
|
5
|
+
import { p as parseSetCookieHeader, s as setSessionCookie } from '../../shared/better-auth.pyHheoY8.mjs';
|
|
6
6
|
import { m as mergeSchema } from '../../shared/better-auth.CJ2rnsDV.mjs';
|
|
7
7
|
import '../../shared/better-auth.CiuwFiHM.mjs';
|
|
8
8
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
9
|
-
import { g as getOrigin } from '../../shared/better-auth.
|
|
9
|
+
import { g as getOrigin } from '../../shared/better-auth.BAQSo96z.mjs';
|
|
10
10
|
import { g as generateId } from '../../shared/better-auth.BUPPRXfK.mjs';
|
|
11
11
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
12
12
|
import '@better-auth/utils/hash';
|
|
@@ -27,6 +27,7 @@ import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
|
27
27
|
import '@better-auth/utils/hmac';
|
|
28
28
|
import '@better-auth/utils/binary';
|
|
29
29
|
import 'defu';
|
|
30
|
+
import '../../shared/better-auth.D2xndZ2p.mjs';
|
|
30
31
|
|
|
31
32
|
const schema = {
|
|
32
33
|
user: {
|
|
@@ -6,15 +6,15 @@ require('@better-auth/utils/base64');
|
|
|
6
6
|
const hmac = require('@better-auth/utils/hmac');
|
|
7
7
|
require('../../shared/better-auth.DTvRBuq4.cjs');
|
|
8
8
|
require('@better-auth/utils/binary');
|
|
9
|
-
const cookies_index = require('../../shared/better-auth.
|
|
10
|
-
require('../../shared/better-auth.
|
|
11
|
-
const session = require('../../shared/better-auth.
|
|
9
|
+
const cookies_index = require('../../shared/better-auth.oHfRlmfe.cjs');
|
|
10
|
+
require('../../shared/better-auth.C0WkvM-b.cjs');
|
|
11
|
+
const session = require('../../shared/better-auth.CWoe8tep.cjs');
|
|
12
12
|
require('zod');
|
|
13
13
|
require('../../shared/better-auth.DcYLM7Us.cjs');
|
|
14
14
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
15
15
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
16
16
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
17
|
-
require('../../shared/better-auth.
|
|
17
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
18
18
|
require('@better-auth/utils/hash');
|
|
19
19
|
require('../../crypto/index.cjs');
|
|
20
20
|
require('@noble/ciphers/chacha.js');
|
|
@@ -29,6 +29,7 @@ require('@better-fetch/fetch');
|
|
|
29
29
|
require('jose/errors');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
31
|
require('defu');
|
|
32
|
+
require('../../shared/better-auth.uykCWCYS.cjs');
|
|
32
33
|
|
|
33
34
|
const bearer = (options) => {
|
|
34
35
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.3es9ZU_K.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import '../../shared/better-auth.4SXCyo06.js';
|
|
5
5
|
import '../../shared/better-auth.DTtXpZYr.js';
|
|
@@ -4,15 +4,15 @@ import '@better-auth/utils/base64';
|
|
|
4
4
|
import { createHMAC } from '@better-auth/utils/hmac';
|
|
5
5
|
import '../../shared/better-auth.C4g12FAA.mjs';
|
|
6
6
|
import '@better-auth/utils/binary';
|
|
7
|
-
import { p as parseSetCookieHeader } from '../../shared/better-auth.
|
|
8
|
-
import '../../shared/better-auth.
|
|
9
|
-
import { c as createAuthMiddleware } from '../../shared/better-auth.
|
|
7
|
+
import { p as parseSetCookieHeader } from '../../shared/better-auth.pyHheoY8.mjs';
|
|
8
|
+
import '../../shared/better-auth.C-9OPnjJ.mjs';
|
|
9
|
+
import { c as createAuthMiddleware } from '../../shared/better-auth.CIqzVuC5.mjs';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '../../shared/better-auth.CJ2rnsDV.mjs';
|
|
12
12
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
13
13
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
14
14
|
import '../../shared/better-auth.CvNZNAOW.mjs';
|
|
15
|
-
import '../../shared/better-auth.
|
|
15
|
+
import '../../shared/better-auth.BAQSo96z.mjs';
|
|
16
16
|
import '@better-auth/utils/hash';
|
|
17
17
|
import '../../crypto/index.mjs';
|
|
18
18
|
import '@noble/ciphers/chacha.js';
|
|
@@ -27,6 +27,7 @@ import '@better-fetch/fetch';
|
|
|
27
27
|
import 'jose/errors';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
29
29
|
import 'defu';
|
|
30
|
+
import '../../shared/better-auth.D2xndZ2p.mjs';
|
|
30
31
|
|
|
31
32
|
const bearer = (options) => {
|
|
32
33
|
return {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const errorCodes = require('../../shared/better-auth.uykCWCYS.cjs');
|
|
3
4
|
const fetch = require('@better-fetch/fetch');
|
|
4
5
|
|
|
5
6
|
const defaultEndpoints = [
|
|
@@ -18,15 +19,15 @@ const siteVerifyMap = {
|
|
|
18
19
|
[Providers.HCAPTCHA]: "https://api.hcaptcha.com/siteverify"
|
|
19
20
|
};
|
|
20
21
|
|
|
21
|
-
const EXTERNAL_ERROR_CODES = {
|
|
22
|
+
const EXTERNAL_ERROR_CODES = errorCodes.defineErrorCodes({
|
|
22
23
|
VERIFICATION_FAILED: "Captcha verification failed",
|
|
23
24
|
MISSING_RESPONSE: "Missing CAPTCHA response",
|
|
24
25
|
UNKNOWN_ERROR: "Something went wrong"
|
|
25
|
-
};
|
|
26
|
-
const INTERNAL_ERROR_CODES = {
|
|
26
|
+
});
|
|
27
|
+
const INTERNAL_ERROR_CODES = errorCodes.defineErrorCodes({
|
|
27
28
|
MISSING_SECRET_KEY: "Missing secret key",
|
|
28
29
|
SERVICE_UNAVAILABLE: "CAPTCHA service unavailable"
|
|
29
|
-
};
|
|
30
|
+
});
|
|
30
31
|
|
|
31
32
|
const middlewareResponse = ({ message, status }) => ({
|
|
32
33
|
response: new Response(
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { d as defineErrorCodes } from '../../shared/better-auth.D2xndZ2p.mjs';
|
|
1
2
|
import { betterFetch } from '@better-fetch/fetch';
|
|
2
3
|
|
|
3
4
|
const defaultEndpoints = [
|
|
@@ -16,15 +17,15 @@ const siteVerifyMap = {
|
|
|
16
17
|
[Providers.HCAPTCHA]: "https://api.hcaptcha.com/siteverify"
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
const EXTERNAL_ERROR_CODES = {
|
|
20
|
+
const EXTERNAL_ERROR_CODES = defineErrorCodes({
|
|
20
21
|
VERIFICATION_FAILED: "Captcha verification failed",
|
|
21
22
|
MISSING_RESPONSE: "Missing CAPTCHA response",
|
|
22
23
|
UNKNOWN_ERROR: "Something went wrong"
|
|
23
|
-
};
|
|
24
|
-
const INTERNAL_ERROR_CODES = {
|
|
24
|
+
});
|
|
25
|
+
const INTERNAL_ERROR_CODES = defineErrorCodes({
|
|
25
26
|
MISSING_SECRET_KEY: "Missing secret key",
|
|
26
27
|
SERVICE_UNAVAILABLE: "CAPTCHA service unavailable"
|
|
27
|
-
};
|
|
28
|
+
});
|
|
28
29
|
|
|
29
30
|
const middlewareResponse = ({ message, status }) => ({
|
|
30
31
|
response: new Response(
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const z = require('zod');
|
|
4
4
|
require('better-call');
|
|
5
|
-
require('../../shared/better-auth.
|
|
6
|
-
const session = require('../../shared/better-auth.
|
|
5
|
+
require('../../shared/better-auth.C0WkvM-b.cjs');
|
|
6
|
+
const session = require('../../shared/better-auth.CWoe8tep.cjs');
|
|
7
7
|
require('../../shared/better-auth.B6fIklBU.cjs');
|
|
8
8
|
require('@better-auth/utils/base64');
|
|
9
9
|
require('@better-auth/utils/hmac');
|
|
@@ -24,12 +24,13 @@ require('../../shared/better-auth.ANpbi45u.cjs');
|
|
|
24
24
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
25
25
|
require('@better-auth/utils/random');
|
|
26
26
|
require('@better-fetch/fetch');
|
|
27
|
-
require('../../shared/better-auth.
|
|
28
|
-
require('../../shared/better-auth.
|
|
27
|
+
require('../../shared/better-auth.DxBcELEX.cjs');
|
|
28
|
+
require('../../shared/better-auth.oHfRlmfe.cjs');
|
|
29
29
|
require('../../shared/better-auth.DgMx7bVs.cjs');
|
|
30
30
|
require('jose/errors');
|
|
31
31
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
32
32
|
require('defu');
|
|
33
|
+
require('../../shared/better-auth.uykCWCYS.cjs');
|
|
33
34
|
|
|
34
35
|
function _interopNamespaceCompat(e) {
|
|
35
36
|
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
@@ -51,10 +52,12 @@ const getSessionQuerySchema = z__namespace.optional(
|
|
|
51
52
|
* If cookie cache is enabled, it will disable the cache
|
|
52
53
|
* and fetch the session from the database
|
|
53
54
|
*/
|
|
54
|
-
disableCookieCache: z__namespace.boolean().
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
).
|
|
55
|
+
disableCookieCache: z__namespace.boolean().meta({
|
|
56
|
+
description: "Disable cookie cache and fetch session from database"
|
|
57
|
+
}).or(z__namespace.string().transform((v) => v === "true")).optional(),
|
|
58
|
+
disableRefresh: z__namespace.boolean().meta({
|
|
59
|
+
description: "Disable session refresh. Useful for checking session status, without updating the session"
|
|
60
|
+
}).optional()
|
|
58
61
|
})
|
|
59
62
|
);
|
|
60
63
|
const customSession = (fn, options, pluginOptions) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions, e as InferUser, f as InferSession, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, e as InferUser, f as InferSession, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.BOKSn3AP.cjs';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.v_lf-jeY.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions, e as InferUser, f as InferSession, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, e as InferUser, f as InferSession, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.vNMd9aBC.mjs';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.XefKa8DI.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions, e as InferUser, f as InferSession, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions, e as InferUser, f as InferSession, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.3es9ZU_K.js';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.4SXCyo06.js';
|