better-auth 1.2.6-beta.1 → 1.2.6-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/api/index.cjs +1 -1
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.mjs +2 -2
- package/dist/index.cjs +1 -1
- 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 +2 -2
- package/dist/integrations/next-js.cjs +3 -3
- package/dist/integrations/next-js.mjs +3 -3
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/index.cjs +4 -4
- package/dist/plugins/index.mjs +5 -5
- package/dist/plugins/jwt/index.cjs +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.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +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.mjs +1 -1
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +2 -2
- package/dist/plugins/organization/index.mjs +2 -2
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +2 -2
- package/dist/plugins/two-factor/index.mjs +2 -2
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.B7irTavj.cjs → better-auth.BPux30kV.cjs} +4 -3
- package/dist/shared/{better-auth.2rfXmCNS.mjs → better-auth.CDbxxOHz.mjs} +1 -1
- package/dist/shared/{better-auth.b0MLzqQX.cjs → better-auth.CIv2gPQf.cjs} +4 -2
- package/dist/shared/{better-auth.DqGx7Ip8.cjs → better-auth.CaRkjOCG.cjs} +1 -1
- package/dist/shared/{better-auth.9knM1kR4.mjs → better-auth.Ckr-oBBC.mjs} +4 -3
- package/dist/shared/{better-auth.cN4sTcuQ.mjs → better-auth.D5iwGGxT.mjs} +1 -1
- package/dist/shared/{better-auth.DQ-pFMwp.mjs → better-auth.DgQF_Y0p.mjs} +4 -2
- package/dist/shared/{better-auth.TNTVT6jt.cjs → better-auth.MidU1EeJ.cjs} +1 -1
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const refreshToken = require('../shared/better-auth.
|
|
4
|
+
const refreshToken = require('../shared/better-auth.CIv2gPQf.cjs');
|
|
5
5
|
const zod = require('zod');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema = require('../shared/better-auth.C5H9XEzZ.cjs');
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
2
2
|
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b8 as originCheck, b7 as originCheckMiddleware, b6 as refreshToken, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.BDAwKjlL.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
|
-
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '
|
|
5
|
+
import '../shared/better-auth.CH6fRG6d.cjs';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-sqlite3';
|
|
8
|
+
import 'jose';
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
2
2
|
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b8 as originCheck, b7 as originCheckMiddleware, b6 as refreshToken, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.CTQDLJN7.mjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
|
-
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '
|
|
5
|
+
import '../shared/better-auth.BTnAiI8e.mjs';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-sqlite3';
|
|
8
|
+
import 'jose';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../shared/better-auth.
|
|
1
|
+
import '../shared/better-auth.Bi8FQwDD.js';
|
|
2
2
|
export { d as AuthEndpoint, e as AuthMiddleware, aE as callbackOAuth, a$ as changeEmail, aX as changePassword, b as createAuthEndpoint, c as createAuthMiddleware, aS as createEmailVerificationToken, aZ as deleteUser, a_ as deleteUserCallback, b0 as error, aP as forgetPassword, aQ as forgetPasswordCallback, aJ as freshSessionMiddleware, aA as getEndpoints, aF as getSession, aG as getSessionFromCtx, b4 as linkSocialAccount, aK as listSessions, b3 as listUserAccounts, b1 as ok, o as optionsMiddleware, b8 as originCheck, b7 as originCheckMiddleware, b6 as refreshToken, aI as requestOnlySessionMiddleware, aR as resetPassword, aN as revokeOtherSessions, aL as revokeSession, aM as revokeSessions, aB as router, aU as sendVerificationEmail, aT as sendVerificationEmailFn, aH as sessionMiddleware, aY as setPassword, aD as signInEmail, aC as signInSocial, aO as signOut, b2 as signUpEmail, b5 as unlinkAccount, aW as updateUser, aV as verifyEmail } from '../shared/better-auth.tpz8D0AA.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
|
-
import '../shared/better-auth.Bi8FQwDD.js';
|
|
5
4
|
import 'zod';
|
|
6
|
-
import '
|
|
5
|
+
import '../shared/better-auth.BAfIsot3.js';
|
|
7
6
|
import 'kysely';
|
|
8
7
|
import 'better-sqlite3';
|
|
8
|
+
import 'jose';
|
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, d as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, e 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.
|
|
4
|
-
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware, b as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, B as BASE_ERROR_CODES, d as createEmailVerificationToken, w as wildcardMatch, l as listSessions, u as updateUser, e 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.DgQF_Y0p.mjs';
|
|
4
|
+
export { c as createAuthMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx, O as optionsMiddleware, o as originCheck, N as requestOnlySessionMiddleware, b as sendVerificationEmailFn, s as sessionMiddleware } from '../shared/better-auth.DgQF_Y0p.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';
|
package/dist/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const env = require('./shared/better-auth.DiSjtgs9.cjs');
|
|
|
23
23
|
const password$1 = require('./shared/better-auth.CDXNofOe.cjs');
|
|
24
24
|
const url = require('./shared/better-auth.C-R0J0n1.cjs');
|
|
25
25
|
const index = require('./shared/better-auth.ANpbi45u.cjs');
|
|
26
|
-
const refreshToken = require('./shared/better-auth.
|
|
26
|
+
const refreshToken = require('./shared/better-auth.CIv2gPQf.cjs');
|
|
27
27
|
const misc = require('./shared/better-auth.BLDOwz3i.cjs');
|
|
28
28
|
const state = require('./shared/better-auth.QbbyHMYf.cjs');
|
|
29
29
|
require('./shared/better-auth.i9-25Ul9.cjs');
|
package/dist/index.d.cts
CHANGED
|
@@ -5,12 +5,12 @@ export { g as generateState, p as parseState } from './shared/better-auth.DAnkIG
|
|
|
5
5
|
export * from 'better-call';
|
|
6
6
|
export * from 'zod';
|
|
7
7
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.Bi8FQwDD.cjs';
|
|
8
|
-
|
|
9
|
-
import 'jose';
|
|
8
|
+
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.CH6fRG6d.cjs';
|
|
10
9
|
import 'kysely';
|
|
11
10
|
import 'better-sqlite3';
|
|
12
11
|
import '@better-fetch/fetch';
|
|
13
12
|
import 'nanostores';
|
|
13
|
+
import 'jose';
|
|
14
14
|
|
|
15
15
|
declare function capitalizeFirstLetter(str: string): string;
|
|
16
16
|
|
package/dist/index.d.mts
CHANGED
|
@@ -5,12 +5,12 @@ export { g as generateState, p as parseState } from './shared/better-auth.DZPJQ8
|
|
|
5
5
|
export * from 'better-call';
|
|
6
6
|
export * from 'zod';
|
|
7
7
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.Bi8FQwDD.mjs';
|
|
8
|
-
|
|
9
|
-
import 'jose';
|
|
8
|
+
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.BTnAiI8e.mjs';
|
|
10
9
|
import 'kysely';
|
|
11
10
|
import 'better-sqlite3';
|
|
12
11
|
import '@better-fetch/fetch';
|
|
13
12
|
import 'nanostores';
|
|
13
|
+
import 'jose';
|
|
14
14
|
|
|
15
15
|
declare function capitalizeFirstLetter(str: string): string;
|
|
16
16
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export { g as generateState, p as parseState } from './shared/better-auth.DIOWNB
|
|
|
5
5
|
export * from 'better-call';
|
|
6
6
|
export * from 'zod';
|
|
7
7
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './shared/better-auth.Bi8FQwDD.js';
|
|
8
|
-
|
|
9
|
-
import 'jose';
|
|
8
|
+
export { O as OAuth2Tokens, a as OAuthProvider, P as ProviderOptions } from './shared/better-auth.BAfIsot3.js';
|
|
10
9
|
import 'kysely';
|
|
11
10
|
import 'better-sqlite3';
|
|
12
11
|
import '@better-fetch/fetch';
|
|
13
12
|
import 'nanostores';
|
|
13
|
+
import 'jose';
|
|
14
14
|
|
|
15
15
|
declare function capitalizeFirstLetter(str: string): string;
|
|
16
16
|
|
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.DgQF_Y0p.mjs';
|
|
27
|
+
export { H as HIDE_METADATA } from './shared/better-auth.DgQF_Y0p.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';
|
|
@@ -6,9 +6,9 @@ require('@better-auth/utils/hmac');
|
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
require('better-call');
|
|
8
8
|
require('zod');
|
|
9
|
-
const refreshToken = require('../shared/better-auth.
|
|
9
|
+
const refreshToken = require('../shared/better-auth.CIv2gPQf.cjs');
|
|
10
10
|
require('../shared/better-auth.C5H9XEzZ.cjs');
|
|
11
|
-
require('../shared/better-auth.
|
|
11
|
+
require('../shared/better-auth.BPux30kV.cjs');
|
|
12
12
|
require('../plugins/organization/access/index.cjs');
|
|
13
13
|
require('../shared/better-auth.CYeOI8C-.cjs');
|
|
14
14
|
require('../shared/better-auth.GpOOav9x.cjs');
|
|
@@ -22,7 +22,7 @@ require('@noble/hashes/scrypt');
|
|
|
22
22
|
require('@better-auth/utils');
|
|
23
23
|
require('@better-auth/utils/hex');
|
|
24
24
|
require('@noble/hashes/utils');
|
|
25
|
-
require('../shared/better-auth.
|
|
25
|
+
require('../shared/better-auth.MidU1EeJ.cjs');
|
|
26
26
|
require('@better-auth/utils/otp');
|
|
27
27
|
require('../plugins/admin/access/index.cjs');
|
|
28
28
|
require('@better-fetch/fetch');
|
|
@@ -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.DgQF_Y0p.mjs';
|
|
8
8
|
import '../shared/better-auth.CepcSj5H.mjs';
|
|
9
|
-
import '../shared/better-auth.
|
|
9
|
+
import '../shared/better-auth.Ckr-oBBC.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.CDbxxOHz.mjs';
|
|
24
24
|
import '@better-auth/utils/otp';
|
|
25
25
|
import '../plugins/admin/access/index.mjs';
|
|
26
26
|
import '@better-fetch/fetch';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const admin = require('../../shared/better-auth.
|
|
3
|
+
const admin = require('../../shared/better-auth.CaRkjOCG.cjs');
|
|
4
4
|
require('zod');
|
|
5
5
|
require('better-call');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.CIv2gPQf.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
|
-
export { a as admin } from '../../shared/better-auth.
|
|
1
|
+
export { a as admin } from '../../shared/better-auth.D5iwGGxT.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'better-call';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.DgQF_Y0p.mjs';
|
|
5
5
|
import '../../cookies/index.mjs';
|
|
6
6
|
import '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const refreshToken = require('../../shared/better-auth.
|
|
4
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
5
5
|
require('zod');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
const schema$1 = require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
@@ -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.DgQF_Y0p.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';
|
|
@@ -5,7 +5,7 @@ require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
|
5
5
|
require('@better-auth/utils/base64');
|
|
6
6
|
const hmac = require('@better-auth/utils/hmac');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
|
-
const refreshToken = require('../../shared/better-auth.
|
|
8
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
11
11
|
require('../../shared/better-auth.GpOOav9x.cjs');
|
|
@@ -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.DgQF_Y0p.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
9
9
|
import '../../shared/better-auth.DH3YjMQH.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
6
6
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import { a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.
|
|
3
|
+
import { a as createAuthEndpoint, g as getSessionFromCtx } from '../../shared/better-auth.DgQF_Y0p.mjs';
|
|
4
4
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
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.CIv2gPQf.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.C5H9XEzZ.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 { c as createAuthMiddleware, a as createAuthEndpoint } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint } from '../../shared/better-auth.DgQF_Y0p.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';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fetch = require('@better-fetch/fetch');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
5
|
const zod = require('zod');
|
|
6
|
-
const refreshToken = require('../../shared/better-auth.
|
|
6
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
7
7
|
const cookies_index = require('../../cookies/index.cjs');
|
|
8
8
|
require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { betterFetch } from '@better-fetch/fetch';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, h as handleOAuthUserInfo } from '../../shared/better-auth.
|
|
4
|
+
import { a as createAuthEndpoint, s as sessionMiddleware, B as BASE_ERROR_CODES, h as handleOAuthUserInfo } from '../../shared/better-auth.DgQF_Y0p.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';
|
package/dist/plugins/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const organization = require('../shared/better-auth.
|
|
3
|
+
const organization = require('../shared/better-auth.BPux30kV.cjs');
|
|
4
4
|
const plugins_twoFactor_index = require('./two-factor/index.cjs');
|
|
5
5
|
const plugins_username_index = require('./username/index.cjs');
|
|
6
6
|
const plugins_bearer_index = require('./bearer/index.cjs');
|
|
7
|
-
const refreshToken = require('../shared/better-auth.
|
|
7
|
+
const refreshToken = require('../shared/better-auth.CIv2gPQf.cjs');
|
|
8
8
|
const plugins_magicLink_index = require('./magic-link/index.cjs');
|
|
9
9
|
const plugins_phoneNumber_index = require('./phone-number/index.cjs');
|
|
10
10
|
const plugins_anonymous_index = require('./anonymous/index.cjs');
|
|
11
|
-
const admin = require('../shared/better-auth.
|
|
11
|
+
const admin = require('../shared/better-auth.CaRkjOCG.cjs');
|
|
12
12
|
const plugins_genericOauth_index = require('./generic-oauth/index.cjs');
|
|
13
13
|
const plugins_jwt_index = require('./jwt/index.cjs');
|
|
14
14
|
const plugins_multiSession_index = require('./multi-session/index.cjs');
|
|
@@ -53,7 +53,7 @@ require('../shared/better-auth.C-R0J0n1.cjs');
|
|
|
53
53
|
require('../crypto/index.cjs');
|
|
54
54
|
require('../shared/better-auth.YUF6P-PB.cjs');
|
|
55
55
|
require('../shared/better-auth.BMYo0QR-.cjs');
|
|
56
|
-
require('../shared/better-auth.
|
|
56
|
+
require('../shared/better-auth.MidU1EeJ.cjs');
|
|
57
57
|
require('../shared/better-auth.C1-vpKly.cjs');
|
|
58
58
|
require('@better-auth/utils/otp');
|
|
59
59
|
require('../shared/better-auth.CDXNofOe.cjs');
|
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.Ckr-oBBC.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.DgQF_Y0p.mjs';
|
|
6
|
+
export { H as HIDE_METADATA, O as optionsMiddleware } from '../shared/better-auth.DgQF_Y0p.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.D5iwGGxT.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';
|
|
@@ -52,7 +52,7 @@ import '../shared/better-auth.VTXNLFMT.mjs';
|
|
|
52
52
|
import '../crypto/index.mjs';
|
|
53
53
|
import '../shared/better-auth.OT3XFeFk.mjs';
|
|
54
54
|
import '../shared/better-auth.DDEbWX-S.mjs';
|
|
55
|
-
import '../shared/better-auth.
|
|
55
|
+
import '../shared/better-auth.CDbxxOHz.mjs';
|
|
56
56
|
import '../shared/better-auth.BcoSd9tC.mjs';
|
|
57
57
|
import '@better-auth/utils/otp';
|
|
58
58
|
import '../shared/better-auth.YwDQhoPc.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const schema$1 = require('../../shared/better-auth.BG6vHVNT.cjs');
|
|
4
4
|
const jose = require('jose');
|
|
5
5
|
require('better-call');
|
|
6
|
-
const refreshToken = require('../../shared/better-auth.
|
|
6
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
7
7
|
require('zod');
|
|
8
8
|
const index = require('../../shared/better-auth.ANpbi45u.cjs');
|
|
9
9
|
require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
@@ -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.DgQF_Y0p.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import { B as BetterAuthError } from '../../shared/better-auth.DdzSJf-n.mjs';
|
|
7
7
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const refreshToken = require('../../shared/better-auth.
|
|
4
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('@better-auth/utils/hash');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as createAuthEndpoint, o as originCheck, B as BASE_ERROR_CODES } from '../../shared/better-auth.
|
|
2
|
+
import { a as createAuthEndpoint, o as originCheck, B as BASE_ERROR_CODES } from '../../shared/better-auth.DgQF_Y0p.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '@better-auth/utils/hash';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
const betterCall = require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.C5H9XEzZ.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 { c as createAuthMiddleware, a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, s as sessionMiddleware } from '../../shared/better-auth.DgQF_Y0p.mjs';
|
|
4
4
|
import { parseSetCookieHeader, parseCookies, setSessionCookie, deleteSessionCookie } from '../../cookies/index.mjs';
|
|
5
5
|
import '../../shared/better-auth.CepcSj5H.mjs';
|
|
6
6
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
4
|
require('better-call');
|
|
5
|
-
const refreshToken = require('../../shared/better-auth.
|
|
5
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
6
6
|
const env = require('../../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import 'better-call';
|
|
3
|
-
import { c as createAuthMiddleware, a as createAuthEndpoint, o as originCheck } from '../../shared/better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, a as createAuthEndpoint, o as originCheck } from '../../shared/better-auth.DgQF_Y0p.mjs';
|
|
4
4
|
import { e as env } from '../../shared/better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const jose = require('jose');
|
|
4
4
|
const zod = require('zod');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
|
-
const refreshToken = require('../../shared/better-auth.
|
|
6
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.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');
|
|
@@ -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.DgQF_Y0p.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.CIv2gPQf.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.C5H9XEzZ.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.DgQF_Y0p.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';
|
|
@@ -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.CIv2gPQf.cjs');
|
|
24
24
|
require('@better-auth/utils/hmac');
|
|
25
25
|
require('defu');
|
|
26
26
|
require('../../cookies/index.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.DgQF_Y0p.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.BPux30kV.cjs');
|
|
4
4
|
require('better-call');
|
|
5
5
|
require('zod');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.CIv2gPQf.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
|
-
export { o as organization, p as parseRoles } from '../../shared/better-auth.
|
|
1
|
+
export { o as organization, p as parseRoles } from '../../shared/better-auth.Ckr-oBBC.mjs';
|
|
2
2
|
import 'better-call';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../shared/better-auth.
|
|
4
|
+
import '../../shared/better-auth.DgQF_Y0p.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.CIv2gPQf.cjs');
|
|
8
8
|
const cookies_index = require('../../cookies/index.cjs');
|
|
9
9
|
const schema$1 = require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
10
10
|
require('../../shared/better-auth.DiSjtgs9.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.DgQF_Y0p.mjs';
|
|
6
6
|
import { setSessionCookie } from '../../cookies/index.mjs';
|
|
7
7
|
import { m as mergeSchema } from '../../shared/better-auth.CepcSj5H.mjs';
|
|
8
8
|
import '../../shared/better-auth.8zoxzg-F.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zod = require('zod');
|
|
4
|
-
const refreshToken = require('../../shared/better-auth.
|
|
4
|
+
const refreshToken = require('../../shared/better-auth.CIv2gPQf.cjs');
|
|
5
5
|
const betterCall = require('better-call');
|
|
6
6
|
const schema$1 = require('../../shared/better-auth.C5H9XEzZ.cjs');
|
|
7
7
|
const random = require('../../shared/better-auth.CYeOI8C-.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.DgQF_Y0p.mjs';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import { m as mergeSchema } from '../../shared/better-auth.CepcSj5H.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.CIv2gPQf.cjs');
|
|
6
6
|
const cookies_index = require('../../cookies/index.cjs');
|
|
7
7
|
require('../../shared/better-auth.C5H9XEzZ.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, 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.DgQF_Y0p.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';
|
|
@@ -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.CIv2gPQf.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.C5H9XEzZ.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.MidU1EeJ.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');
|
|
@@ -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.DgQF_Y0p.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.CepcSj5H.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.CDbxxOHz.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';
|
|
@@ -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.CIv2gPQf.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.C5H9XEzZ.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.DgQF_Y0p.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.CepcSj5H.mjs';
|
|
@@ -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.CIv2gPQf.cjs');
|
|
6
6
|
require('./better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
8
8
|
require('@better-auth/utils/hmac');
|
|
@@ -525,9 +525,10 @@ const getOrgAdapter = (context, options) => {
|
|
|
525
525
|
invitation,
|
|
526
526
|
user
|
|
527
527
|
}) => {
|
|
528
|
-
const defaultExpiration =
|
|
528
|
+
const defaultExpiration = 60 * 60 * 48;
|
|
529
529
|
const expiresAt = date.getDate(
|
|
530
|
-
options?.invitationExpiresIn || defaultExpiration
|
|
530
|
+
options?.invitationExpiresIn || defaultExpiration,
|
|
531
|
+
"sec"
|
|
531
532
|
);
|
|
532
533
|
const invite = await adapter.create({
|
|
533
534
|
model: "invitation",
|
|
@@ -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.DgQF_Y0p.mjs';
|
|
3
3
|
import { setSessionCookie } from '../cookies/index.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import './better-auth.CepcSj5H.mjs';
|
|
@@ -362,8 +362,10 @@ const getSession = () => createAuthEndpoint(
|
|
|
362
362
|
sessionDataPayload.signature
|
|
363
363
|
);
|
|
364
364
|
if (!isValid) {
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
const dataCookie = ctx.context.authCookies.sessionData.name;
|
|
366
|
+
ctx.setCookie(dataCookie, "", {
|
|
367
|
+
maxAge: 0
|
|
368
|
+
});
|
|
367
369
|
}
|
|
368
370
|
}
|
|
369
371
|
const dontRememberMe = await ctx.getSignedCookie(
|
|
@@ -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.CIv2gPQf.cjs');
|
|
6
6
|
const cookies_index = require('../cookies/index.cjs');
|
|
7
7
|
const schema$1 = require('./better-auth.C5H9XEzZ.cjs');
|
|
8
8
|
require('./better-auth.DiSjtgs9.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIError } from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { c as createAuthMiddleware, s as sessionMiddleware, a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES, N as requestOnlySessionMiddleware } from './better-auth.
|
|
3
|
+
import { c as createAuthMiddleware, s as sessionMiddleware, a as createAuthEndpoint, g as getSessionFromCtx, B as BASE_ERROR_CODES, N as requestOnlySessionMiddleware } from './better-auth.DgQF_Y0p.mjs';
|
|
4
4
|
import './better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
|
6
6
|
import '@better-auth/utils/hmac';
|
|
@@ -523,9 +523,10 @@ const getOrgAdapter = (context, options) => {
|
|
|
523
523
|
invitation,
|
|
524
524
|
user
|
|
525
525
|
}) => {
|
|
526
|
-
const defaultExpiration =
|
|
526
|
+
const defaultExpiration = 60 * 60 * 48;
|
|
527
527
|
const expiresAt = getDate(
|
|
528
|
-
options?.invitationExpiresIn || defaultExpiration
|
|
528
|
+
options?.invitationExpiresIn || defaultExpiration,
|
|
529
|
+
"sec"
|
|
529
530
|
);
|
|
530
531
|
const invite = await adapter.create({
|
|
531
532
|
model: "invitation",
|
|
@@ -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.DgQF_Y0p.mjs';
|
|
4
4
|
import { setSessionCookie, deleteSessionCookie } from '../cookies/index.mjs';
|
|
5
5
|
import { m as mergeSchema } from './better-auth.CepcSj5H.mjs';
|
|
6
6
|
import './better-auth.8zoxzg-F.mjs';
|
|
@@ -360,8 +360,10 @@ const getSession = () => createAuthEndpoint(
|
|
|
360
360
|
sessionDataPayload.signature
|
|
361
361
|
);
|
|
362
362
|
if (!isValid) {
|
|
363
|
-
|
|
364
|
-
|
|
363
|
+
const dataCookie = ctx.context.authCookies.sessionData.name;
|
|
364
|
+
ctx.setCookie(dataCookie, "", {
|
|
365
|
+
maxAge: 0
|
|
366
|
+
});
|
|
365
367
|
}
|
|
366
368
|
}
|
|
367
369
|
const dontRememberMe = await ctx.getSignedCookie(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const betterCall = require('better-call');
|
|
4
|
-
const refreshToken = require('./better-auth.
|
|
4
|
+
const refreshToken = require('./better-auth.CIv2gPQf.cjs');
|
|
5
5
|
const cookies_index = require('../cookies/index.cjs');
|
|
6
6
|
const zod = require('zod');
|
|
7
7
|
require('./better-auth.C5H9XEzZ.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, a7 as KickOptions, a6 as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, a8 as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk } from '../shared/better-auth.CH6fRG6d.cjs';
|
|
2
|
-
import 'zod';
|
|
3
2
|
import '../shared/better-auth.Bi8FQwDD.cjs';
|
|
3
|
+
import 'zod';
|
|
4
4
|
import 'jose';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, a7 as KickOptions, a6 as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, a8 as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk } from '../shared/better-auth.BTnAiI8e.mjs';
|
|
2
|
-
import 'zod';
|
|
3
2
|
import '../shared/better-auth.Bi8FQwDD.mjs';
|
|
3
|
+
import 'zod';
|
|
4
4
|
import 'jose';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { k as AppleNonConformUser, l as AppleOptions, A as AppleProfile, q as DiscordOptions, D as DiscordProfile, I as DropboxOptions, H as DropboxProfile, y as FacebookOptions, F as FacebookProfile, f as GithubOptions, G as GithubProfile, R as GitlabOptions, Q as GitlabProfile, i as GoogleOptions, h as GoogleProfile, a7 as KickOptions, a6 as KickProfile, a3 as LANG, K as LinkedInOptions, L as LinkedInProfile, M as MicrosoftEntraIDProfile, o as MicrosoftOptions, Z as RedditOptions, Y as RedditProfile, a0 as RobloxOptions, $ as RobloxProfile, e as SocialProvider, b as SocialProviderList, d as SocialProviderListEnum, S as SocialProviders, u as SpotifyOptions, t as SpotifyProfile, W as TiktokOptions, V as TiktokProfile, w as TwitchOptions, T as TwitchProfile, C as TwitterOption, B as TwitterProfile, a4 as VkOption, a2 as VkProfile, m as apple, r as discord, J as dropbox, z as facebook, n as getApplePublicKey, g as github, U as gitlab, j as google, a8 as kick, N as linkedin, p as microsoft, _ as reddit, a1 as roblox, c as socialProviderList, s as socialProviders, v as spotify, X as tiktok, x as twitch, E as twitter, a5 as vk } from '../shared/better-auth.BAfIsot3.js';
|
|
2
|
-
import 'zod';
|
|
3
2
|
import '../shared/better-auth.Bi8FQwDD.js';
|
|
3
|
+
import 'zod';
|
|
4
4
|
import 'jose';
|