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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User } from '../../shared/better-auth.
|
|
3
|
+
import { U as User } 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 * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User } from '../../shared/better-auth.
|
|
3
|
+
import { U as User } 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 * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User } from '../../shared/better-auth.
|
|
3
|
+
import { U as User } 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,7 +1,7 @@
|
|
|
1
1
|
import { SignJWT } from 'jose';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
|
-
import { g as getSessionFromCtx, a as createAuthEndpoint, c as createAuthMiddleware, s as sessionMiddleware } from '../../shared/better-auth.
|
|
4
|
+
import { g as getSessionFromCtx, a as createAuthEndpoint, c as createAuthMiddleware, s as sessionMiddleware } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
5
5
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
6
6
|
import { base64 } from '@better-auth/utils/base64';
|
|
7
7
|
import '@better-auth/utils/hmac';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const 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 { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint } from '../../shared/better-auth.
|
|
3
|
+
import { 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';
|
|
@@ -2,12 +2,12 @@
|
|
|
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');
|
|
9
9
|
require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
10
|
-
require('../../shared/better-auth.
|
|
10
|
+
require('../../shared/better-auth.BzlWwqx6.cjs');
|
|
11
11
|
require('../organization/access/index.cjs');
|
|
12
12
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
13
13
|
require('../../shared/better-auth.GpOOav9x.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 } from '../../shared/better-auth.
|
|
3
|
+
import { S as Session, U as User } 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 } from '../../shared/better-auth.
|
|
3
|
+
import { S as Session, U as User } 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 } from '../../shared/better-auth.
|
|
3
|
+
import { S as Session, U as User } 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,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, s as sessionMiddleware } 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';
|
|
7
7
|
import '../../shared/better-auth.Cc72UxUH.mjs';
|
|
8
|
-
import '../../shared/better-auth.
|
|
8
|
+
import '../../shared/better-auth.DRnz6Qa6.mjs';
|
|
9
9
|
import '../organization/access/index.mjs';
|
|
10
10
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
11
11
|
import '../../shared/better-auth.Cqykj82J.mjs';
|
|
@@ -20,7 +20,7 @@ require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
|
20
20
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
21
21
|
const getTables = require('../../shared/better-auth.BEphVDyL.cjs');
|
|
22
22
|
require('kysely');
|
|
23
|
-
const refreshToken = require('../../shared/better-auth.
|
|
23
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
24
24
|
require('@better-auth/utils/hmac');
|
|
25
25
|
require('defu');
|
|
26
26
|
require('../../cookies/index.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
|
3
|
-
import { l as AuthContext, f as BetterAuthOptions } from '../../shared/better-auth.
|
|
3
|
+
import { l as AuthContext, f as BetterAuthOptions } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
|
3
|
-
import { l as AuthContext, f as BetterAuthOptions } from '../../shared/better-auth.
|
|
3
|
+
import { l as AuthContext, f as BetterAuthOptions } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { OpenAPIParameter, OpenAPISchemaType } from 'better-call';
|
|
3
|
-
import { l as AuthContext, f as BetterAuthOptions } from '../../shared/better-auth.
|
|
3
|
+
import { l as AuthContext, f as BetterAuthOptions } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
@@ -18,7 +18,7 @@ import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
|
18
18
|
import '../../shared/better-auth.Cqykj82J.mjs';
|
|
19
19
|
import { g as getAuthTables } from '../../shared/better-auth.DORkW_Ge.mjs';
|
|
20
20
|
import 'kysely';
|
|
21
|
-
import { a as createAuthEndpoint } from '../../shared/better-auth.
|
|
21
|
+
import { a as createAuthEndpoint } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
22
22
|
import '@better-auth/utils/hmac';
|
|
23
23
|
import 'defu';
|
|
24
24
|
import '../../cookies/index.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const organization = require('../../shared/better-auth.
|
|
3
|
+
const organization = require('../../shared/better-auth.BzlWwqx6.cjs');
|
|
4
4
|
require('better-call');
|
|
5
5
|
require('zod');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
7
7
|
require('../../cookies/index.cjs');
|
|
8
8
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Role, AccessControl, Statements } from '../access/index.cjs';
|
|
2
2
|
import { z, ZodLiteral } from 'zod';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
|
-
import { G as GenericEndpointContext, S as Session, U as User, l as AuthContext } from '../../shared/better-auth.
|
|
4
|
+
import { G as GenericEndpointContext, S as Session, U as User, l as AuthContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
5
5
|
import { defaultRoles } from './access/index.cjs';
|
|
6
6
|
export { adminAc, defaultAc, defaultStatements, memberAc, ownerAc } from './access/index.cjs';
|
|
7
7
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Role, AccessControl, Statements } from '../access/index.mjs';
|
|
2
2
|
import { z, ZodLiteral } from 'zod';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
|
-
import { G as GenericEndpointContext, S as Session, U as User, l as AuthContext } from '../../shared/better-auth.
|
|
4
|
+
import { G as GenericEndpointContext, S as Session, U as User, l as AuthContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
5
5
|
import { defaultRoles } from './access/index.mjs';
|
|
6
6
|
export { adminAc, defaultAc, defaultStatements, memberAc, ownerAc } from './access/index.mjs';
|
|
7
7
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Role, AccessControl, Statements } from '../access/index.js';
|
|
2
2
|
import { z, ZodLiteral } from 'zod';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
|
-
import { G as GenericEndpointContext, S as Session, U as User, l as AuthContext } from '../../shared/better-auth.
|
|
4
|
+
import { G as GenericEndpointContext, S as Session, U as User, l as AuthContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
5
5
|
import { defaultRoles } from './access/index.js';
|
|
6
6
|
export { adminAc, defaultAc, defaultStatements, memberAc, ownerAc } from './access/index.js';
|
|
7
7
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
import 'better-call';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
5
5
|
import '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -4,7 +4,7 @@ const server = require('@simplewebauthn/server');
|
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
6
6
|
const zod = require('zod');
|
|
7
|
-
const refreshToken = require('../../shared/better-auth.
|
|
7
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
8
8
|
const cookies_index = require('../../cookies/index.cjs');
|
|
9
9
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
10
10
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -208,6 +208,7 @@ const passkey = (options) => {
|
|
|
208
208
|
rpID: getRpID(opts, ctx.context.options.baseURL),
|
|
209
209
|
userID,
|
|
210
210
|
userName: session.user.email || session.user.id,
|
|
211
|
+
userDisplayName: session.user.email || session.user.id,
|
|
211
212
|
attestationType: "none",
|
|
212
213
|
excludeCredentials: userPasskeys.map((passkey2) => ({
|
|
213
214
|
id: passkey2.credentialID,
|
|
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
6
6
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
7
7
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
8
8
|
import 'jose';
|
|
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
6
6
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
7
7
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
8
8
|
import 'jose';
|
|
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.EetBIuJe.js';
|
|
6
6
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
7
7
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
8
8
|
import 'jose';
|
|
@@ -2,7 +2,7 @@ import { verifyAuthenticationResponse, verifyRegistrationResponse, generateAuthe
|
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
5
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
6
6
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
7
7
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
8
8
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -206,6 +206,7 @@ const passkey = (options) => {
|
|
|
206
206
|
rpID: getRpID(opts, ctx.context.options.baseURL),
|
|
207
207
|
userID,
|
|
208
208
|
userName: session.user.email || session.user.id,
|
|
209
|
+
userDisplayName: session.user.email || session.user.id,
|
|
209
210
|
attestationType: "none",
|
|
210
211
|
excludeCredentials: userPasskeys.map((passkey2) => ({
|
|
211
212
|
id: passkey2.credentialID,
|
|
@@ -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 schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
7
7
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } 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 * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } 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 * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } 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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
5
5
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
@@ -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');
|
|
@@ -294,7 +294,7 @@ const sso = (options) => {
|
|
|
294
294
|
discoveryEndpoint: body.discoveryEndpoint || `${body.issuer}/.well-known/openid-configuration`,
|
|
295
295
|
mapping: body.mapping,
|
|
296
296
|
scopes: body.scopes,
|
|
297
|
-
|
|
297
|
+
userInfoEndpoint: body.userInfoEndpoint,
|
|
298
298
|
overrideUserInfo: ctx.body.overrideUserInfo || options?.defaultOverrideUserInfo || false
|
|
299
299
|
}),
|
|
300
300
|
organizationId: body.organizationId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { O as OAuth2Tokens } from '../../shared/better-auth.7QibuQ0I.cjs';
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
4
|
+
import { U as User } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
5
5
|
import '../../shared/better-auth.CYegVoq1.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { O as OAuth2Tokens } from '../../shared/better-auth.C39-x5Oo.mjs';
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
4
|
+
import { U as User } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
5
5
|
import '../../shared/better-auth.CYegVoq1.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { O as OAuth2Tokens } from '../../shared/better-auth.CpEzqKmn.js';
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
4
|
+
import { U as User } from '../../shared/better-auth.EetBIuJe.js';
|
|
5
5
|
import '../../shared/better-auth.CYegVoq1.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, h as handleOAuthUserInfo, s as sessionMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, h as handleOAuthUserInfo, s as sessionMiddleware } from '../../shared/better-auth.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';
|
|
@@ -292,7 +292,7 @@ const sso = (options) => {
|
|
|
292
292
|
discoveryEndpoint: body.discoveryEndpoint || `${body.issuer}/.well-known/openid-configuration`,
|
|
293
293
|
mapping: body.mapping,
|
|
294
294
|
scopes: body.scopes,
|
|
295
|
-
|
|
295
|
+
userInfoEndpoint: body.userInfoEndpoint,
|
|
296
296
|
overrideUserInfo: ctx.body.overrideUserInfo || options?.defaultOverrideUserInfo || false
|
|
297
297
|
}),
|
|
298
298
|
organizationId: body.organizationId,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
4
4
|
const zod = require('zod');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.zMvh8rLL.cjs');
|
|
6
6
|
const betterCall = require('better-call');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
8
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -707,9 +707,11 @@ const otp2fa = (options) => {
|
|
|
707
707
|
);
|
|
708
708
|
const [otp, counter] = toCheckOtp?.value?.split("!") ?? [];
|
|
709
709
|
if (!toCheckOtp || toCheckOtp.expiresAt < /* @__PURE__ */ new Date()) {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
710
|
+
if (toCheckOtp) {
|
|
711
|
+
await ctx.context.internalAdapter.deleteVerificationValue(
|
|
712
|
+
toCheckOtp.id
|
|
713
|
+
);
|
|
714
|
+
}
|
|
713
715
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
714
716
|
message: TWO_FACTOR_ERROR_CODES.OTP_HAS_EXPIRED
|
|
715
717
|
});
|
|
@@ -717,7 +719,7 @@ const otp2fa = (options) => {
|
|
|
717
719
|
const allowedAttempts = options?.allowedAttempts || 5;
|
|
718
720
|
if (parseInt(counter) >= allowedAttempts) {
|
|
719
721
|
await ctx.context.internalAdapter.deleteVerificationValue(
|
|
720
|
-
|
|
722
|
+
toCheckOtp.id
|
|
721
723
|
);
|
|
722
724
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
723
725
|
message: TWO_FACTOR_ERROR_CODES.TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { U as User, I as InferOptionSchema, d as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, d as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.C9h9IDuv.cjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.CYegVoq1.cjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import '../../shared/better-auth.7QibuQ0I.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { U as User, I as InferOptionSchema, d as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, d as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.DoH4g3oA.mjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.CYegVoq1.mjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import '../../shared/better-auth.C39-x5Oo.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { U as User, I as InferOptionSchema, d as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, d as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.EetBIuJe.js';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.CYegVoq1.js';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import '../../shared/better-auth.CpEzqKmn.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { g as getSessionFromCtx, a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, c as createAuthMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { g as getSessionFromCtx, a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, c as createAuthMiddleware } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
4
4
|
import { APIError } from 'better-call';
|
|
5
5
|
import { setSessionCookie, deleteSessionCookie } from '../../cookies/index.mjs';
|
|
6
6
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -705,9 +705,11 @@ const otp2fa = (options) => {
|
|
|
705
705
|
);
|
|
706
706
|
const [otp, counter] = toCheckOtp?.value?.split("!") ?? [];
|
|
707
707
|
if (!toCheckOtp || toCheckOtp.expiresAt < /* @__PURE__ */ new Date()) {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
708
|
+
if (toCheckOtp) {
|
|
709
|
+
await ctx.context.internalAdapter.deleteVerificationValue(
|
|
710
|
+
toCheckOtp.id
|
|
711
|
+
);
|
|
712
|
+
}
|
|
711
713
|
throw new APIError("BAD_REQUEST", {
|
|
712
714
|
message: TWO_FACTOR_ERROR_CODES.OTP_HAS_EXPIRED
|
|
713
715
|
});
|
|
@@ -715,7 +717,7 @@ const otp2fa = (options) => {
|
|
|
715
717
|
const allowedAttempts = options?.allowedAttempts || 5;
|
|
716
718
|
if (parseInt(counter) >= allowedAttempts) {
|
|
717
719
|
await ctx.context.internalAdapter.deleteVerificationValue(
|
|
718
|
-
|
|
720
|
+
toCheckOtp.id
|
|
719
721
|
);
|
|
720
722
|
throw new APIError("BAD_REQUEST", {
|
|
721
723
|
message: TWO_FACTOR_ERROR_CODES.TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE
|
|
@@ -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
|
const schema$1 = require('../../shared/better-auth.DcWKCjjf.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema, 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 { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema, 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 { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { I as InferOptionSchema, 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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, d as sendVerificationEmailFn, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, d as sendVerificationEmailFn, B as BASE_ERROR_CODES } from '../../shared/better-auth.DZhGZ3hY.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import { m as mergeSchema } from '../../shared/better-auth.Cc72UxUH.mjs';
|
|
@@ -155,7 +155,7 @@ const createAdapter = ({
|
|
|
155
155
|
if (config.disableIdGeneration) return void 0;
|
|
156
156
|
const useNumberId = options.advanced?.database?.useNumberId;
|
|
157
157
|
let generateId = options.advanced?.database?.generateId;
|
|
158
|
-
if (options.advanced?.generateId) {
|
|
158
|
+
if (options.advanced?.generateId !== void 0) {
|
|
159
159
|
logger.logger.warn(
|
|
160
160
|
"Your Better Auth config includes advanced.generateId which is deprecated. Please use advanced.database.generateId instead. This will be removed in future releases."
|
|
161
161
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, l as AuthContext } from './better-auth.
|
|
3
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, l as AuthContext } from './better-auth.EetBIuJe.js';
|
|
4
4
|
import { Statements } from '../plugins/access/index.js';
|
|
5
5
|
|
|
6
6
|
declare const apiKeySchema: ({ timeWindow, rateLimitMax, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FieldAttribute, h as BetterAuthDbSchema, f as BetterAuthOptions, W as Where, i as AdapterSchemaCreation } from './better-auth.
|
|
1
|
+
import { F as FieldAttribute, h as BetterAuthDbSchema, f as BetterAuthOptions, W as Where, i as AdapterSchemaCreation } from './better-auth.EetBIuJe.js';
|
|
2
2
|
import { P as Prettify } from './better-auth.CYegVoq1.js';
|
|
3
3
|
|
|
4
4
|
type AdapterDebugLogs = boolean | {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
4
|
const zod = require('zod');
|
|
5
|
-
const refreshToken = require('./better-auth.
|
|
5
|
+
const refreshToken = require('./better-auth.zMvh8rLL.cjs');
|
|
6
6
|
require('./better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const refreshToken = require('./better-auth.
|
|
5
|
+
const refreshToken = require('./better-auth.zMvh8rLL.cjs');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema$1 = require('./better-auth.DcWKCjjf.cjs');
|
|
8
8
|
require('./better-auth.DiSjtgs9.cjs');
|