better-auth 1.2.8-beta.1 → 1.2.8-beta.3
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 +10 -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 +11 -2
- package/dist/adapters/index.cjs +1 -1
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/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.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.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 +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +2 -2
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/plugins/index.d.cts +2 -2
- package/dist/client/plugins/index.d.mts +2 -2
- package/dist/client/plugins/index.d.ts +2 -2
- package/dist/client/react/index.d.cts +1 -1
- package/dist/client/react/index.d.mts +1 -1
- package/dist/client/react/index.d.ts +1 -1
- package/dist/client/solid/index.d.cts +1 -1
- package/dist/client/solid/index.d.mts +1 -1
- package/dist/client/solid/index.d.ts +1 -1
- package/dist/client/svelte/index.d.cts +1 -1
- package/dist/client/svelte/index.d.mts +1 -1
- package/dist/client/svelte/index.d.ts +1 -1
- package/dist/client/vue/index.d.cts +1 -1
- package/dist/client/vue/index.d.mts +1 -1
- package/dist/client/vue/index.d.ts +1 -1
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.cjs +4 -4
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.mjs +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +6 -6
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +1 -1
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.ts +1 -1
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.cjs +2 -2
- package/dist/plugins/custom-session/index.d.cts +2 -2
- package/dist/plugins/custom-session/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.mjs +2 -2
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +8 -14
- package/dist/plugins/generic-oauth/index.d.cts +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.d.ts +2 -2
- package/dist/plugins/generic-oauth/index.mjs +8 -14
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +3 -3
- 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 +4 -4
- package/dist/plugins/jwt/index.cjs +1 -1
- package/dist/plugins/jwt/index.d.cts +1 -1
- package/dist/plugins/jwt/index.d.mts +1 -1
- package/dist/plugins/jwt/index.d.ts +1 -1
- package/dist/plugins/jwt/index.mjs +1 -1
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +1 -1
- package/dist/plugins/oidc-provider/index.d.cts +1 -1
- package/dist/plugins/oidc-provider/index.d.mts +1 -1
- package/dist/plugins/oidc-provider/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.mjs +1 -1
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +2 -2
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/one-time-token/index.mjs +2 -2
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +2 -2
- package/dist/plugins/organization/index.d.cts +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/index.d.ts +1 -1
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.cjs +2 -1
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/passkey/index.mjs +2 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sso/index.cjs +2 -2
- package/dist/plugins/sso/index.d.cts +1 -1
- package/dist/plugins/sso/index.d.mts +1 -1
- package/dist/plugins/sso/index.d.ts +1 -1
- package/dist/plugins/sso/index.mjs +2 -2
- package/dist/plugins/two-factor/index.cjs +7 -5
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/two-factor/index.mjs +7 -5
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.d.ts +1 -1
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.BKyK_ofH.d.mts → better-auth.BGbO1sDU.d.mts} +1 -1
- package/dist/shared/{better-auth.CVCo5Z2T.cjs → better-auth.BJiRPytD.cjs} +1 -1
- package/dist/shared/{better-auth.DjryM8pE.cjs → better-auth.BLnaKDpp.cjs} +1 -1
- package/dist/shared/{better-auth.-Dl1H7Rz.d.ts → better-auth.BRel8q6A.d.ts} +1 -1
- package/dist/shared/{better-auth.Dr138tsU.d.ts → better-auth.BqTWy4bR.d.ts} +1 -1
- package/dist/shared/{better-auth.UWJYhF5V.cjs → better-auth.BzlWwqx6.cjs} +1 -1
- package/dist/shared/{better-auth.CPDBY4hI.cjs → better-auth.C8liBIUN.cjs} +1 -1
- package/dist/shared/{better-auth.bolYzZ0S.d.cts → better-auth.C9h9IDuv.d.cts} +26 -1
- package/dist/shared/{better-auth.DURsStt9.mjs → better-auth.CkNopsdX.mjs} +1 -1
- package/dist/shared/{better-auth.RnGMlkGR.d.mts → better-auth.D05tOULo.d.mts} +1 -1
- package/dist/shared/{better-auth.DYoLD99C.cjs → better-auth.D7wPZeNW.cjs} +18 -2
- package/dist/shared/{better-auth.OXNpfBO8.d.cts → better-auth.DD23n9eA.d.cts} +1 -1
- package/dist/shared/{better-auth.1DR6suCQ.mjs → better-auth.DKF2BM5s.mjs} +1 -1
- package/dist/shared/{better-auth.xTHoeGxJ.d.cts → better-auth.DKG6z6wI.d.cts} +1 -1
- package/dist/shared/{better-auth.Bk5IMdhM.mjs → better-auth.DM4cRSFf.mjs} +18 -2
- package/dist/shared/{better-auth.rC5b9qdS.mjs → better-auth.DRnz6Qa6.mjs} +1 -1
- package/dist/shared/{better-auth.BzFIHfxT.d.cts → better-auth.DSaDbWe7.d.cts} +1 -1
- package/dist/shared/{better-auth.jNA-1f1K.d.ts → better-auth.DXuoyAUB.d.ts} +1 -1
- package/dist/shared/{better-auth.DvTP08Oe.mjs → better-auth.DZhGZ3hY.mjs} +18 -16
- package/dist/shared/{better-auth.ASptIaaI.d.mts → better-auth.DoH4g3oA.d.mts} +26 -1
- package/dist/shared/{better-auth.rSYJCd3o.mjs → better-auth.Du54XGQ5.mjs} +1 -1
- package/dist/shared/{better-auth.CCgUfvlh.d.mts → better-auth.E28-Tvud.d.mts} +1 -1
- package/dist/shared/{better-auth.b6379eQT.d.ts → better-auth.EetBIuJe.d.ts} +26 -1
- package/dist/shared/{better-auth.B0Si_s7N.mjs → better-auth.TuDfqYsl.mjs} +1 -1
- package/dist/shared/{better-auth.BfG24BjZ.cjs → better-auth.UARlElVH.cjs} +1 -1
- package/dist/shared/{better-auth.D7If6DrS.cjs → better-auth.zMvh8rLL.cjs} +18 -16
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +6 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
6
6
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
@@ -92,7 +92,7 @@ const customSession = (fn, options) => {
|
|
|
92
92
|
if (!session?.response) {
|
|
93
93
|
return ctx.json(null);
|
|
94
94
|
}
|
|
95
|
-
const fnResult = await fn(session.response);
|
|
95
|
+
const fnResult = await fn(session.response, ctx);
|
|
96
96
|
session.headers.forEach((value, key) => {
|
|
97
97
|
ctx.setHeader(key, value);
|
|
98
98
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { f as BetterAuthOptions, m as InferUser, n as InferSession } from '../../shared/better-auth.
|
|
3
|
+
import { f as BetterAuthOptions, m as InferUser, n as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
6
6
|
import 'jose';
|
|
@@ -10,7 +10,7 @@ import 'better-sqlite3';
|
|
|
10
10
|
declare const customSession: <Returns extends Record<string, any>, O extends BetterAuthOptions = BetterAuthOptions>(fn: (session: {
|
|
11
11
|
user: InferUser<O>;
|
|
12
12
|
session: InferSession<O>;
|
|
13
|
-
}) => Promise<Returns>, options?: O) => {
|
|
13
|
+
}, ctx: GenericEndpointContext) => Promise<Returns>, options?: O) => {
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { f as BetterAuthOptions, m as InferUser, n as InferSession } from '../../shared/better-auth.
|
|
3
|
+
import { f as BetterAuthOptions, m as InferUser, n as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
6
6
|
import 'jose';
|
|
@@ -10,7 +10,7 @@ import 'better-sqlite3';
|
|
|
10
10
|
declare const customSession: <Returns extends Record<string, any>, O extends BetterAuthOptions = BetterAuthOptions>(fn: (session: {
|
|
11
11
|
user: InferUser<O>;
|
|
12
12
|
session: InferSession<O>;
|
|
13
|
-
}) => Promise<Returns>, options?: O) => {
|
|
13
|
+
}, ctx: GenericEndpointContext) => Promise<Returns>, options?: O) => {
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { f as BetterAuthOptions, m as InferUser, n as InferSession } from '../../shared/better-auth.
|
|
3
|
+
import { f as BetterAuthOptions, m as InferUser, n as InferSession, G as GenericEndpointContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
6
6
|
import 'jose';
|
|
@@ -10,7 +10,7 @@ import 'better-sqlite3';
|
|
|
10
10
|
declare const customSession: <Returns extends Record<string, any>, O extends BetterAuthOptions = BetterAuthOptions>(fn: (session: {
|
|
11
11
|
user: InferUser<O>;
|
|
12
12
|
session: InferSession<O>;
|
|
13
|
-
}) => Promise<Returns>, options?: O) => {
|
|
13
|
+
}, ctx: GenericEndpointContext) => Promise<Returns>, options?: O) => {
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, b as getSession } from '../../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, b as getSession } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
4
4
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
@@ -90,7 +90,7 @@ const customSession = (fn, options) => {
|
|
|
90
90
|
if (!session?.response) {
|
|
91
91
|
return ctx.json(null);
|
|
92
92
|
}
|
|
93
|
-
const fnResult = await fn(session.response);
|
|
93
|
+
const fnResult = await fn(session.response, ctx);
|
|
94
94
|
session.headers.forEach((value, key) => {
|
|
95
95
|
ctx.setHeader(key, value);
|
|
96
96
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.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');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint } from '../../shared/better-auth.DZhGZ3hY.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';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fetch = require('@better-fetch/fetch');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const zod = require('zod');
|
|
6
|
-
const refreshToken = require('../../shared/better-auth.
|
|
6
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
8
|
require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -437,7 +437,10 @@ const genericOAuth = (options) => {
|
|
|
437
437
|
if (ctx.context.options.account?.accountLinking?.allowDifferentEmails !== true && link.email !== mapUser.email.toLowerCase()) {
|
|
438
438
|
return redirectOnError("email_doesn't_match");
|
|
439
439
|
}
|
|
440
|
-
const existingAccount = await ctx.context.internalAdapter.
|
|
440
|
+
const existingAccount = await ctx.context.internalAdapter.findAccountByProviderId(
|
|
441
|
+
userInfo.id,
|
|
442
|
+
provider.providerId
|
|
443
|
+
);
|
|
441
444
|
if (existingAccount) {
|
|
442
445
|
if (existingAccount.userId !== link.userId) {
|
|
443
446
|
return redirectOnError(
|
|
@@ -466,7 +469,9 @@ const genericOAuth = (options) => {
|
|
|
466
469
|
accessToken: tokens.accessToken,
|
|
467
470
|
accessTokenExpiresAt: tokens.accessTokenExpiresAt,
|
|
468
471
|
refreshTokenExpiresAt: tokens.refreshTokenExpiresAt,
|
|
469
|
-
scope: tokens.scopes?.join(",")
|
|
472
|
+
scope: tokens.scopes?.join(","),
|
|
473
|
+
refreshToken: tokens.refreshToken,
|
|
474
|
+
idToken: tokens.idToken
|
|
470
475
|
});
|
|
471
476
|
if (!newAccount) {
|
|
472
477
|
return redirectOnError("unable_to_link_account");
|
|
@@ -555,17 +560,6 @@ const genericOAuth = (options) => {
|
|
|
555
560
|
},
|
|
556
561
|
async (c) => {
|
|
557
562
|
const session = c.context.session;
|
|
558
|
-
const account = await c.context.internalAdapter.findAccounts(
|
|
559
|
-
session.user.id
|
|
560
|
-
);
|
|
561
|
-
const existingAccount = account.find(
|
|
562
|
-
(a) => a.providerId === c.body.providerId
|
|
563
|
-
);
|
|
564
|
-
if (existingAccount) {
|
|
565
|
-
throw new betterCall.APIError("BAD_REQUEST", {
|
|
566
|
-
message: refreshToken.BASE_ERROR_CODES.SOCIAL_ACCOUNT_ALREADY_LINKED
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
563
|
const provider = options.config.find(
|
|
570
564
|
(p) => p.providerId === c.body.providerId
|
|
571
565
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, l as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, l as AuthContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.7QibuQ0I.cjs';
|
|
5
5
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
6
6
|
import 'kysely';
|
|
@@ -430,4 +430,4 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
430
430
|
};
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
export { genericOAuth };
|
|
433
|
+
export { type GenericOAuthConfig, genericOAuth };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, l as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, l as AuthContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.C39-x5Oo.mjs';
|
|
5
5
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
6
6
|
import 'kysely';
|
|
@@ -430,4 +430,4 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
430
430
|
};
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
export { genericOAuth };
|
|
433
|
+
export { type GenericOAuthConfig, genericOAuth };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, l as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, l as AuthContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import { O as OAuth2Tokens, a as OAuthProvider } from '../../shared/better-auth.CpEzqKmn.js';
|
|
5
5
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
6
6
|
import 'kysely';
|
|
@@ -430,4 +430,4 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
|
|
|
430
430
|
};
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
export { genericOAuth };
|
|
433
|
+
export { type GenericOAuthConfig, genericOAuth };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { betterFetch } from '@better-fetch/fetch';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, h as handleOAuthUserInfo } from '../../shared/better-auth.
|
|
4
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, h as handleOAuthUserInfo } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
5
5
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.Cc72UxUH.mjs';
|
|
7
7
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -435,7 +435,10 @@ const genericOAuth = (options) => {
|
|
|
435
435
|
if (ctx.context.options.account?.accountLinking?.allowDifferentEmails !== true && link.email !== mapUser.email.toLowerCase()) {
|
|
436
436
|
return redirectOnError("email_doesn't_match");
|
|
437
437
|
}
|
|
438
|
-
const existingAccount = await ctx.context.internalAdapter.
|
|
438
|
+
const existingAccount = await ctx.context.internalAdapter.findAccountByProviderId(
|
|
439
|
+
userInfo.id,
|
|
440
|
+
provider.providerId
|
|
441
|
+
);
|
|
439
442
|
if (existingAccount) {
|
|
440
443
|
if (existingAccount.userId !== link.userId) {
|
|
441
444
|
return redirectOnError(
|
|
@@ -464,7 +467,9 @@ const genericOAuth = (options) => {
|
|
|
464
467
|
accessToken: tokens.accessToken,
|
|
465
468
|
accessTokenExpiresAt: tokens.accessTokenExpiresAt,
|
|
466
469
|
refreshTokenExpiresAt: tokens.refreshTokenExpiresAt,
|
|
467
|
-
scope: tokens.scopes?.join(",")
|
|
470
|
+
scope: tokens.scopes?.join(","),
|
|
471
|
+
refreshToken: tokens.refreshToken,
|
|
472
|
+
idToken: tokens.idToken
|
|
468
473
|
});
|
|
469
474
|
if (!newAccount) {
|
|
470
475
|
return redirectOnError("unable_to_link_account");
|
|
@@ -553,17 +558,6 @@ const genericOAuth = (options) => {
|
|
|
553
558
|
},
|
|
554
559
|
async (c) => {
|
|
555
560
|
const session = c.context.session;
|
|
556
|
-
const account = await c.context.internalAdapter.findAccounts(
|
|
557
|
-
session.user.id
|
|
558
|
-
);
|
|
559
|
-
const existingAccount = account.find(
|
|
560
|
-
(a) => a.providerId === c.body.providerId
|
|
561
|
-
);
|
|
562
|
-
if (existingAccount) {
|
|
563
|
-
throw new APIError("BAD_REQUEST", {
|
|
564
|
-
message: BASE_ERROR_CODES.SOCIAL_ACCOUNT_ALREADY_LINKED
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
561
|
const provider = options.config.find(
|
|
568
562
|
(p) => p.providerId === c.body.providerId
|
|
569
563
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
require('../../shared/better-auth.
|
|
4
|
+
require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as AuthContext, p as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { l as AuthContext, p as checkPassword } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
2
2
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as AuthContext, p as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { l as AuthContext, p as checkPassword } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
2
2
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as AuthContext, p as checkPassword } from '../../shared/better-auth.
|
|
1
|
+
import { l as AuthContext, p as checkPassword } from '../../shared/better-auth.EetBIuJe.js';
|
|
2
2
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../shared/better-auth.CpEzqKmn.js';
|
package/dist/plugins/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const organization = require('../shared/better-auth.
|
|
3
|
+
const organization = require('../shared/better-auth.BzlWwqx6.cjs');
|
|
4
4
|
const plugins_twoFactor_index = require('./two-factor/index.cjs');
|
|
5
5
|
const plugins_username_index = require('./username/index.cjs');
|
|
6
6
|
const plugins_bearer_index = require('./bearer/index.cjs');
|
|
7
|
-
const refreshToken = require('../shared/better-auth.
|
|
7
|
+
const refreshToken = require('../shared/better-auth.zMvh8rLL.cjs');
|
|
8
8
|
const plugins_magicLink_index = require('./magic-link/index.cjs');
|
|
9
9
|
const plugins_phoneNumber_index = require('./phone-number/index.cjs');
|
|
10
10
|
const plugins_anonymous_index = require('./anonymous/index.cjs');
|
|
11
|
-
const admin = require('../shared/better-auth.
|
|
11
|
+
const admin = require('../shared/better-auth.C8liBIUN.cjs');
|
|
12
12
|
const plugins_genericOauth_index = require('./generic-oauth/index.cjs');
|
|
13
13
|
const plugins_jwt_index = require('./jwt/index.cjs');
|
|
14
14
|
const plugins_multiSession_index = require('./multi-session/index.cjs');
|
package/dist/plugins/index.d.cts
CHANGED
|
@@ -3,13 +3,13 @@ export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc
|
|
|
3
3
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.cjs';
|
|
4
4
|
export { UsernameOptions, username } from './username/index.cjs';
|
|
5
5
|
export { bearer } from './bearer/index.cjs';
|
|
6
|
-
export { d as AuthEndpoint, e as AuthMiddleware, A as AuthPluginSchema, B as BetterAuthPlugin, I as InferOptionSchema, a as InferPluginErrorCodes, b as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
export { d as AuthEndpoint, e as AuthMiddleware, A as AuthPluginSchema, B as BetterAuthPlugin, I as InferOptionSchema, a as InferPluginErrorCodes, b as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.C9h9IDuv.cjs';
|
|
7
7
|
export { H as HIDE_METADATA } from '../shared/better-auth.DEHJp1rk.cjs';
|
|
8
8
|
export { magicLink } from './magic-link/index.cjs';
|
|
9
9
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber } from './phone-number/index.cjs';
|
|
10
10
|
export { AnonymousOptions, UserWithAnonymous, anonymous } from './anonymous/index.cjs';
|
|
11
11
|
export { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole, admin } from './admin/index.cjs';
|
|
12
|
-
export { genericOAuth } from './generic-oauth/index.cjs';
|
|
12
|
+
export { GenericOAuthConfig, genericOAuth } from './generic-oauth/index.cjs';
|
|
13
13
|
export { JwtOptions, getJwtToken, jwt } from './jwt/index.cjs';
|
|
14
14
|
export { multiSession } from './multi-session/index.cjs';
|
|
15
15
|
export { EmailOTPOptions, emailOTP } from './email-otp/index.cjs';
|
|
@@ -19,7 +19,7 @@ export { customSession } from './custom-session/index.cjs';
|
|
|
19
19
|
export { OpenAPIOptions, Path, generator, openAPI } from './open-api/index.cjs';
|
|
20
20
|
export { AuthorizationQuery, Client, CodeVerificationValue, OAuthAccessToken, OIDCMetadata, OIDCOptions, TokenBody, oidcProvider } from './oidc-provider/index.cjs';
|
|
21
21
|
export { captcha } from './captcha/index.cjs';
|
|
22
|
-
export { E as ERROR_CODES, a as apiKey } from '../shared/better-auth.
|
|
22
|
+
export { E as ERROR_CODES, a as apiKey } from '../shared/better-auth.DKG6z6wI.cjs';
|
|
23
23
|
export { HaveIBeenPwnedOptions, haveIBeenPwned } from './haveibeenpwned/index.cjs';
|
|
24
24
|
export { oneTimeToken } from './one-time-token/index.cjs';
|
|
25
25
|
import './access/index.cjs';
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -3,13 +3,13 @@ export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc
|
|
|
3
3
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.mjs';
|
|
4
4
|
export { UsernameOptions, username } from './username/index.mjs';
|
|
5
5
|
export { bearer } from './bearer/index.mjs';
|
|
6
|
-
export { d as AuthEndpoint, e as AuthMiddleware, A as AuthPluginSchema, B as BetterAuthPlugin, I as InferOptionSchema, a as InferPluginErrorCodes, b as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
export { d as AuthEndpoint, e as AuthMiddleware, A as AuthPluginSchema, B as BetterAuthPlugin, I as InferOptionSchema, a as InferPluginErrorCodes, b as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.DoH4g3oA.mjs';
|
|
7
7
|
export { H as HIDE_METADATA } from '../shared/better-auth.DEHJp1rk.mjs';
|
|
8
8
|
export { magicLink } from './magic-link/index.mjs';
|
|
9
9
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber } from './phone-number/index.mjs';
|
|
10
10
|
export { AnonymousOptions, UserWithAnonymous, anonymous } from './anonymous/index.mjs';
|
|
11
11
|
export { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole, admin } from './admin/index.mjs';
|
|
12
|
-
export { genericOAuth } from './generic-oauth/index.mjs';
|
|
12
|
+
export { GenericOAuthConfig, genericOAuth } from './generic-oauth/index.mjs';
|
|
13
13
|
export { JwtOptions, getJwtToken, jwt } from './jwt/index.mjs';
|
|
14
14
|
export { multiSession } from './multi-session/index.mjs';
|
|
15
15
|
export { EmailOTPOptions, emailOTP } from './email-otp/index.mjs';
|
|
@@ -19,7 +19,7 @@ export { customSession } from './custom-session/index.mjs';
|
|
|
19
19
|
export { OpenAPIOptions, Path, generator, openAPI } from './open-api/index.mjs';
|
|
20
20
|
export { AuthorizationQuery, Client, CodeVerificationValue, OAuthAccessToken, OIDCMetadata, OIDCOptions, TokenBody, oidcProvider } from './oidc-provider/index.mjs';
|
|
21
21
|
export { captcha } from './captcha/index.mjs';
|
|
22
|
-
export { E as ERROR_CODES, a as apiKey } from '../shared/better-auth.
|
|
22
|
+
export { E as ERROR_CODES, a as apiKey } from '../shared/better-auth.E28-Tvud.mjs';
|
|
23
23
|
export { HaveIBeenPwnedOptions, haveIBeenPwned } from './haveibeenpwned/index.mjs';
|
|
24
24
|
export { oneTimeToken } from './one-time-token/index.mjs';
|
|
25
25
|
import './access/index.mjs';
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc
|
|
|
3
3
|
export { TWO_FACTOR_ERROR_CODES, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.js';
|
|
4
4
|
export { UsernameOptions, username } from './username/index.js';
|
|
5
5
|
export { bearer } from './bearer/index.js';
|
|
6
|
-
export { d as AuthEndpoint, e as AuthMiddleware, A as AuthPluginSchema, B as BetterAuthPlugin, I as InferOptionSchema, a as InferPluginErrorCodes, b as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.
|
|
6
|
+
export { d as AuthEndpoint, e as AuthMiddleware, A as AuthPluginSchema, B as BetterAuthPlugin, I as InferOptionSchema, a as InferPluginErrorCodes, b as createAuthEndpoint, c as createAuthMiddleware, o as optionsMiddleware } from '../shared/better-auth.EetBIuJe.js';
|
|
7
7
|
export { H as HIDE_METADATA } from '../shared/better-auth.DEHJp1rk.js';
|
|
8
8
|
export { magicLink } from './magic-link/index.js';
|
|
9
9
|
export { PhoneNumberOptions, UserWithPhoneNumber, phoneNumber } from './phone-number/index.js';
|
|
10
10
|
export { AnonymousOptions, UserWithAnonymous, anonymous } from './anonymous/index.js';
|
|
11
11
|
export { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole, admin } from './admin/index.js';
|
|
12
|
-
export { genericOAuth } from './generic-oauth/index.js';
|
|
12
|
+
export { GenericOAuthConfig, genericOAuth } from './generic-oauth/index.js';
|
|
13
13
|
export { JwtOptions, getJwtToken, jwt } from './jwt/index.js';
|
|
14
14
|
export { multiSession } from './multi-session/index.js';
|
|
15
15
|
export { EmailOTPOptions, emailOTP } from './email-otp/index.js';
|
|
@@ -19,7 +19,7 @@ export { customSession } from './custom-session/index.js';
|
|
|
19
19
|
export { OpenAPIOptions, Path, generator, openAPI } from './open-api/index.js';
|
|
20
20
|
export { AuthorizationQuery, Client, CodeVerificationValue, OAuthAccessToken, OIDCMetadata, OIDCOptions, TokenBody, oidcProvider } from './oidc-provider/index.js';
|
|
21
21
|
export { captcha } from './captcha/index.js';
|
|
22
|
-
export { E as ERROR_CODES, a as apiKey } from '../shared/better-auth
|
|
22
|
+
export { E as ERROR_CODES, a as apiKey } from '../shared/better-auth.BRel8q6A.js';
|
|
23
23
|
export { HaveIBeenPwnedOptions, haveIBeenPwned } from './haveibeenpwned/index.js';
|
|
24
24
|
export { oneTimeToken } from './one-time-token/index.js';
|
|
25
25
|
import './access/index.js';
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { o as organization, p as parseRoles } from '../shared/better-auth.
|
|
1
|
+
export { o as organization, p as parseRoles } from '../shared/better-auth.DRnz6Qa6.mjs';
|
|
2
2
|
export { TWO_FACTOR_ERROR_CODES, twoFactor } from './two-factor/index.mjs';
|
|
3
3
|
export { username } from './username/index.mjs';
|
|
4
4
|
export { bearer } from './bearer/index.mjs';
|
|
5
|
-
import { a as createAuthEndpoint, g as getSessionFromCtx, s as sessionMiddleware, c as createAuthMiddleware } from '../shared/better-auth.
|
|
6
|
-
export { H as HIDE_METADATA, O as optionsMiddleware } from '../shared/better-auth.
|
|
5
|
+
import { a as createAuthEndpoint, g as getSessionFromCtx, s as sessionMiddleware, c as createAuthMiddleware } from '../shared/better-auth.DZhGZ3hY.mjs';
|
|
6
|
+
export { H as HIDE_METADATA, O as optionsMiddleware } from '../shared/better-auth.DZhGZ3hY.mjs';
|
|
7
7
|
export { magicLink } from './magic-link/index.mjs';
|
|
8
8
|
export { phoneNumber } from './phone-number/index.mjs';
|
|
9
9
|
export { anonymous } from './anonymous/index.mjs';
|
|
10
|
-
export { a as admin } from '../shared/better-auth.
|
|
10
|
+
export { a as admin } from '../shared/better-auth.TuDfqYsl.mjs';
|
|
11
11
|
export { genericOAuth } from './generic-oauth/index.mjs';
|
|
12
12
|
export { getJwtToken, jwt } from './jwt/index.mjs';
|
|
13
13
|
export { multiSession } from './multi-session/index.mjs';
|
|
@@ -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 refreshToken = require('../../shared/better-auth.
|
|
6
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
7
7
|
require('zod');
|
|
8
8
|
const index = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
2
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext, G as GenericEndpointContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
3
3
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
@@ -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.DZhGZ3hY.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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const refreshToken = require('../../shared/better-auth.
|
|
4
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('@better-auth/utils/hash');
|
|
@@ -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.DZhGZ3hY.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '@better-auth/utils/hash';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.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');
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
3
|
+
import { S as Session, U as User, H as HookEndpointContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
3
|
+
import { S as Session, U as User, H as HookEndpointContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
3
|
+
import { S as Session, U as User, H as HookEndpointContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
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.DZhGZ3hY.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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.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');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext, l as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext, l as AuthContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext, l as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext, l as AuthContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
6
6
|
import 'jose';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { H as HookEndpointContext, l as AuthContext } from '../../shared/better-auth.
|
|
3
|
+
import { H as HookEndpointContext, l as AuthContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
6
6
|
import 'jose';
|
|
@@ -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.DZhGZ3hY.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';
|
|
@@ -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 refreshToken = require('../../shared/better-auth.
|
|
6
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
7
7
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
8
8
|
const base64 = require('@better-auth/utils/base64');
|
|
9
9
|
require('@better-auth/utils/hmac');
|