better-auth 1.2.4-beta.5 → 1.2.4-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/api/index.cjs +2 -2
- package/dist/api/index.mjs +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/integrations/next-js.cjs +4 -4
- package/dist/integrations/next-js.mjs +4 -4
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +3 -3
- package/dist/plugins/admin/index.mjs +3 -3
- package/dist/plugins/anonymous/index.cjs +2 -2
- package/dist/plugins/anonymous/index.mjs +2 -2
- package/dist/plugins/bearer/index.cjs +2 -2
- package/dist/plugins/bearer/index.mjs +2 -2
- package/dist/plugins/custom-session/index.cjs +2 -2
- package/dist/plugins/custom-session/index.mjs +2 -2
- package/dist/plugins/email-otp/index.cjs +2 -2
- package/dist/plugins/email-otp/index.mjs +2 -2
- package/dist/plugins/generic-oauth/index.cjs +2 -2
- package/dist/plugins/generic-oauth/index.mjs +2 -2
- package/dist/plugins/index.cjs +6 -6
- package/dist/plugins/index.mjs +7 -7
- package/dist/plugins/jwt/index.cjs +2 -2
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +2 -2
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.cjs +2 -2
- package/dist/plugins/multi-session/index.mjs +2 -2
- package/dist/plugins/oauth-proxy/index.cjs +2 -2
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +2 -2
- package/dist/plugins/one-tap/index.mjs +2 -2
- package/dist/plugins/open-api/index.cjs +2 -2
- package/dist/plugins/open-api/index.mjs +2 -2
- package/dist/plugins/organization/index.cjs +4 -4
- package/dist/plugins/organization/index.mjs +4 -4
- package/dist/plugins/passkey/index.cjs +2 -2
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +2 -2
- package/dist/plugins/phone-number/index.mjs +2 -2
- package/dist/plugins/sso/index.cjs +2 -2
- package/dist/plugins/sso/index.mjs +2 -2
- package/dist/plugins/two-factor/index.cjs +3 -3
- package/dist/plugins/two-factor/index.mjs +3 -3
- package/dist/plugins/username/index.cjs +2 -2
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/shared/{better-auth.CcttI6Ga.mjs → better-auth.BCxI6VqA.mjs} +1 -1
- package/dist/shared/{better-auth.CfIIIkAv.mjs → better-auth.BV-vIlT-.mjs} +1 -1
- package/dist/shared/{better-auth.DWy7mPjr.cjs → better-auth.BWS47UJv.cjs} +1 -1
- package/dist/shared/{better-auth.B9EAFFlp.cjs → better-auth.BjVlZyD_.cjs} +1 -1
- package/dist/shared/{better-auth.vVUb_2f5.mjs → better-auth.BtTReAei.mjs} +1 -1
- package/dist/shared/{better-auth.Dxynqa8m.mjs → better-auth.C3kF5U0o.mjs} +3 -5
- package/dist/shared/{better-auth.GgQnT00n.cjs → better-auth.CHHC_PJT.cjs} +1 -0
- package/dist/shared/{better-auth.CoMXyQ1y.mjs → better-auth.CbXAPXob.mjs} +1 -0
- package/dist/shared/{better-auth.BTKX27-D.cjs → better-auth.CzAToCpU.cjs} +2 -2
- package/dist/shared/{better-auth.D60yW05g.cjs → better-auth.DIytoqOn.cjs} +3 -5
- package/dist/shared/{better-auth.x7nh5kI2.mjs → better-auth.DMEXWsl7.mjs} +2 -2
- package/dist/shared/{better-auth.CbfLzmYA.cjs → better-auth.DpaivF84.cjs} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const jose = require('jose');
|
|
4
4
|
const zod = require('zod');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
|
-
const account = require('../../shared/better-auth.
|
|
6
|
+
const account = require('../../shared/better-auth.DIytoqOn.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');
|
|
@@ -26,7 +26,7 @@ require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
|
26
26
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
27
27
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
28
28
|
require('@better-auth/utils/random');
|
|
29
|
-
require('../../shared/better-auth.
|
|
29
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
31
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
32
32
|
require('../../shared/better-auth.DhfiEsxl.cjs');
|
|
@@ -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.C3kF5U0o.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';
|
|
@@ -24,7 +24,7 @@ import '../../shared/better-auth.D7syfoJW.mjs';
|
|
|
24
24
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
25
25
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
26
26
|
import '@better-auth/utils/random';
|
|
27
|
-
import '../../shared/better-auth.
|
|
27
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
29
29
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
30
30
|
import '../../shared/better-auth.NcLhHEks.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const account = require('../../shared/better-auth.
|
|
5
|
+
const account = require('../../shared/better-auth.DIytoqOn.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.CHyZMcYK.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -25,7 +25,7 @@ require('@noble/hashes/utils');
|
|
|
25
25
|
require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
26
26
|
require('@better-auth/utils/random');
|
|
27
27
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
28
|
-
require('../../shared/better-auth.
|
|
28
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
29
29
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
30
30
|
require('@better-auth/utils/hmac');
|
|
31
31
|
require('../../shared/better-auth.BMYo0QR-.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.C3kF5U0o.mjs';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../shared/better-auth.C24Bzw4w.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -23,7 +23,7 @@ import '@noble/hashes/utils';
|
|
|
23
23
|
import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
24
24
|
import '@better-auth/utils/random';
|
|
25
25
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
26
|
-
import '../../shared/better-auth.
|
|
26
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
27
27
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
28
28
|
import '@better-auth/utils/hmac';
|
|
29
29
|
import '../../shared/better-auth.DDEbWX-S.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 account = require('../../shared/better-auth.
|
|
23
|
+
const account = require('../../shared/better-auth.DIytoqOn.cjs');
|
|
24
24
|
require('@better-auth/utils/hmac');
|
|
25
25
|
require('defu');
|
|
26
26
|
require('../../cookies/index.cjs');
|
|
@@ -31,7 +31,7 @@ require('../../shared/better-auth.BgkOX1Ei.cjs');
|
|
|
31
31
|
require('../../social-providers/index.cjs');
|
|
32
32
|
require('@better-fetch/fetch');
|
|
33
33
|
require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
34
|
-
require('../../shared/better-auth.
|
|
34
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
35
35
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
36
36
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
37
37
|
require('../../shared/better-auth.DhfiEsxl.cjs');
|
|
@@ -18,7 +18,7 @@ import '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
|
18
18
|
import '../../shared/better-auth.DH3YjMQH.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.C3kF5U0o.mjs';
|
|
22
22
|
import '@better-auth/utils/hmac';
|
|
23
23
|
import 'defu';
|
|
24
24
|
import '../../cookies/index.mjs';
|
|
@@ -29,7 +29,7 @@ import '../../shared/better-auth.Duk7IG0N.mjs';
|
|
|
29
29
|
import '../../social-providers/index.mjs';
|
|
30
30
|
import '@better-fetch/fetch';
|
|
31
31
|
import '../../shared/better-auth.D7syfoJW.mjs';
|
|
32
|
-
import '../../shared/better-auth.
|
|
32
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
33
33
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
34
34
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
35
35
|
import '../../shared/better-auth.NcLhHEks.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.CzAToCpU.cjs');
|
|
4
4
|
require('better-call');
|
|
5
5
|
require('zod');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.DIytoqOn.cjs');
|
|
7
7
|
require('../../cookies/index.cjs');
|
|
8
8
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
@@ -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.GpOOav9x.cjs');
|
|
29
|
-
require('../../shared/better-auth.
|
|
29
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
30
30
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
31
31
|
require('../../shared/better-auth.CHyZMcYK.cjs');
|
|
32
32
|
require('defu');
|
|
@@ -34,7 +34,7 @@ require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
|
34
34
|
require('../../shared/better-auth.DhfiEsxl.cjs');
|
|
35
35
|
require('jose/errors');
|
|
36
36
|
require('@better-auth/utils/binary');
|
|
37
|
-
require('../../shared/better-auth.
|
|
37
|
+
require('../../shared/better-auth.DpaivF84.cjs');
|
|
38
38
|
require('../../shared/better-auth.DhsGZ30Q.cjs');
|
|
39
39
|
require('./access/index.cjs');
|
|
40
40
|
require('../access/index.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { o as organization } from '../../shared/better-auth.
|
|
1
|
+
export { o as organization } from '../../shared/better-auth.DMEXWsl7.mjs';
|
|
2
2
|
import 'better-call';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.C3kF5U0o.mjs';
|
|
5
5
|
import '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -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.DH3YjMQH.mjs';
|
|
27
|
-
import '../../shared/better-auth.
|
|
27
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
28
28
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
29
29
|
import '../../shared/better-auth.C24Bzw4w.mjs';
|
|
30
30
|
import 'defu';
|
|
@@ -32,7 +32,7 @@ import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
|
32
32
|
import '../../shared/better-auth.NcLhHEks.mjs';
|
|
33
33
|
import 'jose/errors';
|
|
34
34
|
import '@better-auth/utils/binary';
|
|
35
|
-
import '../../shared/better-auth.
|
|
35
|
+
import '../../shared/better-auth.BCxI6VqA.mjs';
|
|
36
36
|
import '../../shared/better-auth.ffWeg50w.mjs';
|
|
37
37
|
import './access/index.mjs';
|
|
38
38
|
import '../access/index.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 account = require('../../shared/better-auth.
|
|
7
|
+
const account = require('../../shared/better-auth.DIytoqOn.cjs');
|
|
8
8
|
const cookies_index = require('../../cookies/index.cjs');
|
|
9
9
|
const schema$1 = require('../../shared/better-auth.CHyZMcYK.cjs');
|
|
10
10
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -27,7 +27,7 @@ require('@better-fetch/fetch');
|
|
|
27
27
|
require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
28
28
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
29
29
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
30
|
-
require('../../shared/better-auth.
|
|
30
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
31
31
|
require('@better-auth/utils/hmac');
|
|
32
32
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
33
33
|
require('../../shared/better-auth.DhfiEsxl.cjs');
|
|
@@ -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.C3kF5U0o.mjs';
|
|
6
6
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
7
7
|
import { m as mergeSchema } from '../../shared/better-auth.C24Bzw4w.mjs';
|
|
8
8
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -25,7 +25,7 @@ import '@better-fetch/fetch';
|
|
|
25
25
|
import '../../shared/better-auth.D7syfoJW.mjs';
|
|
26
26
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
27
27
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
28
|
-
import '../../shared/better-auth.
|
|
28
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
29
29
|
import '@better-auth/utils/hmac';
|
|
30
30
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
31
31
|
import '../../shared/better-auth.NcLhHEks.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const account = require('../../shared/better-auth.
|
|
4
|
+
const account = require('../../shared/better-auth.DIytoqOn.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const schema$1 = require('../../shared/better-auth.CHyZMcYK.cjs');
|
|
7
7
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
@@ -25,7 +25,7 @@ require('@better-auth/utils/hex');
|
|
|
25
25
|
require('@noble/hashes/utils');
|
|
26
26
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
27
27
|
require('@better-auth/utils/random');
|
|
28
|
-
require('../../shared/better-auth.
|
|
28
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
29
29
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
30
30
|
require('@better-auth/utils/hmac');
|
|
31
31
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
@@ -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.C3kF5U0o.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { m as mergeSchema } from '../../shared/better-auth.C24Bzw4w.mjs';
|
|
5
5
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
@@ -23,7 +23,7 @@ import '@better-auth/utils/hex';
|
|
|
23
23
|
import '@noble/hashes/utils';
|
|
24
24
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
25
25
|
import '@better-auth/utils/random';
|
|
26
|
-
import '../../shared/better-auth.
|
|
26
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
27
27
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
28
28
|
import '@better-auth/utils/hmac';
|
|
29
29
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const account = require('../../shared/better-auth.
|
|
5
|
+
const account = require('../../shared/better-auth.DIytoqOn.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.CHyZMcYK.cjs');
|
|
8
8
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -11,7 +11,7 @@ require('defu');
|
|
|
11
11
|
const validateAuthorizationCode = require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
12
12
|
require('@better-auth/utils/hash');
|
|
13
13
|
require('@better-auth/utils/base64');
|
|
14
|
-
const state = require('../../shared/better-auth.
|
|
14
|
+
const state = require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
15
15
|
const fetch = require('@better-fetch/fetch');
|
|
16
16
|
const jose = require('jose');
|
|
17
17
|
require('../../social-providers/index.cjs');
|
|
@@ -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.C3kF5U0o.mjs';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../shared/better-auth.C24Bzw4w.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -9,7 +9,7 @@ import 'defu';
|
|
|
9
9
|
import { v as validateAuthorizationCode, a as validateToken, c as createAuthorizationURL } from '../../shared/better-auth.D7syfoJW.mjs';
|
|
10
10
|
import '@better-auth/utils/hash';
|
|
11
11
|
import '@better-auth/utils/base64';
|
|
12
|
-
import { p as parseState, g as generateState } from '../../shared/better-auth.
|
|
12
|
+
import { p as parseState, g as generateState } from '../../shared/better-auth.CbXAPXob.mjs';
|
|
13
13
|
import { betterFetch, BetterFetchError } from '@better-fetch/fetch';
|
|
14
14
|
import { decodeJwt } from 'jose';
|
|
15
15
|
import '../../social-providers/index.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const random = require('../../shared/better-auth.CYeOI8C-.cjs');
|
|
4
4
|
const zod = require('zod');
|
|
5
|
-
const account = require('../../shared/better-auth.
|
|
5
|
+
const account = require('../../shared/better-auth.DIytoqOn.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.CHyZMcYK.cjs');
|
|
@@ -10,7 +10,7 @@ require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
|
10
10
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
11
11
|
require('defu');
|
|
12
12
|
const crypto_index = require('../../crypto/index.cjs');
|
|
13
|
-
const verifyMiddleware = require('../../shared/better-auth.
|
|
13
|
+
const verifyMiddleware = require('../../shared/better-auth.BWS47UJv.cjs');
|
|
14
14
|
const errorCode = require('../../shared/better-auth.C1-vpKly.cjs');
|
|
15
15
|
require('@better-auth/utils/hash');
|
|
16
16
|
require('@noble/ciphers/chacha');
|
|
@@ -32,7 +32,7 @@ require('@better-fetch/fetch');
|
|
|
32
32
|
require('../../shared/better-auth.DdjqxOIu.cjs');
|
|
33
33
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
34
34
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
35
|
-
require('../../shared/better-auth.
|
|
35
|
+
require('../../shared/better-auth.CHHC_PJT.cjs');
|
|
36
36
|
require('../../shared/better-auth.Bg6iw3ig.cjs');
|
|
37
37
|
require('../../shared/better-auth.BMYo0QR-.cjs');
|
|
38
38
|
require('../../shared/better-auth.DhfiEsxl.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { a as createAuthEndpoint, s as sessionMiddleware, c as createAuthMiddleware, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, c as createAuthMiddleware, B as BASE_ERROR_CODES } from '../../shared/better-auth.C3kF5U0o.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.C24Bzw4w.mjs';
|
|
@@ -8,7 +8,7 @@ import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
|
8
8
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
9
9
|
import 'defu';
|
|
10
10
|
import { symmetricEncrypt, symmetricDecrypt } from '../../crypto/index.mjs';
|
|
11
|
-
import { v as verifyTwoFactorMiddleware, T as TRUST_DEVICE_COOKIE_NAME, a as TWO_FACTOR_COOKIE_NAME } from '../../shared/better-auth.
|
|
11
|
+
import { v as verifyTwoFactorMiddleware, T as TRUST_DEVICE_COOKIE_NAME, a as TWO_FACTOR_COOKIE_NAME } from '../../shared/better-auth.BtTReAei.mjs';
|
|
12
12
|
import { T as TWO_FACTOR_ERROR_CODES } from '../../shared/better-auth.BcoSd9tC.mjs';
|
|
13
13
|
import '@better-auth/utils/hash';
|
|
14
14
|
import '@noble/ciphers/chacha';
|
|
@@ -30,7 +30,7 @@ import '@better-fetch/fetch';
|
|
|
30
30
|
import '../../shared/better-auth.D7syfoJW.mjs';
|
|
31
31
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
32
32
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
33
|
-
import '../../shared/better-auth.
|
|
33
|
+
import '../../shared/better-auth.CbXAPXob.mjs';
|
|
34
34
|
import '../../shared/better-auth.BUPPRXfK.mjs';
|
|
35
35
|
import '../../shared/better-auth.DDEbWX-S.mjs';
|
|
36
36
|
import '../../shared/better-auth.NcLhHEks.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const account = require('../../shared/better-auth.
|
|
4
|
+
const account = require('../../shared/better-auth.DIytoqOn.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.CHyZMcYK.cjs');
|
|
@@ -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.CHHC_PJT.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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, b as sendVerificationEmailFn, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, b as sendVerificationEmailFn, B as BASE_ERROR_CODES } from '../../shared/better-auth.C3kF5U0o.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.C24Bzw4w.mjs';
|
|
@@ -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.CbXAPXob.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as createAuthMiddleware, s as sessionMiddleware, a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES, M as requestOnlySessionMiddleware } from './better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, s as sessionMiddleware, a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES, M as requestOnlySessionMiddleware } from './better-auth.C3kF5U0o.mjs';
|
|
3
3
|
import './better-auth.8zoxzg-F.mjs';
|
|
4
4
|
import '@better-auth/utils/base64';
|
|
5
5
|
import '@better-auth/utils/hmac';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { c as createAuthMiddleware, g as getSessionFromCtx, a as createAuthEndpoint } from './better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, g as getSessionFromCtx, a as createAuthEndpoint } from './better-auth.C3kF5U0o.mjs';
|
|
4
4
|
import { setSessionCookie, deleteSessionCookie } from '../cookies/index.mjs';
|
|
5
5
|
import { m as mergeSchema } from './better-auth.C24Bzw4w.mjs';
|
|
6
6
|
import './better-auth.8zoxzg-F.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const account = require('./better-auth.
|
|
4
|
+
const account = require('./better-auth.DIytoqOn.cjs');
|
|
5
5
|
const cookies_index = require('../cookies/index.cjs');
|
|
6
6
|
const zod = require('zod');
|
|
7
7
|
require('./better-auth.CHyZMcYK.cjs');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const account = require('./better-auth.
|
|
5
|
+
const account = require('./better-auth.DIytoqOn.cjs');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema$1 = require('./better-auth.CHyZMcYK.cjs');
|
|
8
8
|
require('./better-auth.DiSjtgs9.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import { c as createAuthMiddleware, g as getSessionFromCtx } from './better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, g as getSessionFromCtx } from './better-auth.C3kF5U0o.mjs';
|
|
3
3
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import './better-auth.C24Bzw4w.mjs';
|
|
@@ -3,7 +3,7 @@ import { deleteSessionCookie, setSessionCookie, setCookieCache } from '../cookie
|
|
|
3
3
|
import { createMiddleware, createEndpoint, APIError } from 'better-call';
|
|
4
4
|
import { SocialProviderListEnum, socialProviderList } from '../social-providers/index.mjs';
|
|
5
5
|
import '@better-auth/utils/random';
|
|
6
|
-
import { g as generateState, p as parseState } from './better-auth.
|
|
6
|
+
import { g as generateState, p as parseState } from './better-auth.CbXAPXob.mjs';
|
|
7
7
|
import { a as logger } from './better-auth.DH3YjMQH.mjs';
|
|
8
8
|
import { g as getDate } from './better-auth.CW6D9eSx.mjs';
|
|
9
9
|
import { g as generateId } from './better-auth.BUPPRXfK.mjs';
|
|
@@ -1632,9 +1632,7 @@ const callbackOAuth = createAuthEndpoint(
|
|
|
1632
1632
|
}
|
|
1633
1633
|
} catch (e) {
|
|
1634
1634
|
c.context.logger.error("INVALID_CALLBACK_REQUEST", e);
|
|
1635
|
-
throw c.redirect(
|
|
1636
|
-
`${c.context.baseURL}/error?error=invalid_callback_request`
|
|
1637
|
-
);
|
|
1635
|
+
throw c.redirect(`${defaultErrorURL}?error=invalid_callback_request`);
|
|
1638
1636
|
}
|
|
1639
1637
|
const { code, error, state, error_description, device_id } = queryOrBody;
|
|
1640
1638
|
if (error) {
|
|
@@ -1655,7 +1653,7 @@ const callbackOAuth = createAuthEndpoint(
|
|
|
1655
1653
|
requestSignUp
|
|
1656
1654
|
} = await parseState(c);
|
|
1657
1655
|
function redirectOnError(error2) {
|
|
1658
|
-
let url = errorURL || callbackURL ||
|
|
1656
|
+
let url = errorURL || callbackURL || defaultErrorURL;
|
|
1659
1657
|
if (url.includes("?")) {
|
|
1660
1658
|
url = `${url}&error=${error2}`;
|
|
1661
1659
|
} else {
|
|
@@ -82,6 +82,7 @@ async function parseState(c) {
|
|
|
82
82
|
parsedData.errorURL = `${c.context.baseURL}/error`;
|
|
83
83
|
}
|
|
84
84
|
if (parsedData.expiresAt < Date.now()) {
|
|
85
|
+
await c.context.internalAdapter.deleteVerificationValue(data.id);
|
|
85
86
|
throw c.redirect(
|
|
86
87
|
`${c.context.baseURL}/error?error=please_restart_the_process`
|
|
87
88
|
);
|
|
@@ -80,6 +80,7 @@ async function parseState(c) {
|
|
|
80
80
|
parsedData.errorURL = `${c.context.baseURL}/error`;
|
|
81
81
|
}
|
|
82
82
|
if (parsedData.expiresAt < Date.now()) {
|
|
83
|
+
await c.context.internalAdapter.deleteVerificationValue(data.id);
|
|
83
84
|
throw c.redirect(
|
|
84
85
|
`${c.context.baseURL}/error?error=please_restart_the_process`
|
|
85
86
|
);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
4
|
const zod = require('zod');
|
|
5
|
-
const account = require('./better-auth.
|
|
5
|
+
const account = require('./better-auth.DIytoqOn.cjs');
|
|
6
6
|
require('./better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
9
9
|
require('./better-auth.CHyZMcYK.cjs');
|
|
10
|
-
const crudTeam = require('./better-auth.
|
|
10
|
+
const crudTeam = require('./better-auth.DpaivF84.cjs');
|
|
11
11
|
const plugins_organization_access_index = require('../plugins/organization/access/index.cjs');
|
|
12
12
|
|
|
13
13
|
const shimContext = (originalObject, newContext) => {
|
|
@@ -5,7 +5,7 @@ const cookies_index = require('../cookies/index.cjs');
|
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const socialProviders_index = require('../social-providers/index.cjs');
|
|
7
7
|
require('@better-auth/utils/random');
|
|
8
|
-
const state = require('./better-auth.
|
|
8
|
+
const state = require('./better-auth.CHHC_PJT.cjs');
|
|
9
9
|
const logger = require('./better-auth.GpOOav9x.cjs');
|
|
10
10
|
const date = require('./better-auth.C1hdVENX.cjs');
|
|
11
11
|
const id = require('./better-auth.Bg6iw3ig.cjs');
|
|
@@ -1634,9 +1634,7 @@ const callbackOAuth = createAuthEndpoint(
|
|
|
1634
1634
|
}
|
|
1635
1635
|
} catch (e) {
|
|
1636
1636
|
c.context.logger.error("INVALID_CALLBACK_REQUEST", e);
|
|
1637
|
-
throw c.redirect(
|
|
1638
|
-
`${c.context.baseURL}/error?error=invalid_callback_request`
|
|
1639
|
-
);
|
|
1637
|
+
throw c.redirect(`${defaultErrorURL}?error=invalid_callback_request`);
|
|
1640
1638
|
}
|
|
1641
1639
|
const { code, error, state: state$1, error_description, device_id } = queryOrBody;
|
|
1642
1640
|
if (error) {
|
|
@@ -1657,7 +1655,7 @@ const callbackOAuth = createAuthEndpoint(
|
|
|
1657
1655
|
requestSignUp
|
|
1658
1656
|
} = await state.parseState(c);
|
|
1659
1657
|
function redirectOnError(error2) {
|
|
1660
|
-
let url = errorURL || callbackURL ||
|
|
1658
|
+
let url = errorURL || callbackURL || defaultErrorURL;
|
|
1661
1659
|
if (url.includes("?")) {
|
|
1662
1660
|
url = `${url}&error=${error2}`;
|
|
1663
1661
|
} else {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { a as createAuthEndpoint, g as getSessionFromCtx } from './better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, g as getSessionFromCtx } from './better-auth.C3kF5U0o.mjs';
|
|
4
4
|
import './better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
7
7
|
import './better-auth.C24Bzw4w.mjs';
|
|
8
|
-
import { u as updateMemberRole, a as addMember, c as createInvitation, g as getFullOrganization, s as setActiveOrganization, b as createTeam, d as updateTeam, r as removeTeam, l as listOrganizationTeams, e as leaveOrganization, f as getActiveMember, h as removeMember, i as checkOrganizationSlug, j as rejectInvitation, k as getInvitation, m as acceptInvitation, n as cancelInvitation, o as listOrganizations, p as deleteOrganization, q as updateOrganization, t as createOrganization, O as ORGANIZATION_ERROR_CODES, v as orgSessionMiddleware, w as getOrgAdapter, x as hasPermission } from './better-auth.
|
|
8
|
+
import { u as updateMemberRole, a as addMember, c as createInvitation, g as getFullOrganization, s as setActiveOrganization, b as createTeam, d as updateTeam, r as removeTeam, l as listOrganizationTeams, e as leaveOrganization, f as getActiveMember, h as removeMember, i as checkOrganizationSlug, j as rejectInvitation, k as getInvitation, m as acceptInvitation, n as cancelInvitation, o as listOrganizations, p as deleteOrganization, q as updateOrganization, t as createOrganization, O as ORGANIZATION_ERROR_CODES, v as orgSessionMiddleware, w as getOrgAdapter, x as hasPermission } from './better-auth.BCxI6VqA.mjs';
|
|
9
9
|
import { defaultRoles } from '../plugins/organization/access/index.mjs';
|
|
10
10
|
|
|
11
11
|
const shimContext = (originalObject, newContext) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const account = require('./better-auth.
|
|
4
|
+
const account = require('./better-auth.DIytoqOn.cjs');
|
|
5
5
|
require('./better-auth.DiSjtgs9.cjs');
|
|
6
6
|
require('@better-auth/utils/base64');
|
|
7
7
|
require('@better-auth/utils/hmac');
|