better-auth 1.2.0-beta.6 → 1.2.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/drizzle.d.cts +1 -1
- package/dist/adapters/drizzle.d.ts +1 -1
- package/dist/adapters/kysely.d.cts +1 -1
- package/dist/adapters/kysely.d.ts +1 -1
- package/dist/adapters/memory.d.cts +1 -1
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/mongodb.cjs +16 -3
- package/dist/adapters/mongodb.d.cts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/mongodb.js +16 -3
- package/dist/adapters/prisma.d.cts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/{auth-CC4kpwks.d.cts → auth-BLwS7t0V.d.cts} +7266 -3010
- package/dist/{auth-BfbTouIV.d.ts → auth-C42JqOR9.d.ts} +7266 -3010
- package/dist/{chunk-XKCN2VRG.cjs → chunk-45RBYQKI.cjs} +58 -2
- package/dist/{chunk-KAEQXMEV.cjs → chunk-GSEEAIRZ.cjs} +1 -1
- package/dist/{chunk-RMPI2YZ3.js → chunk-IQUHEVLH.js} +1 -1
- package/dist/{chunk-5AOJMBJI.js → chunk-J6VNT2T4.js} +8 -0
- package/dist/{chunk-75SPUXMY.cjs → chunk-QNLSMTXF.cjs} +9 -4
- package/dist/{chunk-GWJDRQJ3.js → chunk-QQGRNAM2.js} +9 -4
- package/dist/{chunk-OALLKKNX.cjs → chunk-SMZIOWVN.cjs} +8 -0
- package/dist/{chunk-FX2ZHENM.js → chunk-TZ34QTAV.js} +58 -2
- package/dist/{chunk-LIGJVOZ4.cjs → chunk-WLOSPOQJ.cjs} +45 -24
- package/dist/{chunk-V56HFQQX.js → chunk-YHW4KODD.js} +45 -24
- package/dist/client/plugins.cjs +45 -12
- package/dist/client/plugins.d.cts +44 -6
- package/dist/client/plugins.d.ts +44 -6
- package/dist/client/plugins.js +45 -12
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/cookies.d.cts +1 -1
- package/dist/cookies.d.ts +1 -1
- package/dist/db.d.cts +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/index-Bszx4yMW.d.cts +7755 -0
- package/dist/index-DbIhOM3X.d.ts +7755 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/next-js.cjs +5 -5
- package/dist/next-js.d.cts +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/next-js.js +5 -5
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/oauth2.d.cts +2 -2
- package/dist/oauth2.d.ts +2 -2
- package/dist/plugins/admin.cjs +2 -2
- package/dist/plugins/admin.d.cts +79 -25
- package/dist/plugins/admin.d.ts +79 -25
- package/dist/plugins/admin.js +1 -1
- package/dist/plugins/anonymous.d.cts +7 -3
- package/dist/plugins/anonymous.d.ts +7 -3
- package/dist/plugins/bearer.d.cts +1 -1
- package/dist/plugins/bearer.d.ts +1 -1
- package/dist/plugins/custom-session.d.cts +7 -3
- package/dist/plugins/custom-session.d.ts +7 -3
- package/dist/plugins/email-otp.d.cts +43 -15
- package/dist/plugins/email-otp.d.ts +43 -15
- package/dist/plugins/generic-oauth.d.cts +19 -7
- package/dist/plugins/generic-oauth.d.ts +19 -7
- package/dist/plugins/jwt.d.cts +13 -5
- package/dist/plugins/jwt.d.ts +13 -5
- package/dist/plugins/magic-link.d.cts +12 -4
- package/dist/plugins/magic-link.d.ts +12 -4
- package/dist/plugins/multi-session.d.cts +19 -7
- package/dist/plugins/multi-session.d.ts +19 -7
- package/dist/plugins/oidc-provider.cjs +2 -2
- package/dist/plugins/oidc-provider.d.cts +43 -15
- package/dist/plugins/oidc-provider.d.ts +43 -15
- package/dist/plugins/oidc-provider.js +1 -1
- package/dist/plugins/one-tap.cjs +2 -2
- package/dist/plugins/one-tap.d.cts +13 -2
- package/dist/plugins/one-tap.d.ts +13 -2
- package/dist/plugins/one-tap.js +1 -1
- package/dist/plugins/open-api.cjs +2 -2
- package/dist/plugins/open-api.d.cts +13 -5
- package/dist/plugins/open-api.d.ts +13 -5
- package/dist/plugins/open-api.js +1 -1
- package/dist/plugins/organization.d.cts +2 -2
- package/dist/plugins/organization.d.ts +2 -2
- package/dist/plugins/passkey.d.cts +43 -15
- package/dist/plugins/passkey.d.ts +43 -15
- package/dist/plugins/phone-number.d.cts +31 -11
- package/dist/plugins/phone-number.d.ts +31 -11
- package/dist/plugins/sso.d.cts +19 -7
- package/dist/plugins/sso.d.ts +19 -7
- package/dist/plugins/two-factor.d.cts +61 -21
- package/dist/plugins/two-factor.d.ts +61 -21
- package/dist/plugins/username.cjs +2 -2
- package/dist/plugins/username.d.cts +28 -4
- package/dist/plugins/username.d.ts +28 -4
- package/dist/plugins/username.js +1 -1
- package/dist/plugins.cjs +10 -10
- package/dist/plugins.d.cts +9 -5
- package/dist/plugins.d.ts +9 -5
- package/dist/plugins.js +5 -5
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/{state-BlyN0kTT.d.ts → state-BlQHfd32.d.ts} +1 -1
- package/dist/{state-ClV1x8my.d.cts → state-lA7cG1Em.d.cts} +1 -1
- package/dist/svelte-kit.d.cts +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.cts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/package.json +3 -3
- package/dist/index-CtbEb8Ls.d.ts +0 -4211
- package/dist/index-F5NLq5XF.d.cts +0 -4211
|
@@ -2,7 +2,7 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.cjs';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
5
|
-
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-
|
|
5
|
+
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-Bszx4yMW.cjs';
|
|
6
6
|
import { b as Prettify } from '../helper-Bi8FQwDD.cjs';
|
|
7
7
|
import { username } from '../plugins/username.cjs';
|
|
8
8
|
export { getPasskeyActions, passkeyClient } from '../plugins/passkey.cjs';
|
|
@@ -10,7 +10,7 @@ export { twoFactorClient } from '../plugins/two-factor.cjs';
|
|
|
10
10
|
import { magicLink } from '../plugins/magic-link.cjs';
|
|
11
11
|
import { phoneNumber } from '../plugins/phone-number.cjs';
|
|
12
12
|
import { anonymous } from '../plugins/anonymous.cjs';
|
|
13
|
-
import { a5 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-
|
|
13
|
+
import { a5 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-BLwS7t0V.cjs';
|
|
14
14
|
import { admin } from '../plugins/admin.cjs';
|
|
15
15
|
import { genericOAuth } from '../plugins/generic-oauth.cjs';
|
|
16
16
|
import { jwt } from '../plugins/jwt.cjs';
|
|
@@ -324,7 +324,7 @@ declare global {
|
|
|
324
324
|
accounts: {
|
|
325
325
|
id: {
|
|
326
326
|
initialize: (config: any) => void;
|
|
327
|
-
prompt: () => void;
|
|
327
|
+
prompt: (callback?: (notification: any) => void) => void;
|
|
328
328
|
};
|
|
329
329
|
};
|
|
330
330
|
};
|
|
@@ -345,13 +345,51 @@ interface GoogleOneTapOptions {
|
|
|
345
345
|
*/
|
|
346
346
|
cancelOnTapOutside?: boolean;
|
|
347
347
|
/**
|
|
348
|
-
*
|
|
348
|
+
* The mode to use for the Google One Tap flow
|
|
349
|
+
*
|
|
350
|
+
* popup: Use a popup window
|
|
351
|
+
* redirect: Redirect the user to the Google One Tap flow
|
|
352
|
+
*
|
|
353
|
+
* @default "popup"
|
|
349
354
|
*/
|
|
350
|
-
|
|
355
|
+
uxMode?: "popup" | "redirect";
|
|
356
|
+
/**
|
|
357
|
+
* The context to use for the Google One Tap flow
|
|
358
|
+
*
|
|
359
|
+
* @default "signin"
|
|
360
|
+
*/
|
|
361
|
+
context?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Additional configuration options to pass to the Google One Tap API.
|
|
364
|
+
*/
|
|
365
|
+
additionalOptions?: Record<string, any>;
|
|
366
|
+
/**
|
|
367
|
+
* Configuration options for the prompt and exponential backoff behavior.
|
|
368
|
+
*/
|
|
369
|
+
promptOptions?: {
|
|
370
|
+
/**
|
|
371
|
+
* Base delay (in milliseconds) for exponential backoff.
|
|
372
|
+
* @default 1000
|
|
373
|
+
*/
|
|
374
|
+
baseDelay?: number;
|
|
375
|
+
/**
|
|
376
|
+
* Maximum number of prompt attempts before calling onPromptNotification.
|
|
377
|
+
* @default 5
|
|
378
|
+
*/
|
|
379
|
+
maxAttempts?: number;
|
|
380
|
+
};
|
|
351
381
|
}
|
|
352
|
-
interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"> {
|
|
382
|
+
interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId" | "promptOptions"> {
|
|
353
383
|
fetchOptions?: BetterFetchOption;
|
|
384
|
+
/**
|
|
385
|
+
* Callback URL.
|
|
386
|
+
*/
|
|
354
387
|
callbackURL?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Optional callback that receives the prompt notification if (or when) the prompt is dismissed or skipped.
|
|
390
|
+
* This lets you render an alternative UI (e.g. a Google Sign-In button) to restart the process.
|
|
391
|
+
*/
|
|
392
|
+
onPromptNotification?: (notification: any) => void;
|
|
355
393
|
}
|
|
356
394
|
declare const oneTapClient: (options: GoogleOneTapOptions) => {
|
|
357
395
|
id: "one-tap";
|
package/dist/client/plugins.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.js';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
5
|
-
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-
|
|
5
|
+
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-DbIhOM3X.js';
|
|
6
6
|
import { b as Prettify } from '../helper-Bi8FQwDD.js';
|
|
7
7
|
import { username } from '../plugins/username.js';
|
|
8
8
|
export { getPasskeyActions, passkeyClient } from '../plugins/passkey.js';
|
|
@@ -10,7 +10,7 @@ export { twoFactorClient } from '../plugins/two-factor.js';
|
|
|
10
10
|
import { magicLink } from '../plugins/magic-link.js';
|
|
11
11
|
import { phoneNumber } from '../plugins/phone-number.js';
|
|
12
12
|
import { anonymous } from '../plugins/anonymous.js';
|
|
13
|
-
import { a5 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-
|
|
13
|
+
import { a5 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-C42JqOR9.js';
|
|
14
14
|
import { admin } from '../plugins/admin.js';
|
|
15
15
|
import { genericOAuth } from '../plugins/generic-oauth.js';
|
|
16
16
|
import { jwt } from '../plugins/jwt.js';
|
|
@@ -324,7 +324,7 @@ declare global {
|
|
|
324
324
|
accounts: {
|
|
325
325
|
id: {
|
|
326
326
|
initialize: (config: any) => void;
|
|
327
|
-
prompt: () => void;
|
|
327
|
+
prompt: (callback?: (notification: any) => void) => void;
|
|
328
328
|
};
|
|
329
329
|
};
|
|
330
330
|
};
|
|
@@ -345,13 +345,51 @@ interface GoogleOneTapOptions {
|
|
|
345
345
|
*/
|
|
346
346
|
cancelOnTapOutside?: boolean;
|
|
347
347
|
/**
|
|
348
|
-
*
|
|
348
|
+
* The mode to use for the Google One Tap flow
|
|
349
|
+
*
|
|
350
|
+
* popup: Use a popup window
|
|
351
|
+
* redirect: Redirect the user to the Google One Tap flow
|
|
352
|
+
*
|
|
353
|
+
* @default "popup"
|
|
349
354
|
*/
|
|
350
|
-
|
|
355
|
+
uxMode?: "popup" | "redirect";
|
|
356
|
+
/**
|
|
357
|
+
* The context to use for the Google One Tap flow
|
|
358
|
+
*
|
|
359
|
+
* @default "signin"
|
|
360
|
+
*/
|
|
361
|
+
context?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Additional configuration options to pass to the Google One Tap API.
|
|
364
|
+
*/
|
|
365
|
+
additionalOptions?: Record<string, any>;
|
|
366
|
+
/**
|
|
367
|
+
* Configuration options for the prompt and exponential backoff behavior.
|
|
368
|
+
*/
|
|
369
|
+
promptOptions?: {
|
|
370
|
+
/**
|
|
371
|
+
* Base delay (in milliseconds) for exponential backoff.
|
|
372
|
+
* @default 1000
|
|
373
|
+
*/
|
|
374
|
+
baseDelay?: number;
|
|
375
|
+
/**
|
|
376
|
+
* Maximum number of prompt attempts before calling onPromptNotification.
|
|
377
|
+
* @default 5
|
|
378
|
+
*/
|
|
379
|
+
maxAttempts?: number;
|
|
380
|
+
};
|
|
351
381
|
}
|
|
352
|
-
interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"> {
|
|
382
|
+
interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId" | "promptOptions"> {
|
|
353
383
|
fetchOptions?: BetterFetchOption;
|
|
384
|
+
/**
|
|
385
|
+
* Callback URL.
|
|
386
|
+
*/
|
|
354
387
|
callbackURL?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Optional callback that receives the prompt notification if (or when) the prompt is dismissed or skipped.
|
|
390
|
+
* This lets you render an alternative UI (e.g. a Google Sign-In button) to restart the process.
|
|
391
|
+
*/
|
|
392
|
+
onPromptNotification?: (notification: any) => void;
|
|
355
393
|
}
|
|
356
394
|
declare const oneTapClient: (options: GoogleOneTapOptions) => {
|
|
357
395
|
id: "one-tap";
|
package/dist/client/plugins.js
CHANGED
|
@@ -6,6 +6,7 @@ import { useAuthQuery } from '../chunk-QUVBQTGS.js';
|
|
|
6
6
|
import '../chunk-HVHN3Y2L.js';
|
|
7
7
|
import '../chunk-XFCIANZX.js';
|
|
8
8
|
import '../chunk-3XTQSPPA.js';
|
|
9
|
+
import { generateRandomString } from '../chunk-DBPOZRMS.js';
|
|
9
10
|
import '../chunk-TQQSPPNA.js';
|
|
10
11
|
import { BetterAuthError } from '../chunk-UNWCXKMP.js';
|
|
11
12
|
import { atom } from 'nanostores';
|
|
@@ -233,26 +234,58 @@ var oneTapClient = (options) => {
|
|
|
233
234
|
const { autoSelect, cancelOnTapOutside, context } = opts ?? {};
|
|
234
235
|
const contextValue = context ?? options.context ?? "signin";
|
|
235
236
|
await loadGoogleScript();
|
|
236
|
-
await new Promise((resolve) => {
|
|
237
|
+
await new Promise((resolve, reject) => {
|
|
238
|
+
let isResolved = false;
|
|
239
|
+
const baseDelay = options.promptOptions?.baseDelay ?? 1e3;
|
|
240
|
+
const maxAttempts = options.promptOptions?.maxAttempts ?? 5;
|
|
237
241
|
window.google?.accounts.id.initialize({
|
|
238
242
|
client_id: options.clientId,
|
|
239
243
|
callback: async (response) => {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
244
|
+
isResolved = true;
|
|
245
|
+
try {
|
|
246
|
+
await $fetch("/one-tap/callback", {
|
|
247
|
+
method: "POST",
|
|
248
|
+
body: { idToken: response.credential },
|
|
249
|
+
...opts?.fetchOptions,
|
|
250
|
+
...fetchOptions
|
|
251
|
+
});
|
|
252
|
+
if (!opts?.fetchOptions && !fetchOptions || opts?.callbackURL) {
|
|
253
|
+
window.location.href = opts?.callbackURL ?? "/";
|
|
254
|
+
}
|
|
255
|
+
resolve();
|
|
256
|
+
} catch (error) {
|
|
257
|
+
console.error("Error during One Tap callback:", error);
|
|
258
|
+
reject(error);
|
|
248
259
|
}
|
|
249
|
-
resolve();
|
|
250
260
|
},
|
|
251
261
|
auto_select: autoSelect,
|
|
252
262
|
cancel_on_tap_outside: cancelOnTapOutside,
|
|
253
|
-
context: contextValue
|
|
263
|
+
context: contextValue,
|
|
264
|
+
nonce: generateRandomString(16),
|
|
265
|
+
...options.additionalOptions
|
|
254
266
|
});
|
|
255
|
-
|
|
267
|
+
const handlePrompt = (attempt) => {
|
|
268
|
+
if (isResolved) return;
|
|
269
|
+
window.google?.accounts.id.prompt((notification) => {
|
|
270
|
+
if (isResolved) return;
|
|
271
|
+
if (notification.isDismissedMoment && notification.isDismissedMoment()) {
|
|
272
|
+
if (attempt < maxAttempts) {
|
|
273
|
+
const delay = Math.pow(2, attempt) * baseDelay;
|
|
274
|
+
setTimeout(() => handlePrompt(attempt + 1), delay);
|
|
275
|
+
} else {
|
|
276
|
+
opts?.onPromptNotification?.(notification);
|
|
277
|
+
}
|
|
278
|
+
} else if (notification.isSkippedMoment && notification.isSkippedMoment()) {
|
|
279
|
+
if (attempt < maxAttempts) {
|
|
280
|
+
const delay = Math.pow(2, attempt) * baseDelay;
|
|
281
|
+
setTimeout(() => handlePrompt(attempt + 1), delay);
|
|
282
|
+
} else {
|
|
283
|
+
opts?.onPromptNotification?.(notification);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
handlePrompt(0);
|
|
256
289
|
});
|
|
257
290
|
} catch (error) {
|
|
258
291
|
console.error("Error during Google One Tap flow:", error);
|
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-
|
|
1
|
+
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-BLwS7t0V.cjs';
|
|
2
2
|
export * from 'zod';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-
|
|
1
|
+
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-C42JqOR9.js';
|
|
2
2
|
export * from 'zod';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/fetch';
|
package/dist/cookies.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { L as BetterAuthCookies, T as EligibleCookies, E as createCookieGetter, P as deleteSessionCookie, Y as getCookieCache, J as getCookies, X as getSessionCookie, Q as parseCookies, Z as parseSetCookieHeader, N as setCookieCache, O as setSessionCookie } from './auth-
|
|
2
|
+
export { L as BetterAuthCookies, T as EligibleCookies, E as createCookieGetter, P as deleteSessionCookie, Y as getCookieCache, J as getCookies, X as getSessionCookie, Q as parseCookies, Z as parseSetCookieHeader, N as setCookieCache, O as setSessionCookie } from './auth-BLwS7t0V.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import './helper-Bi8FQwDD.cjs';
|
package/dist/cookies.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { L as BetterAuthCookies, T as EligibleCookies, E as createCookieGetter, P as deleteSessionCookie, Y as getCookieCache, J as getCookies, X as getSessionCookie, Q as parseCookies, Z as parseSetCookieHeader, N as setCookieCache, O as setSessionCookie } from './auth-
|
|
2
|
+
export { L as BetterAuthCookies, T as EligibleCookies, E as createCookieGetter, P as deleteSessionCookie, Y as getCookieCache, J as getCookies, X as getSessionCookie, Q as parseCookies, Z as parseSetCookieHeader, N as setCookieCache, O as setSessionCookie } from './auth-C42JqOR9.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import './helper-Bi8FQwDD.js';
|
package/dist/db.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Adapter, B as BetterAuthOptions, W as Where, a5 as FieldAttribute, a6 as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { ai as BetterAuthDbSchema, a9 as FieldAttributeConfig, ah as InferFieldsFromOptions, ag as InferFieldsFromPlugins, ad as InferFieldsInput, ae as InferFieldsInputClient, ac as InferFieldsOutput, ab as InferValueType, a8 as InternalAdapter, af as PluginFieldAttribute, ak as accountSchema, aa as createFieldAttribute, a7 as createInternalAdapter, ap as getAllFields, aj as getAuthTables, ay as mergeSchema, aw as parseAccountInput, ar as parseAccountOutput, av as parseAdditionalUserInput, at as parseInputData, ao as parseOutputData, ax as parseSessionInput, as as parseSessionOutput, au as parseUserInput, aq as parseUserOutput, am as sessionSchema, al as userSchema, an as verificationSchema } from './auth-
|
|
1
|
+
import { A as Adapter, B as BetterAuthOptions, W as Where, a5 as FieldAttribute, a6 as FieldType, K as KyselyDatabaseType } from './auth-BLwS7t0V.cjs';
|
|
2
|
+
export { ai as BetterAuthDbSchema, a9 as FieldAttributeConfig, ah as InferFieldsFromOptions, ag as InferFieldsFromPlugins, ad as InferFieldsInput, ae as InferFieldsInputClient, ac as InferFieldsOutput, ab as InferValueType, a8 as InternalAdapter, af as PluginFieldAttribute, ak as accountSchema, aa as createFieldAttribute, a7 as createInternalAdapter, ap as getAllFields, aj as getAuthTables, ay as mergeSchema, aw as parseAccountInput, ar as parseAccountOutput, av as parseAdditionalUserInput, at as parseInputData, ao as parseOutputData, ax as parseSessionInput, as as parseSessionOutput, au as parseUserInput, aq as parseUserOutput, am as sessionSchema, al as userSchema, an as verificationSchema } from './auth-BLwS7t0V.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
package/dist/db.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Adapter, B as BetterAuthOptions, W as Where, a5 as FieldAttribute, a6 as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { ai as BetterAuthDbSchema, a9 as FieldAttributeConfig, ah as InferFieldsFromOptions, ag as InferFieldsFromPlugins, ad as InferFieldsInput, ae as InferFieldsInputClient, ac as InferFieldsOutput, ab as InferValueType, a8 as InternalAdapter, af as PluginFieldAttribute, ak as accountSchema, aa as createFieldAttribute, a7 as createInternalAdapter, ap as getAllFields, aj as getAuthTables, ay as mergeSchema, aw as parseAccountInput, ar as parseAccountOutput, av as parseAdditionalUserInput, at as parseInputData, ao as parseOutputData, ax as parseSessionInput, as as parseSessionOutput, au as parseUserInput, aq as parseUserOutput, am as sessionSchema, al as userSchema, an as verificationSchema } from './auth-
|
|
1
|
+
import { A as Adapter, B as BetterAuthOptions, W as Where, a5 as FieldAttribute, a6 as FieldType, K as KyselyDatabaseType } from './auth-C42JqOR9.js';
|
|
2
|
+
export { ai as BetterAuthDbSchema, a9 as FieldAttributeConfig, ah as InferFieldsFromOptions, ag as InferFieldsFromPlugins, ad as InferFieldsInput, ae as InferFieldsInputClient, ac as InferFieldsOutput, ab as InferValueType, a8 as InternalAdapter, af as PluginFieldAttribute, ak as accountSchema, aa as createFieldAttribute, a7 as createInternalAdapter, ap as getAllFields, aj as getAuthTables, ay as mergeSchema, aw as parseAccountInput, ar as parseAccountOutput, av as parseAdditionalUserInput, at as parseInputData, ao as parseOutputData, ax as parseSessionInput, as as parseSessionOutput, au as parseUserInput, aq as parseUserOutput, am as sessionSchema, al as userSchema, an as verificationSchema } from './auth-C42JqOR9.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|