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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const schema$1 = require('../../shared/better-auth.BG6vHVNT.cjs');
|
|
4
4
|
const jose = require('jose');
|
|
5
5
|
require('better-call');
|
|
6
|
-
const account = require('../../shared/better-auth.
|
|
6
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
7
7
|
require('zod');
|
|
8
8
|
const index = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -17,9 +17,8 @@ require('../../cookies/index.cjs');
|
|
|
17
17
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
18
18
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
19
19
|
require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
20
|
-
require('
|
|
21
|
-
require('
|
|
22
|
-
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
20
|
+
require('@better-auth/utils/random');
|
|
21
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
23
22
|
require('@better-auth/utils/hash');
|
|
24
23
|
require('@noble/ciphers/chacha');
|
|
25
24
|
require('@noble/ciphers/utils');
|
|
@@ -29,8 +28,9 @@ require('@better-auth/utils');
|
|
|
29
28
|
require('@better-auth/utils/hex');
|
|
30
29
|
require('@noble/hashes/utils');
|
|
31
30
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
32
|
-
require('
|
|
33
|
-
require('
|
|
31
|
+
require('../../social-providers/index.cjs');
|
|
32
|
+
require('@better-fetch/fetch');
|
|
33
|
+
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
34
34
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
35
35
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
36
36
|
require('jose/errors');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.c8uOsc8s.cjs';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
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
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.yS_3d_FU.mjs';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
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
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
3
|
-
import '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.BmjQ3Bjc.js';
|
|
3
|
+
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../../shared/better-auth.
|
|
5
|
+
import '../../shared/better-auth.ByC0y0O-.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
8
8
|
import 'better-sqlite3';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as schema } from '../../shared/better-auth.fsvwNeUx.mjs';
|
|
2
2
|
import { generateKeyPair, exportJWK, importJWK, SignJWT } from 'jose';
|
|
3
3
|
import 'better-call';
|
|
4
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.
|
|
4
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -15,9 +15,8 @@ import '../../cookies/index.mjs';
|
|
|
15
15
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
16
16
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
17
17
|
import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
20
|
-
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
18
|
+
import '@better-auth/utils/random';
|
|
19
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
21
20
|
import '@better-auth/utils/hash';
|
|
22
21
|
import '@noble/ciphers/chacha';
|
|
23
22
|
import '@noble/ciphers/utils';
|
|
@@ -27,8 +26,9 @@ import '@better-auth/utils';
|
|
|
27
26
|
import '@better-auth/utils/hex';
|
|
28
27
|
import '@noble/hashes/utils';
|
|
29
28
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
29
|
+
import '../../social-providers/index.mjs';
|
|
30
|
+
import '@better-fetch/fetch';
|
|
31
|
+
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
32
32
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
33
33
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
34
34
|
import 'jose/errors';
|
|
@@ -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 cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('@better-auth/utils/hash');
|
|
@@ -19,13 +19,13 @@ require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
|
19
19
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
20
20
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
21
21
|
require('defu');
|
|
22
|
+
require('@better-auth/utils/random');
|
|
23
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
22
24
|
require('../../social-providers/index.cjs');
|
|
23
25
|
require('@better-fetch/fetch');
|
|
24
26
|
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
25
27
|
require('../../shared/better-auth.C1hdVENX.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');
|
|
@@ -98,7 +98,9 @@ const magicLink = (options) => {
|
|
|
98
98
|
},
|
|
99
99
|
ctx
|
|
100
100
|
);
|
|
101
|
-
const url = `${ctx.context.baseURL}/magic-link/verify?token=${verificationToken}&callbackURL=${
|
|
101
|
+
const url = `${ctx.context.baseURL}/magic-link/verify?token=${verificationToken}&callbackURL=${encodeURIComponent(
|
|
102
|
+
ctx.body.callbackURL || "/"
|
|
103
|
+
)}`;
|
|
102
104
|
await options.sendMagicLink(
|
|
103
105
|
{
|
|
104
106
|
email,
|
|
@@ -124,7 +126,11 @@ const magicLink = (options) => {
|
|
|
124
126
|
description: "URL to redirect after magic link verification, if not provided will return session"
|
|
125
127
|
}).optional()
|
|
126
128
|
}),
|
|
127
|
-
use: [
|
|
129
|
+
use: [
|
|
130
|
+
account.originCheck((ctx) => {
|
|
131
|
+
return ctx.query.callbackURL ? decodeURIComponent(ctx.query.callbackURL) : "/";
|
|
132
|
+
})
|
|
133
|
+
],
|
|
128
134
|
requireHeaders: true,
|
|
129
135
|
metadata: {
|
|
130
136
|
openapi: {
|
|
@@ -153,7 +159,8 @@ const magicLink = (options) => {
|
|
|
153
159
|
}
|
|
154
160
|
},
|
|
155
161
|
async (ctx) => {
|
|
156
|
-
const
|
|
162
|
+
const token = ctx.query.token;
|
|
163
|
+
const callbackURL = ctx.query.callbackURL ? decodeURIComponent(ctx.query.callbackURL) : "/";
|
|
157
164
|
const toRedirectTo = callbackURL?.startsWith("http") ? callbackURL : callbackURL ? `${ctx.context.options.baseURL}${callbackURL}` : ctx.context.options.baseURL;
|
|
158
165
|
const tokenValue = await ctx.context.internalAdapter.findVerificationValue(token);
|
|
159
166
|
if (!tokenValue) {
|
|
@@ -187,7 +194,9 @@ const magicLink = (options) => {
|
|
|
187
194
|
);
|
|
188
195
|
}
|
|
189
196
|
} else {
|
|
190
|
-
throw ctx.redirect(
|
|
197
|
+
throw ctx.redirect(
|
|
198
|
+
`${toRedirectTo}?error=new_user_signup_disabled`
|
|
199
|
+
);
|
|
191
200
|
}
|
|
192
201
|
}
|
|
193
202
|
if (!user.emailVerified) {
|
|
@@ -212,7 +221,7 @@ const magicLink = (options) => {
|
|
|
212
221
|
session,
|
|
213
222
|
user
|
|
214
223
|
});
|
|
215
|
-
if (!callbackURL) {
|
|
224
|
+
if (!ctx.query.callbackURL) {
|
|
216
225
|
return ctx.json({
|
|
217
226
|
token: session.token,
|
|
218
227
|
user: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as createAuthEndpoint, o as originCheck, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { a as createAuthEndpoint, o as originCheck, 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 '@better-auth/utils/hash';
|
|
@@ -17,13 +17,13 @@ import '../../shared/better-auth.Cc72UxUH.mjs';
|
|
|
17
17
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
18
18
|
import '../../shared/better-auth.Cqykj82J.mjs';
|
|
19
19
|
import 'defu';
|
|
20
|
+
import '@better-auth/utils/random';
|
|
21
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
20
22
|
import '../../social-providers/index.mjs';
|
|
21
23
|
import '@better-fetch/fetch';
|
|
22
24
|
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
23
25
|
import '../../shared/better-auth.CW6D9eSx.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';
|
|
@@ -96,7 +96,9 @@ const magicLink = (options) => {
|
|
|
96
96
|
},
|
|
97
97
|
ctx
|
|
98
98
|
);
|
|
99
|
-
const url = `${ctx.context.baseURL}/magic-link/verify?token=${verificationToken}&callbackURL=${
|
|
99
|
+
const url = `${ctx.context.baseURL}/magic-link/verify?token=${verificationToken}&callbackURL=${encodeURIComponent(
|
|
100
|
+
ctx.body.callbackURL || "/"
|
|
101
|
+
)}`;
|
|
100
102
|
await options.sendMagicLink(
|
|
101
103
|
{
|
|
102
104
|
email,
|
|
@@ -122,7 +124,11 @@ const magicLink = (options) => {
|
|
|
122
124
|
description: "URL to redirect after magic link verification, if not provided will return session"
|
|
123
125
|
}).optional()
|
|
124
126
|
}),
|
|
125
|
-
use: [
|
|
127
|
+
use: [
|
|
128
|
+
originCheck((ctx) => {
|
|
129
|
+
return ctx.query.callbackURL ? decodeURIComponent(ctx.query.callbackURL) : "/";
|
|
130
|
+
})
|
|
131
|
+
],
|
|
126
132
|
requireHeaders: true,
|
|
127
133
|
metadata: {
|
|
128
134
|
openapi: {
|
|
@@ -151,7 +157,8 @@ const magicLink = (options) => {
|
|
|
151
157
|
}
|
|
152
158
|
},
|
|
153
159
|
async (ctx) => {
|
|
154
|
-
const
|
|
160
|
+
const token = ctx.query.token;
|
|
161
|
+
const callbackURL = ctx.query.callbackURL ? decodeURIComponent(ctx.query.callbackURL) : "/";
|
|
155
162
|
const toRedirectTo = callbackURL?.startsWith("http") ? callbackURL : callbackURL ? `${ctx.context.options.baseURL}${callbackURL}` : ctx.context.options.baseURL;
|
|
156
163
|
const tokenValue = await ctx.context.internalAdapter.findVerificationValue(token);
|
|
157
164
|
if (!tokenValue) {
|
|
@@ -185,7 +192,9 @@ const magicLink = (options) => {
|
|
|
185
192
|
);
|
|
186
193
|
}
|
|
187
194
|
} else {
|
|
188
|
-
throw ctx.redirect(
|
|
195
|
+
throw ctx.redirect(
|
|
196
|
+
`${toRedirectTo}?error=new_user_signup_disabled`
|
|
197
|
+
);
|
|
189
198
|
}
|
|
190
199
|
}
|
|
191
200
|
if (!user.emailVerified) {
|
|
@@ -210,7 +219,7 @@ const magicLink = (options) => {
|
|
|
210
219
|
session,
|
|
211
220
|
user
|
|
212
221
|
});
|
|
213
|
-
if (!callbackURL) {
|
|
222
|
+
if (!ctx.query.callbackURL) {
|
|
214
223
|
return ctx.json({
|
|
215
224
|
token: session.token,
|
|
216
225
|
user: {
|
|
@@ -2,30 +2,30 @@
|
|
|
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');
|
|
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 { S as Session, U as User, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { S as Session, U as User, 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 { S as Session, U as User, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { S as Session, U as User, 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 { S as Session, U as User, H as HookEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { S as Session, U as User, 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
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
4
4
|
import { parseSetCookieHeader, parseCookies, setSessionCookie, deleteSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
require('better-call');
|
|
5
|
-
const account = require('../../shared/better-auth.
|
|
5
|
+
const account = require('../../shared/better-auth.DGaseWvu.cjs');
|
|
6
6
|
const env = require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
@@ -15,21 +15,21 @@ require('../../cookies/index.cjs');
|
|
|
15
15
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
16
16
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
17
17
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
18
|
-
require('
|
|
19
|
-
require('
|
|
20
|
-
require('jose');
|
|
21
|
-
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
18
|
+
require('@better-auth/utils/random');
|
|
19
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
22
20
|
require('@better-auth/utils/hash');
|
|
23
21
|
require('@noble/ciphers/chacha');
|
|
24
22
|
require('@noble/ciphers/utils');
|
|
25
23
|
require('@noble/ciphers/webcrypto');
|
|
24
|
+
require('jose');
|
|
26
25
|
require('@noble/hashes/scrypt');
|
|
27
26
|
require('@better-auth/utils');
|
|
28
27
|
require('@better-auth/utils/hex');
|
|
29
28
|
require('@noble/hashes/utils');
|
|
30
29
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
31
|
-
require('
|
|
32
|
-
require('
|
|
30
|
+
require('../../social-providers/index.cjs');
|
|
31
|
+
require('@better-fetch/fetch');
|
|
32
|
+
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
33
33
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
34
34
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
35
35
|
require('jose/errors');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext,
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext, p as AuthContext } 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 { H as HookEndpointContext,
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext, p as AuthContext } 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 { H as HookEndpointContext,
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext, p as AuthContext } 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,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, o as originCheck } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, o as originCheck } from '../../shared/better-auth.D6-2nUlx.mjs';
|
|
4
4
|
import { e as env } from '../../shared/better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
@@ -13,21 +13,21 @@ import '../../cookies/index.mjs';
|
|
|
13
13
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
14
14
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
15
15
|
import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import 'jose';
|
|
19
|
-
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
16
|
+
import '@better-auth/utils/random';
|
|
17
|
+
import '../../shared/better-auth.dn8_oqOu.mjs';
|
|
20
18
|
import '@better-auth/utils/hash';
|
|
21
19
|
import '@noble/ciphers/chacha';
|
|
22
20
|
import '@noble/ciphers/utils';
|
|
23
21
|
import '@noble/ciphers/webcrypto';
|
|
22
|
+
import 'jose';
|
|
24
23
|
import '@noble/hashes/scrypt';
|
|
25
24
|
import '@better-auth/utils';
|
|
26
25
|
import '@better-auth/utils/hex';
|
|
27
26
|
import '@noble/hashes/utils';
|
|
28
27
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
28
|
+
import '../../social-providers/index.mjs';
|
|
29
|
+
import '@better-fetch/fetch';
|
|
30
|
+
import '../../shared/better-auth.DufyW0qf.mjs';
|
|
31
31
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
32
32
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
33
33
|
import 'jose/errors';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require('jose');
|
|
4
4
|
require('zod');
|
|
5
5
|
require('better-call');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.DGaseWvu.cjs');
|
|
7
7
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
8
8
|
require('@better-auth/utils/base64');
|
|
9
9
|
require('@better-auth/utils/hmac');
|
|
@@ -20,14 +20,14 @@ require('@better-auth/utils');
|
|
|
20
20
|
require('@better-auth/utils/hex');
|
|
21
21
|
require('@noble/hashes/utils');
|
|
22
22
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
23
|
-
const plugins_oidcProvider_index = require('../../shared/better-auth.
|
|
23
|
+
const plugins_oidcProvider_index = require('../../shared/better-auth.BWb7XZvT.cjs');
|
|
24
|
+
require('@better-auth/utils/random');
|
|
25
|
+
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
24
26
|
require('../../social-providers/index.cjs');
|
|
25
27
|
require('@better-fetch/fetch');
|
|
26
28
|
require('../../shared/better-auth.6XyKj7DG.cjs');
|
|
27
29
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
28
30
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
29
|
-
require('@better-auth/utils/random');
|
|
30
|
-
require('../../shared/better-auth.CWJ7qc0w.cjs');
|
|
31
31
|
require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
32
32
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
33
33
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { U as User, G as GenericEndpointContext } 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';
|
|
@@ -805,7 +805,7 @@ declare const oidcProvider: (options: OIDCOptions) => {
|
|
|
805
805
|
returnHeaders?: ReturnHeaders | undefined;
|
|
806
806
|
}) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
807
807
|
headers: Headers;
|
|
808
|
-
response:
|
|
808
|
+
response: {
|
|
809
809
|
sub: string;
|
|
810
810
|
email: string | undefined;
|
|
811
811
|
name: string | undefined;
|
|
@@ -822,7 +822,7 @@ declare const oidcProvider: (options: OIDCOptions) => {
|
|
|
822
822
|
family_name: string | undefined;
|
|
823
823
|
email_verified: boolean | undefined;
|
|
824
824
|
};
|
|
825
|
-
} :
|
|
825
|
+
} : {
|
|
826
826
|
sub: string;
|
|
827
827
|
email: string | undefined;
|
|
828
828
|
name: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { U as User, G as GenericEndpointContext } 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';
|
|
@@ -805,7 +805,7 @@ declare const oidcProvider: (options: OIDCOptions) => {
|
|
|
805
805
|
returnHeaders?: ReturnHeaders | undefined;
|
|
806
806
|
}) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
807
807
|
headers: Headers;
|
|
808
|
-
response:
|
|
808
|
+
response: {
|
|
809
809
|
sub: string;
|
|
810
810
|
email: string | undefined;
|
|
811
811
|
name: string | undefined;
|
|
@@ -822,7 +822,7 @@ declare const oidcProvider: (options: OIDCOptions) => {
|
|
|
822
822
|
family_name: string | undefined;
|
|
823
823
|
email_verified: boolean | undefined;
|
|
824
824
|
};
|
|
825
|
-
} :
|
|
825
|
+
} : {
|
|
826
826
|
sub: string;
|
|
827
827
|
email: string | undefined;
|
|
828
828
|
name: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
4
|
-
import '../../shared/better-auth.
|
|
5
|
-
import '../../shared/better-auth.
|
|
3
|
+
import { U as User, G as GenericEndpointContext } 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';
|
|
@@ -805,7 +805,7 @@ declare const oidcProvider: (options: OIDCOptions) => {
|
|
|
805
805
|
returnHeaders?: ReturnHeaders | undefined;
|
|
806
806
|
}) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
|
|
807
807
|
headers: Headers;
|
|
808
|
-
response:
|
|
808
|
+
response: {
|
|
809
809
|
sub: string;
|
|
810
810
|
email: string | undefined;
|
|
811
811
|
name: string | undefined;
|
|
@@ -822,7 +822,7 @@ declare const oidcProvider: (options: OIDCOptions) => {
|
|
|
822
822
|
family_name: string | undefined;
|
|
823
823
|
email_verified: boolean | undefined;
|
|
824
824
|
};
|
|
825
|
-
} :
|
|
825
|
+
} : {
|
|
826
826
|
sub: string;
|
|
827
827
|
email: string | undefined;
|
|
828
828
|
name: string | undefined;
|