better-auth 1.2.9-beta.1 → 1.2.9-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/README.md +1 -1
- package/dist/adapters/drizzle-adapter/index.d.cts +3 -4
- package/dist/adapters/drizzle-adapter/index.d.mts +3 -4
- package/dist/adapters/drizzle-adapter/index.d.ts +3 -4
- package/dist/adapters/index.d.cts +4 -5
- package/dist/adapters/index.d.mts +4 -5
- package/dist/adapters/index.d.ts +4 -5
- package/dist/adapters/kysely-adapter/index.d.cts +3 -4
- package/dist/adapters/kysely-adapter/index.d.mts +3 -4
- package/dist/adapters/kysely-adapter/index.d.ts +3 -4
- package/dist/adapters/memory-adapter/index.d.cts +3 -4
- package/dist/adapters/memory-adapter/index.d.mts +3 -4
- package/dist/adapters/memory-adapter/index.d.ts +3 -4
- package/dist/adapters/mongodb-adapter/index.d.cts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.mts +3 -3
- package/dist/adapters/mongodb-adapter/index.d.ts +3 -3
- package/dist/adapters/prisma-adapter/index.d.cts +3 -4
- package/dist/adapters/prisma-adapter/index.d.mts +3 -4
- package/dist/adapters/prisma-adapter/index.d.ts +3 -4
- package/dist/adapters/test.d.cts +3 -3
- package/dist/adapters/test.d.mts +3 -3
- package/dist/adapters/test.d.ts +3 -3
- package/dist/api/index.cjs +22 -10
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +23 -12
- package/dist/client/index.cjs +2 -2
- 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 +2 -2
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.cjs +2 -2
- package/dist/client/react/index.d.cts +3 -3
- package/dist/client/react/index.d.mts +3 -3
- package/dist/client/react/index.d.ts +3 -3
- package/dist/client/react/index.mjs +2 -2
- package/dist/client/solid/index.cjs +2 -2
- package/dist/client/solid/index.d.cts +3 -3
- package/dist/client/solid/index.d.mts +3 -3
- package/dist/client/solid/index.d.ts +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/cookies/index.d.cts +3 -3
- package/dist/cookies/index.d.mts +3 -3
- package/dist/cookies/index.d.ts +3 -3
- package/dist/db/index.cjs +1 -1
- package/dist/db/index.d.cts +4 -4
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.d.ts +4 -4
- package/dist/db/index.mjs +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +9 -4
- package/dist/integrations/next-js.cjs +3 -3
- package/dist/integrations/next-js.d.cts +3 -3
- package/dist/integrations/next-js.d.mts +3 -3
- package/dist/integrations/next-js.d.ts +3 -3
- package/dist/integrations/next-js.mjs +3 -3
- package/dist/integrations/node.d.cts +3 -3
- package/dist/integrations/node.d.mts +3 -3
- package/dist/integrations/node.d.ts +3 -3
- package/dist/integrations/react-start.cjs +3 -3
- package/dist/integrations/react-start.d.cts +3 -3
- package/dist/integrations/react-start.d.mts +3 -3
- package/dist/integrations/react-start.d.ts +3 -3
- package/dist/integrations/react-start.mjs +3 -3
- package/dist/integrations/svelte-kit.d.cts +3 -3
- package/dist/integrations/svelte-kit.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.ts +3 -3
- package/dist/oauth2/index.d.cts +5 -5
- package/dist/oauth2/index.d.mts +5 -5
- package/dist/oauth2/index.d.ts +5 -5
- package/dist/plugins/access/index.d.cts +6 -6
- package/dist/plugins/access/index.d.mts +6 -6
- package/dist/plugins/access/index.d.ts +6 -6
- package/dist/plugins/admin/access/index.d.cts +7 -7
- package/dist/plugins/admin/access/index.d.mts +7 -7
- package/dist/plugins/admin/access/index.d.ts +7 -7
- package/dist/plugins/admin/index.cjs +8 -8
- package/dist/plugins/admin/index.d.cts +7 -7
- package/dist/plugins/admin/index.d.mts +7 -7
- package/dist/plugins/admin/index.d.ts +7 -7
- package/dist/plugins/admin/index.mjs +8 -8
- package/dist/plugins/anonymous/index.cjs +9 -9
- package/dist/plugins/anonymous/index.d.cts +3 -3
- package/dist/plugins/anonymous/index.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.ts +3 -3
- package/dist/plugins/anonymous/index.mjs +9 -9
- package/dist/plugins/bearer/index.cjs +7 -7
- package/dist/plugins/bearer/index.d.cts +3 -3
- package/dist/plugins/bearer/index.d.mts +3 -3
- package/dist/plugins/bearer/index.d.ts +3 -3
- package/dist/plugins/bearer/index.mjs +7 -7
- package/dist/plugins/captcha/index.d.cts +3 -3
- package/dist/plugins/captcha/index.d.mts +3 -3
- package/dist/plugins/captcha/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.cjs +7 -7
- package/dist/plugins/custom-session/index.d.cts +3 -3
- package/dist/plugins/custom-session/index.d.mts +3 -3
- package/dist/plugins/custom-session/index.d.ts +3 -3
- package/dist/plugins/custom-session/index.mjs +7 -7
- package/dist/plugins/email-otp/index.cjs +3 -3
- package/dist/plugins/email-otp/index.d.cts +3 -3
- package/dist/plugins/email-otp/index.d.mts +3 -3
- package/dist/plugins/email-otp/index.d.ts +3 -3
- package/dist/plugins/email-otp/index.mjs +3 -3
- package/dist/plugins/generic-oauth/index.cjs +3 -2
- package/dist/plugins/generic-oauth/index.d.cts +3 -3
- package/dist/plugins/generic-oauth/index.d.mts +3 -3
- package/dist/plugins/generic-oauth/index.d.ts +3 -3
- package/dist/plugins/generic-oauth/index.mjs +3 -2
- package/dist/plugins/haveibeenpwned/index.cjs +6 -6
- package/dist/plugins/haveibeenpwned/index.d.cts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/haveibeenpwned/index.d.ts +3 -3
- package/dist/plugins/haveibeenpwned/index.mjs +6 -6
- package/dist/plugins/index.cjs +5 -5
- package/dist/plugins/index.d.cts +5 -5
- package/dist/plugins/index.d.mts +5 -5
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.mjs +7 -7
- package/dist/plugins/jwt/index.cjs +6 -6
- package/dist/plugins/jwt/index.d.cts +3 -3
- package/dist/plugins/jwt/index.d.mts +3 -3
- package/dist/plugins/jwt/index.d.ts +3 -3
- package/dist/plugins/jwt/index.mjs +6 -6
- package/dist/plugins/magic-link/index.cjs +17 -8
- package/dist/plugins/magic-link/index.mjs +17 -8
- package/dist/plugins/multi-session/index.cjs +9 -9
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/multi-session/index.mjs +9 -9
- package/dist/plugins/oauth-proxy/index.cjs +7 -7
- package/dist/plugins/oauth-proxy/index.d.cts +3 -3
- package/dist/plugins/oauth-proxy/index.d.mts +3 -3
- package/dist/plugins/oauth-proxy/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.mjs +7 -7
- package/dist/plugins/oidc-provider/index.cjs +4 -4
- 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 +4 -4
- package/dist/plugins/one-tap/index.cjs +8 -8
- package/dist/plugins/one-tap/index.mjs +8 -8
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +3 -3
- package/dist/plugins/one-time-token/index.d.mts +3 -3
- package/dist/plugins/one-time-token/index.d.ts +3 -3
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +2 -2
- package/dist/plugins/open-api/index.d.cts +3 -3
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/open-api/index.d.ts +3 -3
- package/dist/plugins/open-api/index.mjs +2 -2
- package/dist/plugins/organization/access/index.d.cts +9 -9
- package/dist/plugins/organization/access/index.d.mts +9 -9
- package/dist/plugins/organization/access/index.d.ts +9 -9
- package/dist/plugins/organization/index.cjs +8 -8
- package/dist/plugins/organization/index.d.cts +3 -3
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.d.ts +3 -3
- package/dist/plugins/organization/index.mjs +8 -8
- package/dist/plugins/passkey/index.cjs +2 -2
- package/dist/plugins/passkey/index.d.cts +3 -3
- package/dist/plugins/passkey/index.d.mts +3 -3
- package/dist/plugins/passkey/index.d.ts +3 -3
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +8 -8
- package/dist/plugins/phone-number/index.d.cts +3 -3
- package/dist/plugins/phone-number/index.d.mts +3 -3
- package/dist/plugins/phone-number/index.d.ts +3 -3
- package/dist/plugins/phone-number/index.mjs +8 -8
- package/dist/plugins/sso/index.cjs +3 -2
- 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 +3 -2
- package/dist/plugins/two-factor/index.cjs +2 -2
- package/dist/plugins/two-factor/index.d.cts +3 -3
- package/dist/plugins/two-factor/index.d.mts +3 -3
- package/dist/plugins/two-factor/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.cjs +9 -9
- package/dist/plugins/username/index.d.cts +3 -3
- package/dist/plugins/username/index.d.mts +3 -3
- package/dist/plugins/username/index.d.ts +3 -3
- package/dist/plugins/username/index.mjs +9 -9
- package/dist/shared/{better-auth.Cm5_Oaun.d.mts → better-auth.B0Qseyk5.d.mts} +1 -1
- package/dist/shared/{better-auth.jp32bTkx.d.ts → better-auth.B79sBZ5R.d.ts} +1 -1
- package/dist/shared/{better-auth.CsujSPu3.d.ts → better-auth.BFR46gjQ.d.ts} +1 -1
- package/dist/shared/{better-auth.Bt3Neoqa.d.mts → better-auth.BQP9roUV.d.mts} +1 -1
- package/dist/shared/{better-auth.Ch9yQZRY.cjs → better-auth.BWb7XZvT.cjs} +5 -5
- package/dist/shared/{better-auth.Bzjh9zg_.d.ts → better-auth.BgtukYVC.d.cts} +2 -2
- package/dist/shared/{better-auth.CYegVoq1.d.cts → better-auth.Bi8FQwDD.d.cts} +1 -1
- package/dist/shared/{better-auth.CYegVoq1.d.mts → better-auth.Bi8FQwDD.d.mts} +1 -1
- package/dist/shared/{better-auth.CYegVoq1.d.ts → better-auth.Bi8FQwDD.d.ts} +1 -1
- package/dist/shared/{better-auth.B7NH8D_Q.d.ts → better-auth.BmjQ3Bjc.d.ts} +928 -41
- package/dist/shared/{better-auth.BMyxOUuq.cjs → better-auth.BnnLmpgJ.cjs} +2 -1
- package/dist/shared/{better-auth.CQvoVIBD.mjs → better-auth.Buni1mmI.mjs} +14 -10
- package/dist/shared/{better-auth._rXvQlMG.d.cts → better-auth.ByC0y0O-.d.ts} +2 -2
- package/dist/shared/{better-auth.B5gC5Szw.mjs → better-auth.C1U2eQvC.mjs} +1 -1
- package/dist/shared/{better-auth.CQcCOgHC.mjs → better-auth.CDo1lsla.mjs} +5 -5
- package/dist/shared/{better-auth.DNzJK3VH.cjs → better-auth.CHER_2lV.cjs} +1 -1
- package/dist/shared/{better-auth.BTXFetzv.d.mts → better-auth.CggyDr6H.d.mts} +2 -2
- package/dist/shared/{better-auth.C_Zl7Etp.cjs → better-auth.Ck3n8bMC.cjs} +14 -10
- package/dist/shared/{better-auth.Cwb6DfVs.mjs → better-auth.Ckq_Q8UM.mjs} +2 -2
- package/dist/shared/{better-auth.BgyblbhF.cjs → better-auth.CxJ_2fTW.cjs} +2 -2
- package/dist/shared/{better-auth.Dvh-YFwT.mjs → better-auth.D6-2nUlx.mjs} +138 -38
- package/dist/shared/{better-auth.Bdf76d5Z.mjs → better-auth.DCB35LVD.mjs} +2 -1
- package/dist/shared/{better-auth.DxtzDaxH.cjs → better-auth.DGaseWvu.cjs} +138 -37
- package/dist/shared/{better-auth.BV34uPij.cjs → better-auth.DOObHhnd.cjs} +1 -1
- package/dist/shared/{better-auth.Bx-sj0KL.d.cts → better-auth.DqE__YRm.d.cts} +1 -1
- package/dist/shared/{better-auth.FvRECEI1.mjs → better-auth.Dw8i6Dcb.mjs} +1 -1
- package/dist/shared/{better-auth.CUQGT7zI.d.cts → better-auth.c8uOsc8s.d.cts} +928 -41
- package/dist/shared/{better-auth.BVyTlGJD.d.cts → better-auth.pfMfSSjQ.d.cts} +1 -1
- package/dist/shared/{better-auth.ZI2NxmSV.d.mts → better-auth.yS_3d_FU.d.mts} +928 -41
- package/dist/social-providers/index.cjs +13 -8
- package/dist/social-providers/index.d.cts +2 -2
- package/dist/social-providers/index.d.mts +2 -2
- package/dist/social-providers/index.d.ts +2 -2
- package/dist/social-providers/index.mjs +13 -8
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/shared/better-auth.B9518la0.d.mts +0 -344
- package/dist/shared/better-auth.BIYNWcaQ.d.cts +0 -344
- package/dist/shared/better-auth.BJfF6T3s.d.ts +0 -344
|
@@ -4,7 +4,7 @@ const server = require('@simplewebauthn/server');
|
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
6
6
|
const zod = require('zod');
|
|
7
|
-
const account = require('../../shared/better-auth.
|
|
7
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
8
8
|
const cookies_index = require('../../cookies/index.cjs');
|
|
9
9
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
10
10
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -22,12 +22,12 @@ require('@better-auth/utils');
|
|
|
22
22
|
require('@better-auth/utils/hex');
|
|
23
23
|
require('@noble/hashes/utils');
|
|
24
24
|
require('@better-auth/utils/random');
|
|
25
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
25
26
|
require('../../social-providers/index.cjs');
|
|
26
27
|
require('@better-fetch/fetch');
|
|
27
28
|
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
28
29
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
29
30
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
30
|
-
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
31
31
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
32
32
|
require('@better-auth/utils/hmac');
|
|
33
33
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
@@ -2,9 +2,9 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
6
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
7
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -2,9 +2,9 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
6
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
7
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -2,9 +2,9 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
6
|
-
import '../../shared/better-auth.
|
|
7
|
-
import '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
6
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
7
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'kysely';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -2,7 +2,7 @@ import { verifyAuthenticationResponse, verifyRegistrationResponse, generateAuthe
|
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
5
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
6
6
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
7
7
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
8
8
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -20,12 +20,12 @@ import '@better-auth/utils';
|
|
|
20
20
|
import '@better-auth/utils/hex';
|
|
21
21
|
import '@noble/hashes/utils';
|
|
22
22
|
import '@better-auth/utils/random';
|
|
23
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
23
24
|
import '../../social-providers/index.mjs';
|
|
24
25
|
import '@better-fetch/fetch';
|
|
25
26
|
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
26
27
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
27
28
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
28
|
-
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
29
29
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
30
30
|
import '@better-auth/utils/hmac';
|
|
31
31
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const account = require('../../shared/better-auth.
|
|
4
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
7
7
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
@@ -10,22 +10,22 @@ require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
|
10
10
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
11
11
|
require('defu');
|
|
12
12
|
const date = require('../../shared/better-auth.C1hdVENX.cjs');
|
|
13
|
-
require('
|
|
14
|
-
require('
|
|
15
|
-
require('jose');
|
|
16
|
-
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
17
|
-
require('@better-auth/utils/base64');
|
|
13
|
+
require('@better-auth/utils/random');
|
|
14
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
18
15
|
require('@better-auth/utils/hash');
|
|
19
16
|
require('@noble/ciphers/chacha');
|
|
20
17
|
require('@noble/ciphers/utils');
|
|
21
18
|
require('@noble/ciphers/webcrypto');
|
|
19
|
+
require('@better-auth/utils/base64');
|
|
20
|
+
require('jose');
|
|
22
21
|
require('@noble/hashes/scrypt');
|
|
23
22
|
require('@better-auth/utils');
|
|
24
23
|
require('@better-auth/utils/hex');
|
|
25
24
|
require('@noble/hashes/utils');
|
|
25
|
+
require('../../social-providers/index.cjs');
|
|
26
|
+
require('@better-fetch/fetch');
|
|
27
|
+
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
26
28
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
27
|
-
require('@better-auth/utils/random');
|
|
28
|
-
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
29
29
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
31
|
require('@better-auth/utils/hmac');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
4
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
4
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
4
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
5
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
5
5
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
@@ -8,22 +8,22 @@ import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
|
8
8
|
import '../../shared/better-auth.Cqykj82J.mjs';
|
|
9
9
|
import 'defu';
|
|
10
10
|
import { g as getDate } from '../../shared/better-auth.CW6D9eSx.mjs';
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import 'jose';
|
|
14
|
-
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
15
|
-
import '@better-auth/utils/base64';
|
|
11
|
+
import '@better-auth/utils/random';
|
|
12
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
16
13
|
import '@better-auth/utils/hash';
|
|
17
14
|
import '@noble/ciphers/chacha';
|
|
18
15
|
import '@noble/ciphers/utils';
|
|
19
16
|
import '@noble/ciphers/webcrypto';
|
|
17
|
+
import '@better-auth/utils/base64';
|
|
18
|
+
import 'jose';
|
|
20
19
|
import '@noble/hashes/scrypt';
|
|
21
20
|
import '@better-auth/utils';
|
|
22
21
|
import '@better-auth/utils/hex';
|
|
23
22
|
import '@noble/hashes/utils';
|
|
23
|
+
import '../../social-providers/index.mjs';
|
|
24
|
+
import '@better-fetch/fetch';
|
|
25
|
+
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
24
26
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
25
|
-
import '@better-auth/utils/random';
|
|
26
|
-
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
27
27
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
29
29
|
import '@better-auth/utils/hmac';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const account = require('../../shared/better-auth.
|
|
5
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -14,6 +14,7 @@ require('@better-auth/utils/base64');
|
|
|
14
14
|
require('@better-auth/utils/hash');
|
|
15
15
|
const state = require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
16
16
|
const jose = require('jose');
|
|
17
|
+
require('@better-auth/utils/random');
|
|
17
18
|
require('../../social-providers/index.cjs');
|
|
18
19
|
require('@noble/ciphers/chacha');
|
|
19
20
|
require('@noble/ciphers/utils');
|
|
@@ -23,7 +24,6 @@ require('@better-auth/utils');
|
|
|
23
24
|
require('@better-auth/utils/hex');
|
|
24
25
|
require('@noble/hashes/utils');
|
|
25
26
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
26
|
-
require('@better-auth/utils/random');
|
|
27
27
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
28
28
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
29
29
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
@@ -661,6 +661,7 @@ const sso = (options) => {
|
|
|
661
661
|
refreshTokenExpiresAt: tokenResponse.refreshTokenExpiresAt,
|
|
662
662
|
scope: tokenResponse.scopes?.join(",")
|
|
663
663
|
},
|
|
664
|
+
callbackURL,
|
|
664
665
|
disableSignUp: options?.disableImplicitSignUp && !requestSignUp,
|
|
665
666
|
overrideUserInfo: config.overrideUserInfo
|
|
666
667
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.BgtukYVC.cjs';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
5
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.CggyDr6H.mjs';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
5
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as OAuth2Tokens } from '../../shared/better-auth.
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { O as OAuth2Tokens } from '../../shared/better-auth.ByC0y0O-.js';
|
|
4
|
+
import { U as User } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
5
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, h as handleOAuthUserInfo, s as sessionMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, h as handleOAuthUserInfo, s as sessionMiddleware } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../shared/better-auth.Cc72UxUH.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -12,6 +12,7 @@ import '@better-auth/utils/base64';
|
|
|
12
12
|
import '@better-auth/utils/hash';
|
|
13
13
|
import { p as parseState, g as generateState } from '../../shared/better-auth.dn8_oqOu.mjs';
|
|
14
14
|
import { decodeJwt } from 'jose';
|
|
15
|
+
import '@better-auth/utils/random';
|
|
15
16
|
import '../../social-providers/index.mjs';
|
|
16
17
|
import '@noble/ciphers/chacha';
|
|
17
18
|
import '@noble/ciphers/utils';
|
|
@@ -21,7 +22,6 @@ import '@better-auth/utils';
|
|
|
21
22
|
import '@better-auth/utils/hex';
|
|
22
23
|
import '@noble/hashes/utils';
|
|
23
24
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
24
|
-
import '@better-auth/utils/random';
|
|
25
25
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
26
26
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
27
27
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -659,6 +659,7 @@ const sso = (options) => {
|
|
|
659
659
|
refreshTokenExpiresAt: tokenResponse.refreshTokenExpiresAt,
|
|
660
660
|
scope: tokenResponse.scopes?.join(",")
|
|
661
661
|
},
|
|
662
|
+
callbackURL,
|
|
662
663
|
disableSignUp: options?.disableImplicitSignUp && !requestSignUp,
|
|
663
664
|
overrideUserInfo: config.overrideUserInfo
|
|
664
665
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
4
4
|
const zod = require('zod');
|
|
5
|
-
const account = require('../../shared/better-auth.
|
|
5
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
6
6
|
const betterCall = require('better-call');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
8
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -25,12 +25,12 @@ const otp = require('@better-auth/utils/otp');
|
|
|
25
25
|
const password = require('../../shared/better-auth.CDXNofOe.cjs');
|
|
26
26
|
const client = require('../../shared/better-auth.DnER2-iT.cjs');
|
|
27
27
|
require('@better-auth/utils/random');
|
|
28
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
28
29
|
require('../../social-providers/index.cjs');
|
|
29
30
|
require('@better-fetch/fetch');
|
|
30
31
|
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
31
32
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
32
33
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
33
|
-
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
34
34
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
35
35
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
36
36
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { U as User, I as InferOptionSchema,
|
|
4
|
-
import { L as LiteralString } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
4
|
+
import { L as LiteralString } from '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { U as User, I as InferOptionSchema,
|
|
4
|
-
import { L as LiteralString } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
4
|
+
import { L as LiteralString } from '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { U as User, I as InferOptionSchema,
|
|
4
|
-
import { L as LiteralString } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
4
|
+
import { L as LiteralString } from '../../shared/better-auth.Bi8FQwDD.js';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { g as getSessionFromCtx, a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, c as createAuthMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { g as getSessionFromCtx, a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, c as createAuthMiddleware } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
4
4
|
import { APIError } from 'better-call';
|
|
5
5
|
import { setSessionCookie, deleteSessionCookie } from '../../cookies/index.mjs';
|
|
6
6
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -23,12 +23,12 @@ import { createOTP } from '@better-auth/utils/otp';
|
|
|
23
23
|
import { v as validatePassword } from '../../shared/better-auth.YwDQhoPc.mjs';
|
|
24
24
|
export { t as twoFactorClient } from '../../shared/better-auth.Ddw8bVyV.mjs';
|
|
25
25
|
import '@better-auth/utils/random';
|
|
26
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
26
27
|
import '../../social-providers/index.mjs';
|
|
27
28
|
import '@better-fetch/fetch';
|
|
28
29
|
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
29
30
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
30
31
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
31
|
-
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
32
32
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
33
33
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
34
34
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const account = require('../../shared/better-auth.
|
|
4
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
9
9
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
10
10
|
require('defu');
|
|
11
|
-
require('
|
|
12
|
-
require('
|
|
13
|
-
require('jose');
|
|
14
|
-
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
15
|
-
require('@better-auth/utils/base64');
|
|
16
|
-
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
11
|
+
require('@better-auth/utils/random');
|
|
12
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
17
13
|
require('@better-auth/utils/hash');
|
|
18
14
|
require('@noble/ciphers/chacha');
|
|
19
15
|
require('@noble/ciphers/utils');
|
|
20
16
|
require('@noble/ciphers/webcrypto');
|
|
17
|
+
require('@better-auth/utils/base64');
|
|
18
|
+
require('jose');
|
|
21
19
|
require('@noble/hashes/scrypt');
|
|
22
20
|
require('@better-auth/utils');
|
|
23
21
|
require('@better-auth/utils/hex');
|
|
24
22
|
require('@noble/hashes/utils');
|
|
25
23
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
26
|
-
require('
|
|
24
|
+
require('../../social-providers/index.cjs');
|
|
25
|
+
require('@better-fetch/fetch');
|
|
26
|
+
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
27
|
+
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
27
28
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
28
|
-
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
29
29
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
31
|
require('@better-auth/utils/hmac');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
4
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
|
+
import '../../shared/better-auth.BgtukYVC.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
4
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
|
+
import '../../shared/better-auth.CggyDr6H.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
4
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
5
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, d as sendVerificationEmailFn, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, d as sendVerificationEmailFn, B as BASE_ERROR_CODES } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
7
7
|
import '../../shared/better-auth.Cqykj82J.mjs';
|
|
8
8
|
import 'defu';
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import 'jose';
|
|
12
|
-
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
13
|
-
import '@better-auth/utils/base64';
|
|
14
|
-
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
9
|
+
import '@better-auth/utils/random';
|
|
10
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
15
11
|
import '@better-auth/utils/hash';
|
|
16
12
|
import '@noble/ciphers/chacha';
|
|
17
13
|
import '@noble/ciphers/utils';
|
|
18
14
|
import '@noble/ciphers/webcrypto';
|
|
15
|
+
import '@better-auth/utils/base64';
|
|
16
|
+
import 'jose';
|
|
19
17
|
import '@noble/hashes/scrypt';
|
|
20
18
|
import '@better-auth/utils';
|
|
21
19
|
import '@better-auth/utils/hex';
|
|
22
20
|
import '@noble/hashes/utils';
|
|
23
21
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
24
|
-
import '
|
|
22
|
+
import '../../social-providers/index.mjs';
|
|
23
|
+
import '@better-fetch/fetch';
|
|
24
|
+
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
25
|
+
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
25
26
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
26
|
-
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
27
27
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
29
29
|
import '@better-auth/utils/hmac';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext,
|
|
3
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.yS_3d_FU.mjs';
|
|
4
4
|
import { Statements } from '../plugins/access/index.mjs';
|
|
5
5
|
|
|
6
6
|
declare const apiKeySchema: ({ timeWindow, rateLimitMax, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext,
|
|
3
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.BmjQ3Bjc.js';
|
|
4
4
|
import { Statements } from '../plugins/access/index.js';
|
|
5
5
|
|
|
6
6
|
declare const apiKeySchema: ({ timeWindow, rateLimitMax, }: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const jose = require('jose');
|
|
4
4
|
const zod = require('zod');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
|
-
const account = require('./better-auth.
|
|
6
|
+
const account = require('./better-auth.DGaseWvu.cjs');
|
|
7
7
|
require('./better-auth.DiSjtgs9.cjs');
|
|
8
8
|
const base64 = require('@better-auth/utils/base64');
|
|
9
9
|
require('@better-auth/utils/hmac');
|
|
@@ -554,7 +554,7 @@ const oidcProvider = (options) => {
|
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
const value = JSON.parse(verification.value);
|
|
557
|
-
if (!value.requireConsent
|
|
557
|
+
if (!value.requireConsent) {
|
|
558
558
|
throw new betterCall.APIError("UNAUTHORIZED", {
|
|
559
559
|
error_description: "Consent not required",
|
|
560
560
|
error: "invalid_request"
|
|
@@ -595,7 +595,7 @@ const oidcProvider = (options) => {
|
|
|
595
595
|
});
|
|
596
596
|
const redirectURI = new URL(value.redirectURI);
|
|
597
597
|
redirectURI.searchParams.set("code", code);
|
|
598
|
-
redirectURI.searchParams.set("state", value.state);
|
|
598
|
+
if (value.state) redirectURI.searchParams.set("state", value.state);
|
|
599
599
|
return ctx.json({
|
|
600
600
|
redirectURI: redirectURI.toString()
|
|
601
601
|
});
|
|
@@ -903,7 +903,7 @@ const oidcProvider = (options) => {
|
|
|
903
903
|
...requestedScopes.includes("profile") ? profile : {},
|
|
904
904
|
...requestedScopes.includes("email") ? email : {}
|
|
905
905
|
};
|
|
906
|
-
const additionalUserClaims = options.getAdditionalUserInfoClaim ? options.getAdditionalUserInfoClaim(user, requestedScopes) : {};
|
|
906
|
+
const additionalUserClaims = options.getAdditionalUserInfoClaim ? await options.getAdditionalUserInfoClaim(user, requestedScopes) : {};
|
|
907
907
|
const idToken = await new jose.SignJWT({
|
|
908
908
|
sub: user.id,
|
|
909
909
|
aud: client_id.toString(),
|
|
@@ -1052,7 +1052,7 @@ const oidcProvider = (options) => {
|
|
|
1052
1052
|
family_name: requestedScopes.includes("profile") ? user.name.split(" ")[1] : void 0,
|
|
1053
1053
|
email_verified: requestedScopes.includes("email") ? user.emailVerified : void 0
|
|
1054
1054
|
};
|
|
1055
|
-
const userClaims = options.getAdditionalUserInfoClaim ? options.getAdditionalUserInfoClaim(user, requestedScopes) : baseUserClaims;
|
|
1055
|
+
const userClaims = options.getAdditionalUserInfoClaim ? await options.getAdditionalUserInfoClaim(user, requestedScopes) : baseUserClaims;
|
|
1056
1056
|
return ctx.json({
|
|
1057
1057
|
...baseUserClaims,
|
|
1058
1058
|
...userClaims
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LiteralString,
|
|
1
|
+
import { L as LiteralString, b as Prettify } from './better-auth.Bi8FQwDD.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
4
|
|
|
@@ -2381,7 +2381,7 @@ declare const socialProviders: {
|
|
|
2381
2381
|
};
|
|
2382
2382
|
};
|
|
2383
2383
|
declare const socialProviderList: ["github", ...(keyof typeof socialProviders)[]];
|
|
2384
|
-
declare const SocialProviderListEnum: z.
|
|
2384
|
+
declare const SocialProviderListEnum: z.ZodType<SocialProviderList[number] | (string & {})>;
|
|
2385
2385
|
type SocialProvider = z.infer<typeof SocialProviderListEnum>;
|
|
2386
2386
|
type SocialProviders = {
|
|
2387
2387
|
[K in SocialProviderList[number]]?: Prettify<Parameters<(typeof socialProviders)[K]>[0] & {
|