better-auth 0.8.3-beta.3 → 0.8.3-beta.4
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.d.cts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/prisma.d.cts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/client/plugins.d.cts +3 -3
- package/dist/client/plugins.d.ts +3 -3
- 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-DuhVtl9a.d.ts → index-DbSanUJ5.d.ts} +7 -25
- package/dist/{index-DBQ0XVML.d.cts → index-v9In9L_y.d.cts} +7 -25
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/next-js.d.cts +1 -1
- package/dist/next-js.d.ts +1 -1
- 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.cjs +5 -5
- package/dist/plugins.d.cts +9 -9
- package/dist/plugins.d.ts +9 -9
- package/dist/plugins.js +4 -4
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/solid-start.d.cts +1 -1
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/{state-5tKc556n.d.ts → state-B-02czHC.d.ts} +1 -1
- package/dist/{state-BZ0Z8cQD.d.cts → state-D_ITqPUS.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 +1 -1
- package/dist/{auth-B2oRhuJ8.d.ts → auth-miD4FiAv.d.ts} +84 -84
- package/dist/{auth-A5nkNoqm.d.cts → auth-rfAcL_Rw.d.cts} +84 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-rfAcL_Rw.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../helper-DPDj8Nix.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-miD4FiAv.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'better-call';
|
|
5
5
|
import '../helper-DPDj8Nix.js';
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-
|
|
1
|
+
export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-rfAcL_Rw.cjs';
|
|
2
2
|
import './helper-DPDj8Nix.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-
|
|
1
|
+
export { z as AuthEndpoint, C as AuthMiddleware, a4 as callbackOAuth, an as changeEmail, ak as changePassword, y as createAuthEndpoint, x as createAuthMiddleware, ag as createEmailVerificationToken, am as deleteUser, ao as error, ad as forgetPassword, ae as forgetPasswordCallback, a0 as getEndpoints, a5 as getSession, a6 as getSessionFromCtx, as as linkSocialAccount, a8 as listSessions, ar as listUserAccounts, ap as ok, w as optionsMiddleware, at as originCheckMiddleware, af as resetPassword, ab as revokeOtherSessions, a9 as revokeSession, aa as revokeSessions, a1 as router, ah as sendVerificationEmail, a7 as sessionMiddleware, al as setPassword, a3 as signInEmail, a2 as signInSocial, ac as signOut, aq as signUpEmail, aj as updateUser, ai as verifyEmail } from './auth-miD4FiAv.js';
|
|
2
2
|
import './helper-DPDj8Nix.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { A as AccessControl, S as StatementsPrimitive, R as Role } from '../statement-DFWdVU7s.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, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-v9In9L_y.cjs';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-v9In9L_y.cjs';
|
|
7
7
|
import { P as Prettify } from '../helper-DPDj8Nix.cjs';
|
|
8
|
-
import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-
|
|
8
|
+
import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-rfAcL_Rw.cjs';
|
|
9
9
|
import { Store } from '../types.cjs';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
package/dist/client/plugins.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { A as AccessControl, S as StatementsPrimitive, R as Role } from '../statement-CTl9eDv7.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, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-
|
|
6
|
-
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-
|
|
5
|
+
import { o as organization, q as Organization, M as Member, I as Invitation, u as username, m as magicLink, d as phoneNumber, f as anonymous, i as admin, j as genericOAuth, k as jwt, l as multiSession, n as emailOTP } from '../index-DbSanUJ5.js';
|
|
6
|
+
export { g as getPasskeyActions, c as passkeyClient, a as twoFactorClient } from '../index-DbSanUJ5.js';
|
|
7
7
|
import { P as Prettify } from '../helper-DPDj8Nix.js';
|
|
8
|
-
import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-
|
|
8
|
+
import { F as FieldAttribute, B as BetterAuthOptions, j as BetterAuthPlugin } from '../auth-miD4FiAv.js';
|
|
9
9
|
import { Store } from '../types.js';
|
|
10
10
|
import 'better-call';
|
|
11
11
|
import 'zod';
|
package/dist/client.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/
|
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.cjs';
|
|
7
7
|
export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, Store } from './types.cjs';
|
|
8
8
|
import { U as UnionToIntersection } from './helper-DPDj8Nix.cjs';
|
|
9
|
-
import './auth-
|
|
9
|
+
import './auth-rfAcL_Rw.cjs';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import './index-cqC7BcV_.cjs';
|
package/dist/client.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { BetterFetchError, BetterFetch, BetterFetchOption } from '@better-fetch/
|
|
|
6
6
|
import { ClientOptions, InferClientAPI, InferActions, InferSessionFromClient, InferUserFromClient, BetterAuthClientPlugin, IsSignal } from './types.js';
|
|
7
7
|
export { AtomListener, InferAdditionalFromClient, InferPluginsFromClient, Store } from './types.js';
|
|
8
8
|
import { U as UnionToIntersection } from './helper-DPDj8Nix.js';
|
|
9
|
-
import './auth-
|
|
9
|
+
import './auth-miD4FiAv.js';
|
|
10
10
|
import 'kysely';
|
|
11
11
|
import 'better-call';
|
|
12
12
|
import './index-DN9ozDRm.js';
|
package/dist/cookies.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-
|
|
2
|
+
export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-rfAcL_Rw.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './helper-DPDj8Nix.cjs';
|
package/dist/cookies.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-
|
|
2
|
+
export { p as BetterAuthCookies, E as EligibleCookies, n as createCookieGetter, q as deleteSessionCookie, o as getCookies, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-miD4FiAv.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './helper-DPDj8Nix.js';
|
package/dist/db.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-
|
|
1
|
+
import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-rfAcL_Rw.cjs';
|
|
2
|
+
export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-rfAcL_Rw.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 { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-
|
|
1
|
+
import { k as Adapter, B as BetterAuthOptions, W as Where, F as FieldAttribute, D as FieldType, K as KyselyDatabaseType } from './auth-miD4FiAv.js';
|
|
2
|
+
export { _ as BetterAuthDbSchema, M as FieldAttributeConfig, Z as InferFieldsFromOptions, Y as InferFieldsFromPlugins, T as InferFieldsInput, V as InferFieldsInputClient, Q as InferFieldsOutput, O as InferValueType, L as InternalAdapter, X as PluginFieldAttribute, N as createFieldAttribute, J as createInternalAdapter, $ as getAuthTables } from './auth-miD4FiAv.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-
|
|
1
|
+
import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-miD4FiAv.js';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { z, ZodObject, ZodOptional, ZodArray, ZodLiteral } from 'zod';
|
|
4
4
|
import { P as Prettify } from './helper-DPDj8Nix.js';
|
|
@@ -5299,24 +5299,6 @@ interface AdminOptions {
|
|
|
5299
5299
|
* By default, the impersonation session lasts 1 hour
|
|
5300
5300
|
*/
|
|
5301
5301
|
impersonationSessionDuration?: number;
|
|
5302
|
-
/**
|
|
5303
|
-
* Custom schema for the admin plugin
|
|
5304
|
-
*/
|
|
5305
|
-
schema?: {
|
|
5306
|
-
user?: {
|
|
5307
|
-
fields?: {
|
|
5308
|
-
role?: string;
|
|
5309
|
-
banned?: boolean;
|
|
5310
|
-
banReason?: string;
|
|
5311
|
-
banExpires?: number;
|
|
5312
|
-
};
|
|
5313
|
-
};
|
|
5314
|
-
session?: {
|
|
5315
|
-
fields?: {
|
|
5316
|
-
impersonatedBy?: string;
|
|
5317
|
-
};
|
|
5318
|
-
};
|
|
5319
|
-
};
|
|
5320
5302
|
}
|
|
5321
5303
|
declare const admin: (options?: AdminOptions) => {
|
|
5322
5304
|
id: "admin";
|
|
@@ -5454,15 +5436,15 @@ declare const admin: (options?: AdminOptions) => {
|
|
|
5454
5436
|
*/
|
|
5455
5437
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5456
5438
|
}, "strip", z.ZodTypeAny, {
|
|
5457
|
-
password: string;
|
|
5458
5439
|
email: string;
|
|
5459
5440
|
name: string;
|
|
5441
|
+
password: string;
|
|
5460
5442
|
role: string;
|
|
5461
5443
|
data?: Record<string, any> | undefined;
|
|
5462
5444
|
}, {
|
|
5463
|
-
password: string;
|
|
5464
5445
|
email: string;
|
|
5465
5446
|
name: string;
|
|
5447
|
+
password: string;
|
|
5466
5448
|
role: string;
|
|
5467
5449
|
data?: Record<string, any> | undefined;
|
|
5468
5450
|
}>;
|
|
@@ -5496,15 +5478,15 @@ declare const admin: (options?: AdminOptions) => {
|
|
|
5496
5478
|
*/
|
|
5497
5479
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5498
5480
|
}, "strip", z.ZodTypeAny, {
|
|
5499
|
-
password: string;
|
|
5500
5481
|
email: string;
|
|
5501
5482
|
name: string;
|
|
5483
|
+
password: string;
|
|
5502
5484
|
role: string;
|
|
5503
5485
|
data?: Record<string, any> | undefined;
|
|
5504
5486
|
}, {
|
|
5505
|
-
password: string;
|
|
5506
5487
|
email: string;
|
|
5507
5488
|
name: string;
|
|
5489
|
+
password: string;
|
|
5508
5490
|
role: string;
|
|
5509
5491
|
data?: Record<string, any> | undefined;
|
|
5510
5492
|
}>;
|
|
@@ -6759,13 +6741,13 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
6759
6741
|
};
|
|
6760
6742
|
accounts: {
|
|
6761
6743
|
id: string;
|
|
6744
|
+
userId: string;
|
|
6762
6745
|
providerId: string;
|
|
6763
6746
|
accountId: string;
|
|
6764
|
-
|
|
6747
|
+
expiresAt?: Date | null | undefined;
|
|
6765
6748
|
accessToken?: string | null | undefined;
|
|
6766
6749
|
refreshToken?: string | null | undefined;
|
|
6767
6750
|
idToken?: string | null | undefined;
|
|
6768
|
-
expiresAt?: Date | null | undefined;
|
|
6769
6751
|
password?: string | null | undefined;
|
|
6770
6752
|
}[];
|
|
6771
6753
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-
|
|
1
|
+
import { U as User, S as Session, H as HookEndpointContext, h as AuthContext, P as PluginSchema } from './auth-rfAcL_Rw.cjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { z, ZodObject, ZodOptional, ZodArray, ZodLiteral } from 'zod';
|
|
4
4
|
import { P as Prettify } from './helper-DPDj8Nix.cjs';
|
|
@@ -5299,24 +5299,6 @@ interface AdminOptions {
|
|
|
5299
5299
|
* By default, the impersonation session lasts 1 hour
|
|
5300
5300
|
*/
|
|
5301
5301
|
impersonationSessionDuration?: number;
|
|
5302
|
-
/**
|
|
5303
|
-
* Custom schema for the admin plugin
|
|
5304
|
-
*/
|
|
5305
|
-
schema?: {
|
|
5306
|
-
user?: {
|
|
5307
|
-
fields?: {
|
|
5308
|
-
role?: string;
|
|
5309
|
-
banned?: boolean;
|
|
5310
|
-
banReason?: string;
|
|
5311
|
-
banExpires?: number;
|
|
5312
|
-
};
|
|
5313
|
-
};
|
|
5314
|
-
session?: {
|
|
5315
|
-
fields?: {
|
|
5316
|
-
impersonatedBy?: string;
|
|
5317
|
-
};
|
|
5318
|
-
};
|
|
5319
|
-
};
|
|
5320
5302
|
}
|
|
5321
5303
|
declare const admin: (options?: AdminOptions) => {
|
|
5322
5304
|
id: "admin";
|
|
@@ -5454,15 +5436,15 @@ declare const admin: (options?: AdminOptions) => {
|
|
|
5454
5436
|
*/
|
|
5455
5437
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5456
5438
|
}, "strip", z.ZodTypeAny, {
|
|
5457
|
-
password: string;
|
|
5458
5439
|
email: string;
|
|
5459
5440
|
name: string;
|
|
5441
|
+
password: string;
|
|
5460
5442
|
role: string;
|
|
5461
5443
|
data?: Record<string, any> | undefined;
|
|
5462
5444
|
}, {
|
|
5463
|
-
password: string;
|
|
5464
5445
|
email: string;
|
|
5465
5446
|
name: string;
|
|
5447
|
+
password: string;
|
|
5466
5448
|
role: string;
|
|
5467
5449
|
data?: Record<string, any> | undefined;
|
|
5468
5450
|
}>;
|
|
@@ -5496,15 +5478,15 @@ declare const admin: (options?: AdminOptions) => {
|
|
|
5496
5478
|
*/
|
|
5497
5479
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5498
5480
|
}, "strip", z.ZodTypeAny, {
|
|
5499
|
-
password: string;
|
|
5500
5481
|
email: string;
|
|
5501
5482
|
name: string;
|
|
5483
|
+
password: string;
|
|
5502
5484
|
role: string;
|
|
5503
5485
|
data?: Record<string, any> | undefined;
|
|
5504
5486
|
}, {
|
|
5505
|
-
password: string;
|
|
5506
5487
|
email: string;
|
|
5507
5488
|
name: string;
|
|
5489
|
+
password: string;
|
|
5508
5490
|
role: string;
|
|
5509
5491
|
data?: Record<string, any> | undefined;
|
|
5510
5492
|
}>;
|
|
@@ -6759,13 +6741,13 @@ declare const emailOTP: (options: EmailOTPOptions) => {
|
|
|
6759
6741
|
};
|
|
6760
6742
|
accounts: {
|
|
6761
6743
|
id: string;
|
|
6744
|
+
userId: string;
|
|
6762
6745
|
providerId: string;
|
|
6763
6746
|
accountId: string;
|
|
6764
|
-
|
|
6747
|
+
expiresAt?: Date | null | undefined;
|
|
6765
6748
|
accessToken?: string | null | undefined;
|
|
6766
6749
|
refreshToken?: string | null | undefined;
|
|
6767
6750
|
idToken?: string | null | undefined;
|
|
6768
|
-
expiresAt?: Date | null | undefined;
|
|
6769
6751
|
password?: string | null | undefined;
|
|
6770
6752
|
}[];
|
|
6771
6753
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-
|
|
1
|
+
export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-rfAcL_Rw.cjs';
|
|
2
2
|
export { D as DeepPartial, H as HasRequiredKeys, L as LiteralString, a as LiteralUnion, P as Prettify, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-DPDj8Nix.cjs';
|
|
3
3
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.cjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
|
|
5
|
-
export { g as generateState, p as parseState } from './state-
|
|
5
|
+
export { g as generateState, p as parseState } from './state-D_ITqPUS.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'better-call';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-
|
|
1
|
+
export { k as Adapter, l as AdapterInstance, d as AdditionalSessionFieldsInput, e as AdditionalSessionFieldsOutput, a as AdditionalUserFieldsInput, c as AdditionalUserFieldsOutput, A as Auth, h as AuthContext, p as BetterAuthCookies, B as BetterAuthOptions, j as BetterAuthPlugin, E as EligibleCookies, G as GenericEndpointContext, H as HookEndpointContext, g as InferPluginTypes, f as InferSession, I as InferUser, P as PluginSchema, R as RateLimit, m as SecondaryStorage, S as Session, U as User, W as Where, b as betterAuth, n as createCookieGetter, u as createLogger, q as deleteSessionCookie, o as getCookies, i as init, v as logger, r as parseCookies, t as parseSetCookieHeader, s as setSessionCookie } from './auth-miD4FiAv.js';
|
|
2
2
|
export { D as DeepPartial, H as HasRequiredKeys, L as LiteralString, a as LiteralUnion, P as Prettify, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-DPDj8Nix.js';
|
|
3
3
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.js';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
|
|
5
|
-
export { g as generateState, p as parseState } from './state-
|
|
5
|
+
export { g as generateState, p as parseState } from './state-B-02czHC.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'better-call';
|
package/dist/next-js.d.cts
CHANGED
package/dist/next-js.d.ts
CHANGED
package/dist/node.d.cts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/oauth2.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from './index-cqC7BcV_.cjs';
|
|
2
2
|
export { a as OAuthProvider } from './index-cqC7BcV_.cjs';
|
|
3
|
-
export { g as generateState, p as parseState } from './state-
|
|
3
|
+
export { g as generateState, p as parseState } from './state-D_ITqPUS.cjs';
|
|
4
4
|
import './helper-DPDj8Nix.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-rfAcL_Rw.cjs';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
package/dist/oauth2.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as ProviderOptions, O as OAuth2Tokens } from './index-DN9ozDRm.js';
|
|
2
2
|
export { a as OAuthProvider } from './index-DN9ozDRm.js';
|
|
3
|
-
export { g as generateState, p as parseState } from './state-
|
|
3
|
+
export { g as generateState, p as parseState } from './state-B-02czHC.js';
|
|
4
4
|
import './helper-DPDj8Nix.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-miD4FiAv.js';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|