better-auth 1.2.5-beta.4 → 1.2.5-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle-adapter/index.cjs +1 -1
- package/dist/adapters/drizzle-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/drizzle-adapter/index.mjs +1 -1
- package/dist/adapters/kysely-adapter/index.cjs +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.mjs +2 -2
- package/dist/adapters/memory-adapter/index.cjs +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.mjs +2 -2
- package/dist/adapters/mongodb-adapter/index.cjs +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.mjs +1 -1
- package/dist/adapters/prisma-adapter/index.cjs +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.mjs +1 -1
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/api/index.cjs +10 -5
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +11 -6
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/client/plugins/index.cjs +3 -1
- package/dist/client/plugins/index.d.cts +6 -4
- package/dist/client/plugins/index.d.mts +6 -4
- package/dist/client/plugins/index.d.ts +6 -4
- package/dist/client/plugins/index.mjs +3 -1
- package/dist/client/react/index.cjs +1 -1
- package/dist/client/react/index.d.cts +2 -2
- package/dist/client/react/index.d.mts +2 -2
- package/dist/client/react/index.d.ts +2 -2
- package/dist/client/react/index.mjs +1 -1
- package/dist/client/solid/index.cjs +1 -1
- package/dist/client/solid/index.d.cts +2 -2
- package/dist/client/solid/index.d.mts +2 -2
- package/dist/client/solid/index.d.ts +2 -2
- package/dist/client/solid/index.mjs +1 -1
- package/dist/client/svelte/index.cjs +1 -1
- package/dist/client/svelte/index.d.cts +2 -2
- package/dist/client/svelte/index.d.mts +2 -2
- package/dist/client/svelte/index.d.ts +2 -2
- package/dist/client/svelte/index.mjs +1 -1
- package/dist/client/vue/index.cjs +1 -1
- package/dist/client/vue/index.d.cts +2 -2
- package/dist/client/vue/index.d.mts +2 -2
- package/dist/client/vue/index.d.ts +2 -2
- package/dist/client/vue/index.mjs +1 -1
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.cjs +4 -4
- package/dist/db/index.d.cts +3 -3
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.d.ts +3 -3
- package/dist/db/index.mjs +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +8 -8
- package/dist/integrations/next-js.cjs +6 -6
- package/dist/integrations/next-js.d.cts +3 -11
- package/dist/integrations/next-js.d.mts +3 -11
- package/dist/integrations/next-js.d.ts +3 -11
- package/dist/integrations/next-js.mjs +6 -6
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/oauth2/index.cjs +2 -2
- package/dist/oauth2/index.d.cts +14 -6
- package/dist/oauth2/index.d.mts +14 -6
- package/dist/oauth2/index.d.ts +14 -6
- package/dist/oauth2/index.mjs +2 -2
- package/dist/plugins/admin/index.cjs +5 -5
- package/dist/plugins/admin/index.d.cts +615 -295
- package/dist/plugins/admin/index.d.mts +615 -295
- package/dist/plugins/admin/index.d.ts +615 -295
- package/dist/plugins/admin/index.mjs +5 -5
- package/dist/plugins/anonymous/index.cjs +5 -5
- package/dist/plugins/anonymous/index.d.cts +33 -23
- package/dist/plugins/anonymous/index.d.mts +33 -23
- package/dist/plugins/anonymous/index.d.ts +33 -23
- package/dist/plugins/anonymous/index.mjs +5 -5
- package/dist/plugins/bearer/index.cjs +4 -4
- package/dist/plugins/bearer/index.d.cts +4 -20
- package/dist/plugins/bearer/index.d.mts +4 -20
- package/dist/plugins/bearer/index.d.ts +4 -20
- package/dist/plugins/bearer/index.mjs +4 -4
- package/dist/plugins/custom-session/index.cjs +4 -4
- package/dist/plugins/custom-session/index.d.cts +22 -15
- package/dist/plugins/custom-session/index.d.mts +22 -15
- package/dist/plugins/custom-session/index.d.ts +22 -15
- package/dist/plugins/custom-session/index.mjs +4 -4
- package/dist/plugins/email-otp/index.cjs +4 -4
- package/dist/plugins/email-otp/index.d.cts +241 -95
- package/dist/plugins/email-otp/index.d.mts +241 -95
- package/dist/plugins/email-otp/index.d.ts +241 -95
- package/dist/plugins/email-otp/index.mjs +4 -4
- package/dist/plugins/generic-oauth/index.cjs +20 -17
- package/dist/plugins/generic-oauth/index.d.cts +129 -50
- package/dist/plugins/generic-oauth/index.d.mts +129 -50
- package/dist/plugins/generic-oauth/index.d.ts +129 -50
- package/dist/plugins/generic-oauth/index.mjs +20 -17
- package/dist/plugins/index.cjs +11 -11
- package/dist/plugins/index.d.cts +3 -3
- package/dist/plugins/index.d.mts +3 -3
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/index.mjs +12 -12
- package/dist/plugins/jwt/index.cjs +4 -4
- package/dist/plugins/jwt/index.d.cts +105 -44
- package/dist/plugins/jwt/index.d.mts +105 -44
- package/dist/plugins/jwt/index.d.ts +105 -44
- package/dist/plugins/jwt/index.mjs +4 -4
- package/dist/plugins/magic-link/index.cjs +4 -4
- package/dist/plugins/magic-link/index.d.cts +77 -33
- package/dist/plugins/magic-link/index.d.mts +77 -33
- package/dist/plugins/magic-link/index.d.ts +77 -33
- package/dist/plugins/magic-link/index.mjs +4 -4
- package/dist/plugins/multi-session/index.cjs +5 -5
- package/dist/plugins/multi-session/index.d.cts +123 -65
- package/dist/plugins/multi-session/index.d.mts +123 -65
- package/dist/plugins/multi-session/index.d.ts +123 -65
- package/dist/plugins/multi-session/index.mjs +5 -5
- package/dist/plugins/oauth-proxy/index.cjs +4 -4
- package/dist/plugins/oauth-proxy/index.d.cts +42 -41
- package/dist/plugins/oauth-proxy/index.d.mts +42 -41
- package/dist/plugins/oauth-proxy/index.d.ts +42 -41
- package/dist/plugins/oauth-proxy/index.mjs +4 -4
- package/dist/plugins/oidc-provider/index.cjs +17 -11
- package/dist/plugins/oidc-provider/index.d.cts +173 -117
- package/dist/plugins/oidc-provider/index.d.mts +173 -117
- package/dist/plugins/oidc-provider/index.d.ts +173 -117
- package/dist/plugins/oidc-provider/index.mjs +17 -11
- package/dist/plugins/one-tap/index.cjs +5 -5
- package/dist/plugins/one-tap/index.d.cts +39 -12
- package/dist/plugins/one-tap/index.d.mts +39 -12
- package/dist/plugins/one-tap/index.d.ts +39 -12
- package/dist/plugins/one-tap/index.mjs +5 -5
- package/dist/plugins/open-api/index.cjs +4 -4
- package/dist/plugins/open-api/index.d.cts +15 -26
- package/dist/plugins/open-api/index.d.mts +15 -26
- package/dist/plugins/open-api/index.d.ts +15 -26
- package/dist/plugins/open-api/index.mjs +4 -4
- package/dist/plugins/organization/index.cjs +5 -5
- package/dist/plugins/organization/index.d.cts +4277 -4932
- package/dist/plugins/organization/index.d.mts +4277 -4932
- package/dist/plugins/organization/index.d.ts +4277 -4932
- package/dist/plugins/organization/index.mjs +5 -5
- package/dist/plugins/passkey/index.cjs +4 -4
- package/dist/plugins/passkey/index.d.cts +449 -136
- package/dist/plugins/passkey/index.d.mts +449 -136
- package/dist/plugins/passkey/index.d.ts +449 -136
- package/dist/plugins/passkey/index.mjs +4 -4
- package/dist/plugins/phone-number/index.cjs +4 -4
- package/dist/plugins/phone-number/index.d.cts +164 -64
- package/dist/plugins/phone-number/index.d.mts +164 -64
- package/dist/plugins/phone-number/index.d.ts +164 -64
- package/dist/plugins/phone-number/index.mjs +4 -4
- package/dist/plugins/sso/index.cjs +4 -4
- package/dist/plugins/sso/index.d.cts +199 -49
- package/dist/plugins/sso/index.d.mts +199 -49
- package/dist/plugins/sso/index.d.ts +199 -49
- package/dist/plugins/sso/index.mjs +4 -4
- package/dist/plugins/two-factor/index.cjs +6 -6
- package/dist/plugins/two-factor/index.d.cts +731 -233
- package/dist/plugins/two-factor/index.d.mts +731 -233
- package/dist/plugins/two-factor/index.d.ts +731 -233
- package/dist/plugins/two-factor/index.mjs +6 -6
- package/dist/plugins/username/index.cjs +5 -5
- package/dist/plugins/username/index.d.cts +43 -23
- package/dist/plugins/username/index.d.mts +43 -23
- package/dist/plugins/username/index.d.ts +43 -23
- package/dist/plugins/username/index.mjs +5 -5
- package/dist/shared/{better-auth.DpK5DyQT.cjs → better-auth.1GtLBK1J.cjs} +5 -5
- package/dist/shared/{better-auth.Dz0hfDVL.d.cts → better-auth.2fbYHU01.d.mts} +186 -115
- package/dist/shared/{better-auth.xcEiilVu.d.ts → better-auth.Al7ra9Pe.d.cts} +186 -115
- package/dist/shared/{better-auth.BiRM8Fdy.cjs → better-auth.B3unKFue.cjs} +2 -2
- package/dist/shared/{better-auth.kkBzxQJx.d.ts → better-auth.BODzPfJo.d.ts} +10299 -11599
- package/dist/shared/{better-auth.CbXAPXob.mjs → better-auth.BdyOG_p4.mjs} +1 -1
- package/dist/shared/{better-auth.DWb95UJA.d.ts → better-auth.BjXInNL7.d.ts} +1 -1
- package/dist/shared/{better-auth.D26n-znb.d.cts → better-auth.BkL9ntGY.d.cts} +10299 -11599
- package/dist/shared/{better-auth.B36e4YUo.d.cts → better-auth.BkREA_U6.d.cts} +99 -18
- package/dist/shared/{better-auth.HHZU10im.mjs → better-auth.BnRFp-t0.mjs} +1 -1
- package/dist/shared/{better-auth.CHyZMcYK.cjs → better-auth.C5H9XEzZ.cjs} +2 -2
- package/dist/shared/{better-auth.C678re3w.d.mts → better-auth.C7O0617V.d.mts} +1 -1
- package/dist/shared/{better-auth.BJVJYVcJ.mjs → better-auth.CKCPM9Oy.mjs} +2 -2
- package/dist/shared/{better-auth.BgAsaHGJ.d.mts → better-auth.CV08HOs_.d.ts} +186 -115
- package/dist/shared/{better-auth.2gyOPXIw.d.ts → better-auth.CVEUIYlu.d.ts} +99 -18
- package/dist/shared/{better-auth.CUEbBDI6.mjs → better-auth.CbBX7Xla.mjs} +3 -3
- package/dist/shared/{better-auth.C24Bzw4w.mjs → better-auth.CepcSj5H.mjs} +2 -2
- package/dist/shared/{better-auth.C00ERbVB.cjs → better-auth.ChassmKE.cjs} +11 -4
- package/dist/shared/{better-auth.C7bUpbPE.d.mts → better-auth.CmWesETc.d.mts} +99 -18
- package/dist/shared/{better-auth.D8LeJoj0.mjs → better-auth.DC8JQbiE.mjs} +1 -1
- package/dist/shared/{better-auth.DZnoWLte.cjs → better-auth.DWHWPllD.cjs} +1 -1
- package/dist/shared/{better-auth.CSVqSIae.mjs → better-auth.DYm-YVE1.mjs} +1 -1
- package/dist/shared/{better-auth.BgoXd7dr.d.mts → better-auth.D_6ikAPh.d.mts} +10299 -11599
- package/dist/shared/{better-auth.DdjqxOIu.cjs → better-auth.DgXCgiHI.cjs} +22 -8
- package/dist/shared/{better-auth.D7syfoJW.mjs → better-auth.DiMBK1Ep.mjs} +22 -8
- package/dist/shared/{better-auth.lwzD09PV.cjs → better-auth.DqLjzBlO.cjs} +1 -1
- package/dist/shared/{better-auth.CHHC_PJT.cjs → better-auth.QbbyHMYf.cjs} +1 -1
- package/dist/shared/{better-auth.BN2jUYPL.cjs → better-auth.R2B_T2k0.cjs} +1 -1
- package/dist/shared/{better-auth.CPv7iscr.d.cts → better-auth.RZCibiKy.d.cts} +1 -1
- package/dist/shared/{better-auth.C6ZiueUc.mjs → better-auth.UO_GAdaM.mjs} +5 -5
- package/dist/shared/{better-auth.BddF2Yaz.cjs → better-auth.X0ynzeu1.cjs} +3 -3
- package/dist/shared/{better-auth.BdiSabiO.cjs → better-auth.aci1hpij.cjs} +11 -11
- package/dist/shared/{better-auth.CJ1_dCz5.mjs → better-auth.lijknCkI.mjs} +11 -11
- package/dist/shared/{better-auth.CrWUABzd.mjs → better-auth.vdKrG2Zp.mjs} +11 -4
- package/dist/social-providers/index.cjs +43 -18
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +43 -18
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as admin } from '../../shared/better-auth.
|
|
1
|
+
export { a as admin } from '../../shared/better-auth.lijknCkI.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'better-call';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.vdKrG2Zp.mjs';
|
|
5
5
|
import '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -13,8 +13,8 @@ import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
13
13
|
import '../../social-providers/index.mjs';
|
|
14
14
|
import '@better-fetch/fetch';
|
|
15
15
|
import 'jose';
|
|
16
|
+
import '../../shared/better-auth.DiMBK1Ep.mjs';
|
|
16
17
|
import '@better-auth/utils/hash';
|
|
17
|
-
import '../../shared/better-auth.D7syfoJW.mjs';
|
|
18
18
|
import '@noble/ciphers/chacha';
|
|
19
19
|
import '@noble/ciphers/utils';
|
|
20
20
|
import '@noble/ciphers/webcrypto';
|
|
@@ -25,9 +25,9 @@ import '@noble/hashes/utils';
|
|
|
25
25
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
26
26
|
import '@better-auth/utils/random';
|
|
27
27
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
28
|
-
import '../../shared/better-auth.
|
|
28
|
+
import '../../shared/better-auth.BdyOG_p4.mjs';
|
|
29
29
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
30
|
-
import '../../shared/better-auth.
|
|
30
|
+
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
31
31
|
import 'defu';
|
|
32
32
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
33
33
|
import 'jose/errors';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const account = require('../../shared/better-auth.
|
|
4
|
+
const account = require('../../shared/better-auth.ChassmKE.cjs');
|
|
5
5
|
require('zod');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
|
-
const schema$1 = require('../../shared/better-auth.
|
|
7
|
+
const schema$1 = require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
9
9
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
10
10
|
require('defu');
|
|
@@ -12,10 +12,10 @@ const url = require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
12
12
|
require('../../social-providers/index.cjs');
|
|
13
13
|
require('@better-fetch/fetch');
|
|
14
14
|
require('jose');
|
|
15
|
+
require('../../shared/better-auth.DgXCgiHI.cjs');
|
|
16
|
+
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
15
17
|
require('@better-auth/utils/hash');
|
|
16
18
|
require('@better-auth/utils/base64');
|
|
17
|
-
require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
18
|
-
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
19
19
|
require('@noble/ciphers/chacha');
|
|
20
20
|
require('@noble/ciphers/utils');
|
|
21
21
|
require('@noble/ciphers/webcrypto');
|
|
@@ -26,7 +26,7 @@ require('@noble/hashes/utils');
|
|
|
26
26
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
27
27
|
require('@better-auth/utils/random');
|
|
28
28
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
29
|
-
require('../../shared/better-auth.
|
|
29
|
+
require('../../shared/better-auth.QbbyHMYf.cjs');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
31
|
require('@better-auth/utils/hmac');
|
|
32
32
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.BkL9ntGY.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BkREA_U6.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -54,18 +54,36 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
54
54
|
id: "anonymous";
|
|
55
55
|
endpoints: {
|
|
56
56
|
signInAnonymous: {
|
|
57
|
-
<C extends [({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
<C extends [(better_call.InputContext<"/sign-in/anonymous", {
|
|
58
|
+
method: "POST";
|
|
59
|
+
metadata: {
|
|
60
|
+
openapi: {
|
|
61
|
+
description: string;
|
|
62
|
+
responses: {
|
|
63
|
+
200: {
|
|
64
|
+
description: string;
|
|
65
|
+
content: {
|
|
66
|
+
"application/json": {
|
|
67
|
+
schema: {
|
|
68
|
+
type: "object";
|
|
69
|
+
properties: {
|
|
70
|
+
user: {
|
|
71
|
+
$ref: string;
|
|
72
|
+
};
|
|
73
|
+
session: {
|
|
74
|
+
$ref: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} & {
|
|
85
|
+
use: any[];
|
|
86
|
+
}> | undefined)?]>(...inputCtx: C): Promise<C extends [{
|
|
69
87
|
asResponse: true;
|
|
70
88
|
}] ? Response : C extends [{
|
|
71
89
|
returnHeaders: true;
|
|
@@ -129,15 +147,7 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
129
147
|
hooks: {
|
|
130
148
|
after: {
|
|
131
149
|
matcher(ctx: HookEndpointContext): boolean;
|
|
132
|
-
handler: (inputContext:
|
|
133
|
-
body?: any;
|
|
134
|
-
query?: Record<string, any> | undefined;
|
|
135
|
-
request?: Request | undefined;
|
|
136
|
-
headers?: Headers | undefined;
|
|
137
|
-
asResponse?: boolean | undefined;
|
|
138
|
-
returnHeaders?: boolean | undefined;
|
|
139
|
-
use?: better_call.Middleware[] | undefined;
|
|
140
|
-
}) => Promise<void>;
|
|
150
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
141
151
|
}[];
|
|
142
152
|
};
|
|
143
153
|
schema: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.D_6ikAPh.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CmWesETc.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -54,18 +54,36 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
54
54
|
id: "anonymous";
|
|
55
55
|
endpoints: {
|
|
56
56
|
signInAnonymous: {
|
|
57
|
-
<C extends [({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
<C extends [(better_call.InputContext<"/sign-in/anonymous", {
|
|
58
|
+
method: "POST";
|
|
59
|
+
metadata: {
|
|
60
|
+
openapi: {
|
|
61
|
+
description: string;
|
|
62
|
+
responses: {
|
|
63
|
+
200: {
|
|
64
|
+
description: string;
|
|
65
|
+
content: {
|
|
66
|
+
"application/json": {
|
|
67
|
+
schema: {
|
|
68
|
+
type: "object";
|
|
69
|
+
properties: {
|
|
70
|
+
user: {
|
|
71
|
+
$ref: string;
|
|
72
|
+
};
|
|
73
|
+
session: {
|
|
74
|
+
$ref: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} & {
|
|
85
|
+
use: any[];
|
|
86
|
+
}> | undefined)?]>(...inputCtx: C): Promise<C extends [{
|
|
69
87
|
asResponse: true;
|
|
70
88
|
}] ? Response : C extends [{
|
|
71
89
|
returnHeaders: true;
|
|
@@ -129,15 +147,7 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
129
147
|
hooks: {
|
|
130
148
|
after: {
|
|
131
149
|
matcher(ctx: HookEndpointContext): boolean;
|
|
132
|
-
handler: (inputContext:
|
|
133
|
-
body?: any;
|
|
134
|
-
query?: Record<string, any> | undefined;
|
|
135
|
-
request?: Request | undefined;
|
|
136
|
-
headers?: Headers | undefined;
|
|
137
|
-
asResponse?: boolean | undefined;
|
|
138
|
-
returnHeaders?: boolean | undefined;
|
|
139
|
-
use?: better_call.Middleware[] | undefined;
|
|
140
|
-
}) => Promise<void>;
|
|
150
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
141
151
|
}[];
|
|
142
152
|
};
|
|
143
153
|
schema: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.BODzPfJo.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CVEUIYlu.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -54,18 +54,36 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
54
54
|
id: "anonymous";
|
|
55
55
|
endpoints: {
|
|
56
56
|
signInAnonymous: {
|
|
57
|
-
<C extends [({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
<C extends [(better_call.InputContext<"/sign-in/anonymous", {
|
|
58
|
+
method: "POST";
|
|
59
|
+
metadata: {
|
|
60
|
+
openapi: {
|
|
61
|
+
description: string;
|
|
62
|
+
responses: {
|
|
63
|
+
200: {
|
|
64
|
+
description: string;
|
|
65
|
+
content: {
|
|
66
|
+
"application/json": {
|
|
67
|
+
schema: {
|
|
68
|
+
type: "object";
|
|
69
|
+
properties: {
|
|
70
|
+
user: {
|
|
71
|
+
$ref: string;
|
|
72
|
+
};
|
|
73
|
+
session: {
|
|
74
|
+
$ref: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} & {
|
|
85
|
+
use: any[];
|
|
86
|
+
}> | undefined)?]>(...inputCtx: C): Promise<C extends [{
|
|
69
87
|
asResponse: true;
|
|
70
88
|
}] ? Response : C extends [{
|
|
71
89
|
returnHeaders: true;
|
|
@@ -129,15 +147,7 @@ declare const anonymous: (options?: AnonymousOptions) => {
|
|
|
129
147
|
hooks: {
|
|
130
148
|
after: {
|
|
131
149
|
matcher(ctx: HookEndpointContext): boolean;
|
|
132
|
-
handler: (inputContext:
|
|
133
|
-
body?: any;
|
|
134
|
-
query?: Record<string, any> | undefined;
|
|
135
|
-
request?: Request | undefined;
|
|
136
|
-
headers?: Headers | undefined;
|
|
137
|
-
asResponse?: boolean | undefined;
|
|
138
|
-
returnHeaders?: boolean | undefined;
|
|
139
|
-
use?: better_call.Middleware[] | undefined;
|
|
140
|
-
}) => Promise<void>;
|
|
150
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
141
151
|
}[];
|
|
142
152
|
};
|
|
143
153
|
schema: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.vdKrG2Zp.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import { parseSetCookieHeader, setSessionCookie } from '../../cookies/index.mjs';
|
|
5
|
-
import { m as mergeSchema } from '../../shared/better-auth.
|
|
5
|
+
import { m as mergeSchema } from '../../shared/better-auth.CepcSj5H.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
7
7
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
8
8
|
import 'defu';
|
|
@@ -10,10 +10,10 @@ import { g as getOrigin } from '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
10
10
|
import '../../social-providers/index.mjs';
|
|
11
11
|
import '@better-fetch/fetch';
|
|
12
12
|
import 'jose';
|
|
13
|
+
import '../../shared/better-auth.DiMBK1Ep.mjs';
|
|
14
|
+
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
13
15
|
import '@better-auth/utils/hash';
|
|
14
16
|
import '@better-auth/utils/base64';
|
|
15
|
-
import '../../shared/better-auth.D7syfoJW.mjs';
|
|
16
|
-
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
17
17
|
import '@noble/ciphers/chacha';
|
|
18
18
|
import '@noble/ciphers/utils';
|
|
19
19
|
import '@noble/ciphers/webcrypto';
|
|
@@ -24,7 +24,7 @@ import '@noble/hashes/utils';
|
|
|
24
24
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
25
25
|
import '@better-auth/utils/random';
|
|
26
26
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
27
|
-
import '../../shared/better-auth.
|
|
27
|
+
import '../../shared/better-auth.BdyOG_p4.mjs';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
29
29
|
import '@better-auth/utils/hmac';
|
|
30
30
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
@@ -5,9 +5,9 @@ require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
|
5
5
|
require('@better-auth/utils/base64');
|
|
6
6
|
const hmac = require('@better-auth/utils/hmac');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
|
-
const account = require('../../shared/better-auth.
|
|
8
|
+
const account = require('../../shared/better-auth.ChassmKE.cjs');
|
|
9
9
|
require('zod');
|
|
10
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
11
11
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
12
12
|
require('defu');
|
|
13
13
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
@@ -17,8 +17,8 @@ require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
17
17
|
require('../../social-providers/index.cjs');
|
|
18
18
|
require('@better-fetch/fetch');
|
|
19
19
|
require('jose');
|
|
20
|
+
require('../../shared/better-auth.DgXCgiHI.cjs');
|
|
20
21
|
require('@better-auth/utils/hash');
|
|
21
|
-
require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
22
22
|
require('@noble/ciphers/chacha');
|
|
23
23
|
require('@noble/ciphers/utils');
|
|
24
24
|
require('@noble/ciphers/webcrypto');
|
|
@@ -28,7 +28,7 @@ require('@better-auth/utils/hex');
|
|
|
28
28
|
require('@noble/hashes/utils');
|
|
29
29
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
30
30
|
require('@better-auth/utils/random');
|
|
31
|
-
require('../../shared/better-auth.
|
|
31
|
+
require('../../shared/better-auth.QbbyHMYf.cjs');
|
|
32
32
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
33
33
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
34
34
|
require('jose/errors');
|
|
@@ -1,9 +1,9 @@
|
|
|
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.BkL9ntGY.cjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BkREA_U6.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -25,15 +25,7 @@ declare const bearer: (options?: BearerOptions) => {
|
|
|
25
25
|
hooks: {
|
|
26
26
|
before: {
|
|
27
27
|
matcher(context: HookEndpointContext): boolean;
|
|
28
|
-
handler: (inputContext: {
|
|
29
|
-
body?: any;
|
|
30
|
-
query?: Record<string, any> | undefined;
|
|
31
|
-
request?: Request | undefined;
|
|
32
|
-
headers?: Headers | undefined;
|
|
33
|
-
asResponse?: boolean | undefined;
|
|
34
|
-
returnHeaders?: boolean | undefined;
|
|
35
|
-
use?: better_call.Middleware[] | undefined;
|
|
36
|
-
}) => Promise<{
|
|
28
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
37
29
|
context: {
|
|
38
30
|
headers: Headers;
|
|
39
31
|
};
|
|
@@ -41,15 +33,7 @@ declare const bearer: (options?: BearerOptions) => {
|
|
|
41
33
|
}[];
|
|
42
34
|
after: {
|
|
43
35
|
matcher(context: HookEndpointContext): true;
|
|
44
|
-
handler: (inputContext:
|
|
45
|
-
body?: any;
|
|
46
|
-
query?: Record<string, any> | undefined;
|
|
47
|
-
request?: Request | undefined;
|
|
48
|
-
headers?: Headers | undefined;
|
|
49
|
-
asResponse?: boolean | undefined;
|
|
50
|
-
returnHeaders?: boolean | undefined;
|
|
51
|
-
use?: better_call.Middleware[] | undefined;
|
|
52
|
-
}) => Promise<void>;
|
|
36
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
53
37
|
}[];
|
|
54
38
|
};
|
|
55
39
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
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.D_6ikAPh.mjs';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CmWesETc.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -25,15 +25,7 @@ declare const bearer: (options?: BearerOptions) => {
|
|
|
25
25
|
hooks: {
|
|
26
26
|
before: {
|
|
27
27
|
matcher(context: HookEndpointContext): boolean;
|
|
28
|
-
handler: (inputContext: {
|
|
29
|
-
body?: any;
|
|
30
|
-
query?: Record<string, any> | undefined;
|
|
31
|
-
request?: Request | undefined;
|
|
32
|
-
headers?: Headers | undefined;
|
|
33
|
-
asResponse?: boolean | undefined;
|
|
34
|
-
returnHeaders?: boolean | undefined;
|
|
35
|
-
use?: better_call.Middleware[] | undefined;
|
|
36
|
-
}) => Promise<{
|
|
28
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
37
29
|
context: {
|
|
38
30
|
headers: Headers;
|
|
39
31
|
};
|
|
@@ -41,15 +33,7 @@ declare const bearer: (options?: BearerOptions) => {
|
|
|
41
33
|
}[];
|
|
42
34
|
after: {
|
|
43
35
|
matcher(context: HookEndpointContext): true;
|
|
44
|
-
handler: (inputContext:
|
|
45
|
-
body?: any;
|
|
46
|
-
query?: Record<string, any> | undefined;
|
|
47
|
-
request?: Request | undefined;
|
|
48
|
-
headers?: Headers | undefined;
|
|
49
|
-
asResponse?: boolean | undefined;
|
|
50
|
-
returnHeaders?: boolean | undefined;
|
|
51
|
-
use?: better_call.Middleware[] | undefined;
|
|
52
|
-
}) => Promise<void>;
|
|
36
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
53
37
|
}[];
|
|
54
38
|
};
|
|
55
39
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
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.BODzPfJo.js';
|
|
3
3
|
import '../../shared/better-auth.Bi8FQwDD.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.CVEUIYlu.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -25,15 +25,7 @@ declare const bearer: (options?: BearerOptions) => {
|
|
|
25
25
|
hooks: {
|
|
26
26
|
before: {
|
|
27
27
|
matcher(context: HookEndpointContext): boolean;
|
|
28
|
-
handler: (inputContext: {
|
|
29
|
-
body?: any;
|
|
30
|
-
query?: Record<string, any> | undefined;
|
|
31
|
-
request?: Request | undefined;
|
|
32
|
-
headers?: Headers | undefined;
|
|
33
|
-
asResponse?: boolean | undefined;
|
|
34
|
-
returnHeaders?: boolean | undefined;
|
|
35
|
-
use?: better_call.Middleware[] | undefined;
|
|
36
|
-
}) => Promise<{
|
|
28
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
37
29
|
context: {
|
|
38
30
|
headers: Headers;
|
|
39
31
|
};
|
|
@@ -41,15 +33,7 @@ declare const bearer: (options?: BearerOptions) => {
|
|
|
41
33
|
}[];
|
|
42
34
|
after: {
|
|
43
35
|
matcher(context: HookEndpointContext): true;
|
|
44
|
-
handler: (inputContext:
|
|
45
|
-
body?: any;
|
|
46
|
-
query?: Record<string, any> | undefined;
|
|
47
|
-
request?: Request | undefined;
|
|
48
|
-
headers?: Headers | undefined;
|
|
49
|
-
asResponse?: boolean | undefined;
|
|
50
|
-
returnHeaders?: boolean | undefined;
|
|
51
|
-
use?: better_call.Middleware[] | undefined;
|
|
52
|
-
}) => Promise<void>;
|
|
36
|
+
handler: (inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<void>;
|
|
53
37
|
}[];
|
|
54
38
|
};
|
|
55
39
|
};
|
|
@@ -3,9 +3,9 @@ import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
|
3
3
|
import '@better-auth/utils/base64';
|
|
4
4
|
import { createHMAC } from '@better-auth/utils/hmac';
|
|
5
5
|
import { parseSetCookieHeader } from '../../cookies/index.mjs';
|
|
6
|
-
import { c as createAuthMiddleware } from '../../shared/better-auth.
|
|
6
|
+
import { c as createAuthMiddleware } from '../../shared/better-auth.vdKrG2Zp.mjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
9
9
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
10
10
|
import 'defu';
|
|
11
11
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
@@ -15,8 +15,8 @@ import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
15
15
|
import '../../social-providers/index.mjs';
|
|
16
16
|
import '@better-fetch/fetch';
|
|
17
17
|
import 'jose';
|
|
18
|
+
import '../../shared/better-auth.DiMBK1Ep.mjs';
|
|
18
19
|
import '@better-auth/utils/hash';
|
|
19
|
-
import '../../shared/better-auth.D7syfoJW.mjs';
|
|
20
20
|
import '@noble/ciphers/chacha';
|
|
21
21
|
import '@noble/ciphers/utils';
|
|
22
22
|
import '@noble/ciphers/webcrypto';
|
|
@@ -26,7 +26,7 @@ import '@better-auth/utils/hex';
|
|
|
26
26
|
import '@noble/hashes/utils';
|
|
27
27
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
28
28
|
import '@better-auth/utils/random';
|
|
29
|
-
import '../../shared/better-auth.
|
|
29
|
+
import '../../shared/better-auth.BdyOG_p4.mjs';
|
|
30
30
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
31
31
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
32
32
|
import 'jose/errors';
|
|
@@ -2,11 +2,11 @@
|
|
|
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.ChassmKE.cjs');
|
|
6
6
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
9
|
-
require('../../shared/better-auth.
|
|
9
|
+
require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
10
10
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
11
11
|
require('defu');
|
|
12
12
|
require('../../cookies/index.cjs');
|
|
@@ -17,8 +17,8 @@ require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
17
17
|
require('../../social-providers/index.cjs');
|
|
18
18
|
require('@better-fetch/fetch');
|
|
19
19
|
require('jose');
|
|
20
|
+
require('../../shared/better-auth.DgXCgiHI.cjs');
|
|
20
21
|
require('@better-auth/utils/hash');
|
|
21
|
-
require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
22
22
|
require('@noble/ciphers/chacha');
|
|
23
23
|
require('@noble/ciphers/utils');
|
|
24
24
|
require('@noble/ciphers/webcrypto');
|
|
@@ -28,7 +28,7 @@ require('@better-auth/utils/hex');
|
|
|
28
28
|
require('@noble/hashes/utils');
|
|
29
29
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
30
30
|
require('@better-auth/utils/random');
|
|
31
|
-
require('../../shared/better-auth.
|
|
31
|
+
require('../../shared/better-auth.QbbyHMYf.cjs');
|
|
32
32
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
33
33
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
34
34
|
require('jose/errors');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { f as BetterAuthOptions, j as InferUser, k as InferSession } from '../../shared/better-auth.
|
|
3
|
+
import { f as BetterAuthOptions, j as InferUser, k as InferSession } from '../../shared/better-auth.BkL9ntGY.cjs';
|
|
4
4
|
import '../../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
5
|
import 'kysely';
|
|
6
|
-
import '../../shared/better-auth.
|
|
6
|
+
import '../../shared/better-auth.BkREA_U6.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'better-sqlite3';
|
|
9
9
|
|
|
@@ -14,21 +14,28 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
17
|
-
<C extends [({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
<C extends [(better_call.InputContext<"/get-session", {
|
|
18
|
+
method: "GET";
|
|
19
|
+
metadata: {
|
|
20
|
+
CUSTOM_SESSION: boolean;
|
|
21
|
+
};
|
|
22
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
/**
|
|
24
|
+
* If cookie cache is enabled, it will disable the cache
|
|
25
|
+
* and fetch the session from the database
|
|
26
|
+
*/
|
|
27
|
+
disableCookieCache: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>>;
|
|
28
|
+
disableRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
disableCookieCache?: boolean | undefined;
|
|
31
|
+
disableRefresh?: boolean | undefined;
|
|
32
|
+
}, {
|
|
21
33
|
disableCookieCache?: string | boolean | undefined;
|
|
22
34
|
disableRefresh?: boolean | undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
asResponse?: boolean | undefined;
|
|
28
|
-
returnHeaders?: boolean | undefined;
|
|
29
|
-
use?: better_call.Middleware[] | undefined;
|
|
30
|
-
path?: string | undefined;
|
|
31
|
-
} | undefined)?]>(...inputCtx: C): Promise<C extends [{
|
|
35
|
+
}>>;
|
|
36
|
+
} & {
|
|
37
|
+
use: any[];
|
|
38
|
+
}> | undefined)?]>(...inputCtx: C): Promise<C extends [{
|
|
32
39
|
asResponse: true;
|
|
33
40
|
}] ? Response : C extends [{
|
|
34
41
|
returnHeaders: true;
|