better-auth 1.2.6-beta.4 → 1.2.6-beta.5
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 +1 -1
- package/dist/api/index.mjs +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/integrations/next-js.cjs +1 -1
- package/dist/integrations/next-js.mjs +4 -4
- package/dist/oauth2/index.cjs +3 -2
- package/dist/oauth2/index.d.cts +2 -1
- package/dist/oauth2/index.d.mts +2 -1
- package/dist/oauth2/index.d.ts +2 -1
- package/dist/oauth2/index.mjs +2 -2
- package/dist/plugins/admin/index.cjs +1 -1
- package/dist/plugins/admin/index.mjs +3 -3
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.mjs +2 -2
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.mjs +2 -2
- package/dist/plugins/custom-session/index.cjs +15 -4
- package/dist/plugins/custom-session/index.d.cts +4 -2
- package/dist/plugins/custom-session/index.d.mts +4 -2
- package/dist/plugins/custom-session/index.d.ts +4 -2
- package/dist/plugins/custom-session/index.mjs +16 -5
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.mjs +2 -2
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.mjs +2 -2
- package/dist/plugins/index.cjs +3 -2
- package/dist/plugins/index.d.cts +1 -1
- package/dist/plugins/index.d.mts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.mjs +7 -7
- package/dist/plugins/jwt/index.cjs +1 -1
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.mjs +2 -2
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/oidc-provider/index.cjs +1 -1
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +2 -2
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.mjs +2 -2
- package/dist/plugins/organization/index.cjs +1 -1
- package/dist/plugins/organization/index.d.cts +3 -3
- package/dist/plugins/organization/index.d.mts +3 -3
- package/dist/plugins/organization/index.d.ts +3 -3
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.mjs +2 -2
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.mjs +2 -2
- package/dist/plugins/two-factor/index.cjs +4 -2
- package/dist/plugins/two-factor/index.d.cts +18 -1
- package/dist/plugins/two-factor/index.d.mts +18 -1
- package/dist/plugins/two-factor/index.d.ts +18 -1
- package/dist/plugins/two-factor/index.mjs +6 -5
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/shared/{better-auth.Bhu3YSmJ.mjs → better-auth.BSbTjuSH.mjs} +1 -1
- package/dist/shared/{better-auth.CsqL1BAE.mjs → better-auth.Bu8n0vlp.mjs} +1 -1
- package/dist/shared/{better-auth.BLV8UOn8.cjs → better-auth.BzKq70UC.cjs} +9 -3
- package/dist/shared/{better-auth.XIJlJT9f.mjs → better-auth.CX0ifPU-.mjs} +1 -1
- package/dist/shared/{better-auth.BVu0qf-P.mjs → better-auth.CY_Hrfhe.mjs} +1 -1
- package/dist/shared/{better-auth.B2THyVQH.mjs → better-auth.DjMtlb7e.mjs} +9 -4
- package/dist/social-providers/index.cjs +1 -1
- package/dist/social-providers/index.mjs +1 -1
- package/package.json +1 -1
package/dist/api/index.cjs
CHANGED
|
@@ -12,7 +12,7 @@ const defu = require('defu');
|
|
|
12
12
|
require('../social-providers/index.cjs');
|
|
13
13
|
require('@better-fetch/fetch');
|
|
14
14
|
require('jose');
|
|
15
|
-
require('../shared/better-auth.
|
|
15
|
+
require('../shared/better-auth.BzKq70UC.cjs');
|
|
16
16
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
17
17
|
require('@better-auth/utils/hash');
|
|
18
18
|
require('@better-auth/utils/base64');
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIError, toResponse, createRouter } from 'better-call';
|
|
2
2
|
export { APIError } from 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, B as BASE_ERROR_CODES,
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware,
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, e as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, b as getSession, i as originCheckMiddleware, j as error, k as ok, r as refreshToken, m as unlinkAccount, n as deleteUserCallback, p as listUserAccounts, q as linkSocialAccount, t as revokeOtherSessions, v as revokeSessions, x as revokeSession, y as forgetPasswordCallback, z as deleteUser, A as setPassword, C as changePassword, D as changeEmail, E as sendVerificationEmail, F as verifyEmail, G as resetPassword, I as forgetPassword, J as signInEmail, K as signOut, L as callbackOAuth, M as signInSocial } from '../shared/better-auth.CX0ifPU-.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware, d as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.CX0ifPU-.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
7
7
|
import { f as parseUserInput } from '../shared/better-auth.CepcSj5H.mjs';
|
|
@@ -12,7 +12,7 @@ import defu from 'defu';
|
|
|
12
12
|
import '../social-providers/index.mjs';
|
|
13
13
|
import '@better-fetch/fetch';
|
|
14
14
|
import 'jose';
|
|
15
|
-
import '../shared/better-auth.
|
|
15
|
+
import '../shared/better-auth.DjMtlb7e.mjs';
|
|
16
16
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
17
17
|
import '@better-auth/utils/hash';
|
|
18
18
|
import '@better-auth/utils/base64';
|
package/dist/index.cjs
CHANGED
|
@@ -40,7 +40,7 @@ require('./shared/better-auth.CUdxApHl.cjs');
|
|
|
40
40
|
require('./shared/better-auth.DWHWPllD.cjs');
|
|
41
41
|
require('@better-auth/utils/hmac');
|
|
42
42
|
require('@better-fetch/fetch');
|
|
43
|
-
require('./shared/better-auth.
|
|
43
|
+
require('./shared/better-auth.BzKq70UC.cjs');
|
|
44
44
|
require('./shared/better-auth.BMYo0QR-.cjs');
|
|
45
45
|
require('jose/errors');
|
|
46
46
|
require('@better-auth/utils/binary');
|
package/dist/index.mjs
CHANGED
|
@@ -23,8 +23,8 @@ import { c as checkPassword } from './shared/better-auth.YwDQhoPc.mjs';
|
|
|
23
23
|
import { a as getBaseURL, g as getOrigin } from './shared/better-auth.VTXNLFMT.mjs';
|
|
24
24
|
import { B as BetterAuthError } from './shared/better-auth.DdzSJf-n.mjs';
|
|
25
25
|
export { M as MissingDependencyError } from './shared/better-auth.DdzSJf-n.mjs';
|
|
26
|
-
import { B as BASE_ERROR_CODES } from './shared/better-auth.
|
|
27
|
-
export { H as HIDE_METADATA } from './shared/better-auth.
|
|
26
|
+
import { B as BASE_ERROR_CODES } from './shared/better-auth.CX0ifPU-.mjs';
|
|
27
|
+
export { H as HIDE_METADATA } from './shared/better-auth.CX0ifPU-.mjs';
|
|
28
28
|
export { c as capitalizeFirstLetter } from './shared/better-auth.D-2CmEwz.mjs';
|
|
29
29
|
export { g as generateState, p as parseState } from './shared/better-auth.BdyOG_p4.mjs';
|
|
30
30
|
import './shared/better-auth.DZGc_87_.mjs';
|
|
@@ -41,7 +41,7 @@ import './shared/better-auth.0TC26uRi.mjs';
|
|
|
41
41
|
import './shared/better-auth.DC8JQbiE.mjs';
|
|
42
42
|
import '@better-auth/utils/hmac';
|
|
43
43
|
import '@better-fetch/fetch';
|
|
44
|
-
import './shared/better-auth.
|
|
44
|
+
import './shared/better-auth.DjMtlb7e.mjs';
|
|
45
45
|
import './shared/better-auth.DDEbWX-S.mjs';
|
|
46
46
|
import 'jose/errors';
|
|
47
47
|
import '@better-auth/utils/binary';
|
|
@@ -34,7 +34,7 @@ require('../shared/better-auth.C1hdVENX.cjs');
|
|
|
34
34
|
require('../shared/better-auth.D3mtHEZg.cjs');
|
|
35
35
|
require('../shared/better-auth.C-R0J0n1.cjs');
|
|
36
36
|
require('../social-providers/index.cjs');
|
|
37
|
-
require('../shared/better-auth.
|
|
37
|
+
require('../shared/better-auth.BzKq70UC.cjs');
|
|
38
38
|
require('../shared/better-auth.QbbyHMYf.cjs');
|
|
39
39
|
require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
40
40
|
require('../shared/better-auth.BMYo0QR-.cjs');
|
|
@@ -4,9 +4,9 @@ import '@better-auth/utils/hmac';
|
|
|
4
4
|
import { parseSetCookieHeader } from '../cookies/index.mjs';
|
|
5
5
|
import 'better-call';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import { c as createAuthMiddleware } from '../shared/better-auth.
|
|
7
|
+
import { c as createAuthMiddleware } from '../shared/better-auth.CX0ifPU-.mjs';
|
|
8
8
|
import '../shared/better-auth.CepcSj5H.mjs';
|
|
9
|
-
import '../shared/better-auth.
|
|
9
|
+
import '../shared/better-auth.CY_Hrfhe.mjs';
|
|
10
10
|
import '../plugins/organization/access/index.mjs';
|
|
11
11
|
import '../shared/better-auth.B4Qoxdgc.mjs';
|
|
12
12
|
import '../shared/better-auth.DH3YjMQH.mjs';
|
|
@@ -20,7 +20,7 @@ import '@noble/hashes/scrypt';
|
|
|
20
20
|
import '@better-auth/utils';
|
|
21
21
|
import '@better-auth/utils/hex';
|
|
22
22
|
import '@noble/hashes/utils';
|
|
23
|
-
import '../shared/better-auth.
|
|
23
|
+
import '../shared/better-auth.Bu8n0vlp.mjs';
|
|
24
24
|
import '@better-auth/utils/otp';
|
|
25
25
|
import '../plugins/admin/access/index.mjs';
|
|
26
26
|
import '@better-fetch/fetch';
|
|
@@ -32,7 +32,7 @@ import '../shared/better-auth.CW6D9eSx.mjs';
|
|
|
32
32
|
import '../shared/better-auth.tB5eU6EY.mjs';
|
|
33
33
|
import '../shared/better-auth.VTXNLFMT.mjs';
|
|
34
34
|
import '../social-providers/index.mjs';
|
|
35
|
-
import '../shared/better-auth.
|
|
35
|
+
import '../shared/better-auth.DjMtlb7e.mjs';
|
|
36
36
|
import '../shared/better-auth.BdyOG_p4.mjs';
|
|
37
37
|
import '../shared/better-auth.BUPPRXfK.mjs';
|
|
38
38
|
import '../shared/better-auth.DDEbWX-S.mjs';
|
package/dist/oauth2/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const refreshAccessToken = require('../shared/better-auth.
|
|
3
|
+
const refreshAccessToken = require('../shared/better-auth.BzKq70UC.cjs');
|
|
4
4
|
const state = require('../shared/better-auth.QbbyHMYf.cjs');
|
|
5
5
|
require('@better-fetch/fetch');
|
|
6
|
+
require('jose');
|
|
6
7
|
require('../shared/better-auth.C1hdVENX.cjs');
|
|
7
8
|
require('@better-auth/utils/hash');
|
|
8
9
|
require('@better-auth/utils/base64');
|
|
9
|
-
require('jose');
|
|
10
10
|
require('zod');
|
|
11
11
|
require('better-call');
|
|
12
12
|
require('@noble/ciphers/chacha');
|
|
@@ -22,6 +22,7 @@ require('@better-auth/utils/random');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
exports.createAuthorizationURL = refreshAccessToken.createAuthorizationURL;
|
|
25
|
+
exports.encodeOAuthParameter = refreshAccessToken.encodeOAuthParameter;
|
|
25
26
|
exports.generateCodeChallenge = refreshAccessToken.generateCodeChallenge;
|
|
26
27
|
exports.getOAuth2Tokens = refreshAccessToken.getOAuth2Tokens;
|
|
27
28
|
exports.refreshAccessToken = refreshAccessToken.refreshAccessToken;
|
package/dist/oauth2/index.d.cts
CHANGED
|
@@ -52,5 +52,6 @@ declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, auth
|
|
|
52
52
|
|
|
53
53
|
declare function generateCodeChallenge(codeVerifier: string): Promise<string>;
|
|
54
54
|
declare function getOAuth2Tokens(data: Record<string, any>): OAuth2Tokens;
|
|
55
|
+
declare const encodeOAuthParameter: (value: string) => string;
|
|
55
56
|
|
|
56
|
-
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
|
57
|
+
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -52,5 +52,6 @@ declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, auth
|
|
|
52
52
|
|
|
53
53
|
declare function generateCodeChallenge(codeVerifier: string): Promise<string>;
|
|
54
54
|
declare function getOAuth2Tokens(data: Record<string, any>): OAuth2Tokens;
|
|
55
|
+
declare const encodeOAuthParameter: (value: string) => string;
|
|
55
56
|
|
|
56
|
-
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
|
57
|
+
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
package/dist/oauth2/index.d.ts
CHANGED
|
@@ -52,5 +52,6 @@ declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, auth
|
|
|
52
52
|
|
|
53
53
|
declare function generateCodeChallenge(codeVerifier: string): Promise<string>;
|
|
54
54
|
declare function getOAuth2Tokens(data: Record<string, any>): OAuth2Tokens;
|
|
55
|
+
declare const encodeOAuthParameter: (value: string) => string;
|
|
55
56
|
|
|
56
|
-
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
|
57
|
+
export { OAuth2Tokens, ProviderOptions, createAuthorizationURL, encodeOAuthParameter, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
package/dist/oauth2/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { c as createAuthorizationURL, g as generateCodeChallenge, b as getOAuth2Tokens, r as refreshAccessToken, v as validateAuthorizationCode, a as validateToken } from '../shared/better-auth.
|
|
1
|
+
export { c as createAuthorizationURL, e as encodeOAuthParameter, g as generateCodeChallenge, b as getOAuth2Tokens, r as refreshAccessToken, v as validateAuthorizationCode, a as validateToken } from '../shared/better-auth.DjMtlb7e.mjs';
|
|
2
2
|
export { g as generateState, p as parseState } from '../shared/better-auth.BdyOG_p4.mjs';
|
|
3
3
|
import '@better-fetch/fetch';
|
|
4
|
+
import 'jose';
|
|
4
5
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
5
6
|
import '@better-auth/utils/hash';
|
|
6
7
|
import '@better-auth/utils/base64';
|
|
7
|
-
import 'jose';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import '@noble/ciphers/chacha';
|
|
@@ -15,7 +15,7 @@ require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
15
15
|
require('../../social-providers/index.cjs');
|
|
16
16
|
require('@better-fetch/fetch');
|
|
17
17
|
require('jose');
|
|
18
|
-
require('../../shared/better-auth.
|
|
18
|
+
require('../../shared/better-auth.BzKq70UC.cjs');
|
|
19
19
|
require('@better-auth/utils/hash');
|
|
20
20
|
require('@noble/ciphers/chacha');
|
|
21
21
|
require('@noble/ciphers/utils');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as admin } from '../../shared/better-auth.
|
|
1
|
+
export { a as admin } from '../../shared/better-auth.BSbTjuSH.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'better-call';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.CX0ifPU-.mjs';
|
|
5
5
|
import '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -13,7 +13,7 @@ import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
13
13
|
import '../../social-providers/index.mjs';
|
|
14
14
|
import '@better-fetch/fetch';
|
|
15
15
|
import 'jose';
|
|
16
|
-
import '../../shared/better-auth.
|
|
16
|
+
import '../../shared/better-auth.DjMtlb7e.mjs';
|
|
17
17
|
import '@better-auth/utils/hash';
|
|
18
18
|
import '@noble/ciphers/chacha';
|
|
19
19
|
import '@noble/ciphers/utils';
|
|
@@ -12,7 +12,7 @@ const url = require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
12
12
|
require('../../social-providers/index.cjs');
|
|
13
13
|
require('@better-fetch/fetch');
|
|
14
14
|
require('jose');
|
|
15
|
-
require('../../shared/better-auth.
|
|
15
|
+
require('../../shared/better-auth.BzKq70UC.cjs');
|
|
16
16
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
17
17
|
require('@better-auth/utils/hash');
|
|
18
18
|
require('@better-auth/utils/base64');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
2
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.CX0ifPU-.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import { parseSetCookieHeader, setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import { m as mergeSchema } from '../../shared/better-auth.CepcSj5H.mjs';
|
|
@@ -10,7 +10,7 @@ import { g as getOrigin } from '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
10
10
|
import '../../social-providers/index.mjs';
|
|
11
11
|
import '@better-fetch/fetch';
|
|
12
12
|
import 'jose';
|
|
13
|
-
import '../../shared/better-auth.
|
|
13
|
+
import '../../shared/better-auth.DjMtlb7e.mjs';
|
|
14
14
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
15
15
|
import '@better-auth/utils/hash';
|
|
16
16
|
import '@better-auth/utils/base64';
|
|
@@ -17,7 +17,7 @@ require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
17
17
|
require('../../social-providers/index.cjs');
|
|
18
18
|
require('@better-fetch/fetch');
|
|
19
19
|
require('jose');
|
|
20
|
-
require('../../shared/better-auth.
|
|
20
|
+
require('../../shared/better-auth.BzKq70UC.cjs');
|
|
21
21
|
require('@better-auth/utils/hash');
|
|
22
22
|
require('@noble/ciphers/chacha');
|
|
23
23
|
require('@noble/ciphers/utils');
|
|
@@ -3,7 +3,7 @@ import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
|
3
3
|
import '@better-auth/utils/base64';
|
|
4
4
|
import { createHMAC } from '@better-auth/utils/hmac';
|
|
5
5
|
import { parseSetCookieHeader } from '../../cookies/index.mjs';
|
|
6
|
-
import { c as createAuthMiddleware } from '../../shared/better-auth.
|
|
6
|
+
import { c as createAuthMiddleware } from '../../shared/better-auth.CX0ifPU-.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
9
9
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
@@ -15,7 +15,7 @@ import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
15
15
|
import '../../social-providers/index.mjs';
|
|
16
16
|
import '@better-fetch/fetch';
|
|
17
17
|
import 'jose';
|
|
18
|
-
import '../../shared/better-auth.
|
|
18
|
+
import '../../shared/better-auth.DjMtlb7e.mjs';
|
|
19
19
|
import '@better-auth/utils/hash';
|
|
20
20
|
import '@noble/ciphers/chacha';
|
|
21
21
|
import '@noble/ciphers/utils';
|
|
@@ -17,7 +17,7 @@ require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
|
17
17
|
require('../../social-providers/index.cjs');
|
|
18
18
|
require('@better-fetch/fetch');
|
|
19
19
|
require('jose');
|
|
20
|
-
require('../../shared/better-auth.
|
|
20
|
+
require('../../shared/better-auth.BzKq70UC.cjs');
|
|
21
21
|
require('@better-auth/utils/hash');
|
|
22
22
|
require('@noble/ciphers/chacha');
|
|
23
23
|
require('@noble/ciphers/utils');
|
|
@@ -58,14 +58,25 @@ const customSession = (fn, options) => {
|
|
|
58
58
|
description: "Disable session refresh. Useful for checking session status, without updating the session"
|
|
59
59
|
}).optional()
|
|
60
60
|
})
|
|
61
|
-
)
|
|
61
|
+
),
|
|
62
|
+
requireHeaders: true
|
|
62
63
|
},
|
|
63
64
|
async (ctx) => {
|
|
64
|
-
const session = await refreshToken.
|
|
65
|
+
const session = await refreshToken.getSession()({
|
|
66
|
+
...ctx,
|
|
67
|
+
asResponse: false,
|
|
68
|
+
headers: ctx.headers,
|
|
69
|
+
returnHeaders: true
|
|
70
|
+
}).catch((e) => {
|
|
71
|
+
return null;
|
|
72
|
+
});
|
|
65
73
|
if (!session) {
|
|
66
74
|
return ctx.json(null);
|
|
67
75
|
}
|
|
68
|
-
const fnResult = await fn(session);
|
|
76
|
+
const fnResult = await fn(session.response);
|
|
77
|
+
session.headers.forEach((value, key) => {
|
|
78
|
+
ctx.setHeader(key, value);
|
|
79
|
+
});
|
|
69
80
|
return ctx.json(fnResult);
|
|
70
81
|
}
|
|
71
82
|
)
|
|
@@ -14,7 +14,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
17
|
-
<C extends [
|
|
17
|
+
<C extends [better_call.InputContext<"/get-session", {
|
|
18
18
|
method: "GET";
|
|
19
19
|
metadata: {
|
|
20
20
|
CUSTOM_SESSION: boolean;
|
|
@@ -33,9 +33,10 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
33
33
|
disableCookieCache?: string | boolean | undefined;
|
|
34
34
|
disableRefresh?: boolean | undefined;
|
|
35
35
|
}>>;
|
|
36
|
+
requireHeaders: true;
|
|
36
37
|
} & {
|
|
37
38
|
use: any[];
|
|
38
|
-
}>
|
|
39
|
+
}>]>(...inputCtx: C): Promise<C extends [{
|
|
39
40
|
asResponse: true;
|
|
40
41
|
}] ? Response : C extends [{
|
|
41
42
|
returnHeaders: true;
|
|
@@ -62,6 +63,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
62
63
|
disableCookieCache?: string | boolean | undefined;
|
|
63
64
|
disableRefresh?: boolean | undefined;
|
|
64
65
|
}>>;
|
|
66
|
+
requireHeaders: true;
|
|
65
67
|
} & {
|
|
66
68
|
use: any[];
|
|
67
69
|
};
|
|
@@ -14,7 +14,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
17
|
-
<C extends [
|
|
17
|
+
<C extends [better_call.InputContext<"/get-session", {
|
|
18
18
|
method: "GET";
|
|
19
19
|
metadata: {
|
|
20
20
|
CUSTOM_SESSION: boolean;
|
|
@@ -33,9 +33,10 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
33
33
|
disableCookieCache?: string | boolean | undefined;
|
|
34
34
|
disableRefresh?: boolean | undefined;
|
|
35
35
|
}>>;
|
|
36
|
+
requireHeaders: true;
|
|
36
37
|
} & {
|
|
37
38
|
use: any[];
|
|
38
|
-
}>
|
|
39
|
+
}>]>(...inputCtx: C): Promise<C extends [{
|
|
39
40
|
asResponse: true;
|
|
40
41
|
}] ? Response : C extends [{
|
|
41
42
|
returnHeaders: true;
|
|
@@ -62,6 +63,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
62
63
|
disableCookieCache?: string | boolean | undefined;
|
|
63
64
|
disableRefresh?: boolean | undefined;
|
|
64
65
|
}>>;
|
|
66
|
+
requireHeaders: true;
|
|
65
67
|
} & {
|
|
66
68
|
use: any[];
|
|
67
69
|
};
|
|
@@ -14,7 +14,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
14
14
|
id: "custom-session";
|
|
15
15
|
endpoints: {
|
|
16
16
|
getSession: {
|
|
17
|
-
<C extends [
|
|
17
|
+
<C extends [better_call.InputContext<"/get-session", {
|
|
18
18
|
method: "GET";
|
|
19
19
|
metadata: {
|
|
20
20
|
CUSTOM_SESSION: boolean;
|
|
@@ -33,9 +33,10 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
33
33
|
disableCookieCache?: string | boolean | undefined;
|
|
34
34
|
disableRefresh?: boolean | undefined;
|
|
35
35
|
}>>;
|
|
36
|
+
requireHeaders: true;
|
|
36
37
|
} & {
|
|
37
38
|
use: any[];
|
|
38
|
-
}>
|
|
39
|
+
}>]>(...inputCtx: C): Promise<C extends [{
|
|
39
40
|
asResponse: true;
|
|
40
41
|
}] ? Response : C extends [{
|
|
41
42
|
returnHeaders: true;
|
|
@@ -62,6 +63,7 @@ declare const customSession: <Returns extends Record<string, any>, O extends Bet
|
|
|
62
63
|
disableCookieCache?: string | boolean | undefined;
|
|
63
64
|
disableRefresh?: boolean | undefined;
|
|
64
65
|
}>>;
|
|
66
|
+
requireHeaders: true;
|
|
65
67
|
} & {
|
|
66
68
|
use: any[];
|
|
67
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint,
|
|
3
|
+
import { a as createAuthEndpoint, b as getSession } from '../../shared/better-auth.CX0ifPU-.mjs';
|
|
4
4
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
@@ -15,7 +15,7 @@ import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
|
15
15
|
import '../../social-providers/index.mjs';
|
|
16
16
|
import '@better-fetch/fetch';
|
|
17
17
|
import 'jose';
|
|
18
|
-
import '../../shared/better-auth.
|
|
18
|
+
import '../../shared/better-auth.DjMtlb7e.mjs';
|
|
19
19
|
import '@better-auth/utils/hash';
|
|
20
20
|
import '@noble/ciphers/chacha';
|
|
21
21
|
import '@noble/ciphers/utils';
|
|
@@ -56,14 +56,25 @@ const customSession = (fn, options) => {
|
|
|
56
56
|
description: "Disable session refresh. Useful for checking session status, without updating the session"
|
|
57
57
|
}).optional()
|
|
58
58
|
})
|
|
59
|
-
)
|
|
59
|
+
),
|
|
60
|
+
requireHeaders: true
|
|
60
61
|
},
|
|
61
62
|
async (ctx) => {
|
|
62
|
-
const session = await
|
|
63
|
+
const session = await getSession()({
|
|
64
|
+
...ctx,
|
|
65
|
+
asResponse: false,
|
|
66
|
+
headers: ctx.headers,
|
|
67
|
+
returnHeaders: true
|
|
68
|
+
}).catch((e) => {
|
|
69
|
+
return null;
|
|
70
|
+
});
|
|
63
71
|
if (!session) {
|
|
64
72
|
return ctx.json(null);
|
|
65
73
|
}
|
|
66
|
-
const fnResult = await fn(session);
|
|
74
|
+
const fnResult = await fn(session.response);
|
|
75
|
+
session.headers.forEach((value, key) => {
|
|
76
|
+
ctx.setHeader(key, value);
|
|
77
|
+
});
|
|
67
78
|
return ctx.json(fnResult);
|
|
68
79
|
}
|
|
69
80
|
)
|
|
@@ -23,7 +23,7 @@ const date = require('../../shared/better-auth.C1hdVENX.cjs');
|
|
|
23
23
|
const pluginHelper = require('../../shared/better-auth.DNqtHmvg.cjs');
|
|
24
24
|
require('../../social-providers/index.cjs');
|
|
25
25
|
require('@better-fetch/fetch');
|
|
26
|
-
require('../../shared/better-auth.
|
|
26
|
+
require('../../shared/better-auth.BzKq70UC.cjs');
|
|
27
27
|
require('../../shared/better-auth.ANpbi45u.cjs');
|
|
28
28
|
require('@better-auth/utils/random');
|
|
29
29
|
require('../../shared/better-auth.QbbyHMYf.cjs');
|
|
@@ -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.CX0ifPU-.mjs';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -21,7 +21,7 @@ import { g as getDate } from '../../shared/better-auth.CW6D9eSx.mjs';
|
|
|
21
21
|
import { g as getEndpointResponse } from '../../shared/better-auth.DQI8AD7d.mjs';
|
|
22
22
|
import '../../social-providers/index.mjs';
|
|
23
23
|
import '@better-fetch/fetch';
|
|
24
|
-
import '../../shared/better-auth.
|
|
24
|
+
import '../../shared/better-auth.DjMtlb7e.mjs';
|
|
25
25
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
26
26
|
import '@better-auth/utils/random';
|
|
27
27
|
import '../../shared/better-auth.BdyOG_p4.mjs';
|
|
@@ -9,7 +9,7 @@ require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
10
10
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
11
11
|
require('defu');
|
|
12
|
-
const refreshAccessToken = require('../../shared/better-auth.
|
|
12
|
+
const refreshAccessToken = require('../../shared/better-auth.BzKq70UC.cjs');
|
|
13
13
|
require('@better-auth/utils/hash');
|
|
14
14
|
require('@better-auth/utils/base64');
|
|
15
15
|
const state = require('../../shared/better-auth.QbbyHMYf.cjs');
|
|
@@ -1,13 +1,13 @@
|
|
|
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.CX0ifPU-.mjs';
|
|
5
5
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
7
7
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
8
8
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
9
9
|
import 'defu';
|
|
10
|
-
import { c as createAuthorizationURL, v as validateAuthorizationCode, r as refreshAccessToken } from '../../shared/better-auth.
|
|
10
|
+
import { c as createAuthorizationURL, v as validateAuthorizationCode, r as refreshAccessToken } from '../../shared/better-auth.DjMtlb7e.mjs';
|
|
11
11
|
import '@better-auth/utils/hash';
|
|
12
12
|
import '@better-auth/utils/base64';
|
|
13
13
|
import { g as generateState, p as parseState } from '../../shared/better-auth.BdyOG_p4.mjs';
|
package/dist/plugins/index.cjs
CHANGED
|
@@ -45,6 +45,7 @@ const parser = require('../shared/better-auth.DhsGZ30Q.cjs');
|
|
|
45
45
|
const json = require('../shared/better-auth.D3mtHEZg.cjs');
|
|
46
46
|
const id = require('../shared/better-auth.Bg6iw3ig.cjs');
|
|
47
47
|
const plugins_access_index = require('./access/index.cjs');
|
|
48
|
+
const errorCode = require('../shared/better-auth.C1-vpKly.cjs');
|
|
48
49
|
const client = require('../shared/better-auth.DnER2-iT.cjs');
|
|
49
50
|
require('../shared/better-auth.ANpbi45u.cjs');
|
|
50
51
|
require('./organization/access/index.cjs');
|
|
@@ -54,12 +55,11 @@ require('../crypto/index.cjs');
|
|
|
54
55
|
require('../shared/better-auth.YUF6P-PB.cjs');
|
|
55
56
|
require('../shared/better-auth.BMYo0QR-.cjs');
|
|
56
57
|
require('../shared/better-auth.USxghgYQ.cjs');
|
|
57
|
-
require('../shared/better-auth.C1-vpKly.cjs');
|
|
58
58
|
require('@better-auth/utils/otp');
|
|
59
59
|
require('../shared/better-auth.CDXNofOe.cjs');
|
|
60
60
|
require('../social-providers/index.cjs');
|
|
61
61
|
require('@better-fetch/fetch');
|
|
62
|
-
require('../shared/better-auth.
|
|
62
|
+
require('../shared/better-auth.BzKq70UC.cjs');
|
|
63
63
|
require('../shared/better-auth.QbbyHMYf.cjs');
|
|
64
64
|
require('jose/errors');
|
|
65
65
|
require('@better-auth/utils/binary');
|
|
@@ -1381,6 +1381,7 @@ exports.customSession = plugins_customSession_index.customSession;
|
|
|
1381
1381
|
exports.openAPI = plugins_openApi_index.openAPI;
|
|
1382
1382
|
exports.oidcProvider = plugins_oidcProvider_index.oidcProvider;
|
|
1383
1383
|
exports.captcha = plugins_captcha_index.captcha;
|
|
1384
|
+
exports.TWO_FACTOR_ERROR_CODES = errorCode.TWO_FACTOR_ERROR_CODES;
|
|
1384
1385
|
exports.twoFactorClient = client.twoFactorClient;
|
|
1385
1386
|
exports.ERROR_CODES = ERROR_CODES;
|
|
1386
1387
|
exports.apiKey = apiKey;
|
package/dist/plugins/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { InferInvitation, InferMember, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationOptions, Team, TeamInput, invitationSchema, invitationStatus, memberSchema, organization, organizationSchema, parseRoles, role, teamSchema } from './organization/index.cjs';
|
|
2
2
|
export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc } from './organization/access/index.cjs';
|
|
3
|
-
export { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.cjs';
|
|
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
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.BsbUy_em.cjs';
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { InferInvitation, InferMember, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationOptions, Team, TeamInput, invitationSchema, invitationStatus, memberSchema, organization, organizationSchema, parseRoles, role, teamSchema } from './organization/index.mjs';
|
|
2
2
|
export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc } from './organization/access/index.mjs';
|
|
3
|
-
export { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.mjs';
|
|
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
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.B5Z63CQV.mjs';
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { InferInvitation, InferMember, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationOptions, Team, TeamInput, invitationSchema, invitationStatus, memberSchema, organization, organizationSchema, parseRoles, role, teamSchema } from './organization/index.js';
|
|
2
2
|
export { adminAc, defaultAc, defaultRoles, defaultStatements, memberAc, ownerAc } from './organization/access/index.js';
|
|
3
|
-
export { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor, twoFactor, twoFactorClient } from './two-factor/index.js';
|
|
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
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.i71gRg2g.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.CY_Hrfhe.mjs';
|
|
2
2
|
export { 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.CX0ifPU-.mjs';
|
|
6
|
+
export { H as HIDE_METADATA, O as optionsMiddleware } from '../shared/better-auth.CX0ifPU-.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.BSbTjuSH.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';
|
|
@@ -44,6 +44,7 @@ import { p as parseJSON } from '../shared/better-auth.ffWeg50w.mjs';
|
|
|
44
44
|
import { s as safeJSONParse } from '../shared/better-auth.tB5eU6EY.mjs';
|
|
45
45
|
import { g as generateId } from '../shared/better-auth.BUPPRXfK.mjs';
|
|
46
46
|
import { role } from './access/index.mjs';
|
|
47
|
+
export { T as TWO_FACTOR_ERROR_CODES } from '../shared/better-auth.BcoSd9tC.mjs';
|
|
47
48
|
export { t as twoFactorClient } from '../shared/better-auth.Ddw8bVyV.mjs';
|
|
48
49
|
import '../shared/better-auth.DdzSJf-n.mjs';
|
|
49
50
|
import './organization/access/index.mjs';
|
|
@@ -52,13 +53,12 @@ import '../shared/better-auth.VTXNLFMT.mjs';
|
|
|
52
53
|
import '../crypto/index.mjs';
|
|
53
54
|
import '../shared/better-auth.OT3XFeFk.mjs';
|
|
54
55
|
import '../shared/better-auth.DDEbWX-S.mjs';
|
|
55
|
-
import '../shared/better-auth.
|
|
56
|
-
import '../shared/better-auth.BcoSd9tC.mjs';
|
|
56
|
+
import '../shared/better-auth.Bu8n0vlp.mjs';
|
|
57
57
|
import '@better-auth/utils/otp';
|
|
58
58
|
import '../shared/better-auth.YwDQhoPc.mjs';
|
|
59
59
|
import '../social-providers/index.mjs';
|
|
60
60
|
import '@better-fetch/fetch';
|
|
61
|
-
import '../shared/better-auth.
|
|
61
|
+
import '../shared/better-auth.DjMtlb7e.mjs';
|
|
62
62
|
import '../shared/better-auth.BdyOG_p4.mjs';
|
|
63
63
|
import 'jose/errors';
|
|
64
64
|
import '@better-auth/utils/binary';
|
|
@@ -19,7 +19,7 @@ require('../../shared/better-auth.D3mtHEZg.cjs');
|
|
|
19
19
|
require('../../shared/better-auth.C-R0J0n1.cjs');
|
|
20
20
|
require('../../social-providers/index.cjs');
|
|
21
21
|
require('@better-fetch/fetch');
|
|
22
|
-
require('../../shared/better-auth.
|
|
22
|
+
require('../../shared/better-auth.BzKq70UC.cjs');
|
|
23
23
|
require('@better-auth/utils/hash');
|
|
24
24
|
require('@noble/ciphers/chacha');
|
|
25
25
|
require('@noble/ciphers/utils');
|
|
@@ -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.CX0ifPU-.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';
|
|
@@ -17,7 +17,7 @@ import '../../shared/better-auth.tB5eU6EY.mjs';
|
|
|
17
17
|
import '../../shared/better-auth.VTXNLFMT.mjs';
|
|
18
18
|
import '../../social-providers/index.mjs';
|
|
19
19
|
import '@better-fetch/fetch';
|
|
20
|
-
import '../../shared/better-auth.
|
|
20
|
+
import '../../shared/better-auth.DjMtlb7e.mjs';
|
|
21
21
|
import '@better-auth/utils/hash';
|
|
22
22
|
import '@noble/ciphers/chacha';
|
|
23
23
|
import '@noble/ciphers/utils';
|