better-auth 1.3.2 → 1.3.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/adapters/drizzle-adapter/index.d.cts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.cjs +3 -3
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.mjs +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.mts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/plugins/index.d.cts +3 -3
- package/dist/client/plugins/index.d.mts +3 -3
- package/dist/client/plugins/index.d.ts +3 -3
- package/dist/client/react/index.d.cts +8 -8
- package/dist/client/react/index.d.mts +8 -8
- package/dist/client/react/index.d.ts +8 -8
- package/dist/client/solid/index.d.cts +8 -8
- package/dist/client/solid/index.d.mts +8 -8
- package/dist/client/solid/index.d.ts +8 -8
- package/dist/client/svelte/index.d.cts +2 -2
- package/dist/client/svelte/index.d.mts +2 -2
- package/dist/client/svelte/index.d.ts +2 -2
- package/dist/client/vue/index.d.cts +2 -2
- package/dist/client/vue/index.d.mts +2 -2
- package/dist/client/vue/index.d.ts +2 -2
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/index.d.cts +1 -1
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/admin/index.d.ts +1 -1
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +1 -1
- package/dist/plugins/generic-oauth/index.d.mts +1 -1
- package/dist/plugins/generic-oauth/index.d.ts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/index.cjs +4 -3
- package/dist/plugins/index.d.cts +5 -5
- package/dist/plugins/index.d.mts +5 -5
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/index.mjs +4 -4
- package/dist/plugins/jwt/index.cjs +294 -11
- package/dist/plugins/jwt/index.d.cts +4 -2
- package/dist/plugins/jwt/index.d.mts +4 -2
- package/dist/plugins/jwt/index.d.ts +4 -2
- package/dist/plugins/jwt/index.mjs +295 -9
- package/dist/plugins/multi-session/index.d.cts +1 -1
- package/dist/plugins/multi-session/index.d.mts +1 -1
- package/dist/plugins/multi-session/index.d.ts +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.d.cts +5 -5
- package/dist/plugins/oidc-provider/index.d.mts +5 -5
- package/dist/plugins/oidc-provider/index.d.ts +5 -5
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-time-token/index.d.cts +1 -1
- package/dist/plugins/one-time-token/index.d.mts +1 -1
- package/dist/plugins/one-time-token/index.d.ts +1 -1
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/organization/index.cjs +1 -1
- package/dist/plugins/organization/index.d.cts +6 -5
- package/dist/plugins/organization/index.d.mts +6 -5
- package/dist/plugins/organization/index.d.ts +6 -5
- package/dist/plugins/organization/index.mjs +1 -1
- package/dist/plugins/passkey/index.d.cts +1 -1
- package/dist/plugins/passkey/index.d.mts +1 -1
- package/dist/plugins/passkey/index.d.ts +1 -1
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/sso/index.d.cts +3 -3
- package/dist/plugins/sso/index.d.mts +3 -3
- package/dist/plugins/sso/index.d.ts +3 -3
- package/dist/plugins/two-factor/index.d.cts +1 -1
- package/dist/plugins/two-factor/index.d.mts +1 -1
- package/dist/plugins/two-factor/index.d.ts +1 -1
- package/dist/plugins/username/index.d.cts +1 -1
- package/dist/plugins/username/index.d.mts +1 -1
- package/dist/plugins/username/index.d.ts +1 -1
- package/dist/shared/{better-auth.B1VHvePI.d.mts → better-auth.B36j7OCI.d.mts} +1 -1
- package/dist/shared/{better-auth.BXW4aAiQ.cjs → better-auth.B3p123j1.cjs} +1 -1
- package/dist/shared/{better-auth.CeY8lCIq.cjs → better-auth.BDsrc21Q.cjs} +17 -36
- package/dist/shared/{better-auth.CF-FWRQL.d.cts → better-auth.BQyjc_QW.d.cts} +1 -1
- package/dist/shared/{better-auth.DR6QsC6j.mjs → better-auth.C1Ly154X.mjs} +17 -36
- package/dist/shared/{better-auth.DEgvs2nh.d.cts → better-auth.C_oxxeck.d.mts} +1 -1
- package/dist/shared/{better-auth.B0e3ZzlM.d.cts → better-auth.Co08Vfmu.d.cts} +1 -1
- package/dist/shared/{better-auth.Bwe61noi.d.ts → better-auth.CtrZTpKh.d.ts} +1 -1
- package/dist/shared/{better-auth.HDgvLN7B.mjs → better-auth.CvxACSRz.mjs} +1 -1
- package/dist/shared/{better-auth.B_G094Aj.d.ts → better-auth.DM13Kwsw.d.ts} +1 -1
- package/dist/shared/{better-auth.BF0l18Af.d.mts → better-auth.VRX5gxZv.d.cts} +1 -1
- package/dist/shared/{better-auth.DbqVX6sp.d.mts → better-auth.f91UNEc0.d.mts} +1 -1
- package/dist/shared/{better-auth.CHvHihjD.d.ts → better-auth.xU7dIFql.d.ts} +1 -1
- package/dist/test-utils/index.d.cts +2 -2
- package/dist/test-utils/index.d.mts +2 -2
- package/dist/test-utils/index.d.ts +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/shared/better-auth.D1SaVuxk.mjs +0 -301
- package/dist/shared/better-auth.johXc5IC.cjs +0 -305
- package/dist/shared/{better-auth.CiGummYu.d.cts → better-auth.84gXUliC.d.cts} +1 -1
- package/dist/shared/{better-auth.CePXeKag.d.mts → better-auth.BFooP6d2.d.mts} +1 -1
- package/dist/shared/{better-auth.Dj2HyOmw.d.ts → better-auth.DdfarOau.d.ts} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { U as User, S as Session, p as AuthContext, a4 as FieldAttribute, af as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, p as AuthContext, a4 as FieldAttribute, af as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
3
3
|
import { AccessControl, Role, Statements } from '../access/index.mjs';
|
|
4
4
|
import * as better_call from 'better-call';
|
|
5
5
|
import { Prettify } from 'better-call';
|
|
@@ -42,7 +42,7 @@ interface OrganizationOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
creatorRole?: string;
|
|
44
44
|
/**
|
|
45
|
-
* The number of
|
|
45
|
+
* The maximum number of members allowed in an organization.
|
|
46
46
|
*
|
|
47
47
|
* @default 100
|
|
48
48
|
*/
|
|
@@ -1048,14 +1048,14 @@ declare const organization: <O extends OrganizationOptions>(options?: Organizati
|
|
|
1048
1048
|
organizationId: string;
|
|
1049
1049
|
createdAt: Date;
|
|
1050
1050
|
updatedAt?: Date | undefined;
|
|
1051
|
-
}[]
|
|
1051
|
+
}[];
|
|
1052
1052
|
} : {
|
|
1053
1053
|
id: string;
|
|
1054
1054
|
name: string;
|
|
1055
1055
|
organizationId: string;
|
|
1056
1056
|
createdAt: Date;
|
|
1057
1057
|
updatedAt?: Date | undefined;
|
|
1058
|
-
}[]
|
|
1058
|
+
}[]>;
|
|
1059
1059
|
options: {
|
|
1060
1060
|
method: "GET";
|
|
1061
1061
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -9154,9 +9154,10 @@ declare const organization: <O extends OrganizationOptions>(options?: Organizati
|
|
|
9154
9154
|
readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
|
|
9155
9155
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
|
|
9156
9156
|
readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
|
|
9157
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
|
|
9157
9158
|
};
|
|
9158
9159
|
options: O;
|
|
9159
9160
|
};
|
|
9160
9161
|
|
|
9161
9162
|
export { defaultRoles, defaultRolesSchema, invitationSchema, invitationStatus, memberSchema, organization, organizationSchema, parseRoles, role, teamMemberSchema, teamSchema };
|
|
9162
|
-
export type { InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, Team, TeamInput, TeamMember, TeamMemberInput };
|
|
9163
|
+
export type { InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationOptions, Team, TeamInput, TeamMember, TeamMemberInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { U as User, S as Session, p as AuthContext, a4 as FieldAttribute, af as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.
|
|
2
|
+
import { U as User, S as Session, p as AuthContext, a4 as FieldAttribute, af as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.DdfarOau.js';
|
|
3
3
|
import { AccessControl, Role, Statements } from '../access/index.js';
|
|
4
4
|
import * as better_call from 'better-call';
|
|
5
5
|
import { Prettify } from 'better-call';
|
|
@@ -42,7 +42,7 @@ interface OrganizationOptions {
|
|
|
42
42
|
*/
|
|
43
43
|
creatorRole?: string;
|
|
44
44
|
/**
|
|
45
|
-
* The number of
|
|
45
|
+
* The maximum number of members allowed in an organization.
|
|
46
46
|
*
|
|
47
47
|
* @default 100
|
|
48
48
|
*/
|
|
@@ -1048,14 +1048,14 @@ declare const organization: <O extends OrganizationOptions>(options?: Organizati
|
|
|
1048
1048
|
organizationId: string;
|
|
1049
1049
|
createdAt: Date;
|
|
1050
1050
|
updatedAt?: Date | undefined;
|
|
1051
|
-
}[]
|
|
1051
|
+
}[];
|
|
1052
1052
|
} : {
|
|
1053
1053
|
id: string;
|
|
1054
1054
|
name: string;
|
|
1055
1055
|
organizationId: string;
|
|
1056
1056
|
createdAt: Date;
|
|
1057
1057
|
updatedAt?: Date | undefined;
|
|
1058
|
-
}[]
|
|
1058
|
+
}[]>;
|
|
1059
1059
|
options: {
|
|
1060
1060
|
method: "GET";
|
|
1061
1061
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -9154,9 +9154,10 @@ declare const organization: <O extends OrganizationOptions>(options?: Organizati
|
|
|
9154
9154
|
readonly YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team";
|
|
9155
9155
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member";
|
|
9156
9156
|
readonly YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member";
|
|
9157
|
+
readonly YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner";
|
|
9157
9158
|
};
|
|
9158
9159
|
options: O;
|
|
9159
9160
|
};
|
|
9160
9161
|
|
|
9161
9162
|
export { defaultRoles, defaultRolesSchema, invitationSchema, invitationStatus, memberSchema, organization, organizationSchema, parseRoles, role, teamMemberSchema, teamSchema };
|
|
9162
|
-
export type { InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, Team, TeamInput, TeamMember, TeamMemberInput };
|
|
9163
|
+
export type { InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationOptions, Team, TeamInput, TeamMember, TeamMemberInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { o as organization, p as parseRoles } from '../../shared/better-auth.
|
|
1
|
+
export { o as organization, p as parseRoles } from '../../shared/better-auth.C1Ly154X.mjs';
|
|
2
2
|
import 'better-call';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../shared/better-auth.D4HhkCZJ.mjs';
|
|
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.84gXUliC.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
8
8
|
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
8
8
|
import '../../shared/better-auth.IegS6fw_.mjs';
|
|
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
|
2
2
|
import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
5
|
-
import { I as InferOptionSchema } from '../../shared/better-auth.
|
|
5
|
+
import { I as InferOptionSchema } from '../../shared/better-auth.DdfarOau.js';
|
|
6
6
|
import 'kysely';
|
|
7
7
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
8
8
|
import '../../shared/better-auth.DPa2nz5L.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.84gXUliC.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
6
|
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
6
|
import '../../shared/better-auth.IegS6fw_.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema } from '../../shared/better-auth.DdfarOau.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
6
6
|
import '../../shared/better-auth.DPa2nz5L.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import { O as OAuth2Tokens } from '../../shared/better-auth.npEvGVS_.cjs';
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
4
|
+
import { U as User } from '../../shared/better-auth.84gXUliC.cjs';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -96,7 +96,7 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
96
96
|
authorizationEndpoint?: string | undefined;
|
|
97
97
|
tokenEndpoint?: string | undefined;
|
|
98
98
|
userInfoEndpoint?: string | undefined;
|
|
99
|
-
tokenEndpointAuthentication?: "
|
|
99
|
+
tokenEndpointAuthentication?: "client_secret_basic" | "client_secret_post" | undefined;
|
|
100
100
|
jwksEndpoint?: string | undefined;
|
|
101
101
|
discoveryEndpoint?: string | undefined;
|
|
102
102
|
scopes?: string[] | undefined;
|
|
@@ -152,8 +152,8 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
152
152
|
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
153
153
|
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
154
|
tokenEndpointAuthentication: z.ZodOptional<z.ZodEnum<{
|
|
155
|
-
client_secret_post: "client_secret_post";
|
|
156
155
|
client_secret_basic: "client_secret_basic";
|
|
156
|
+
client_secret_post: "client_secret_post";
|
|
157
157
|
}>>;
|
|
158
158
|
jwksEndpoint: z.ZodOptional<z.ZodString>;
|
|
159
159
|
discoveryEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import { O as OAuth2Tokens } from '../../shared/better-auth.IegS6fw_.mjs';
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
4
|
+
import { U as User } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -96,7 +96,7 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
96
96
|
authorizationEndpoint?: string | undefined;
|
|
97
97
|
tokenEndpoint?: string | undefined;
|
|
98
98
|
userInfoEndpoint?: string | undefined;
|
|
99
|
-
tokenEndpointAuthentication?: "
|
|
99
|
+
tokenEndpointAuthentication?: "client_secret_basic" | "client_secret_post" | undefined;
|
|
100
100
|
jwksEndpoint?: string | undefined;
|
|
101
101
|
discoveryEndpoint?: string | undefined;
|
|
102
102
|
scopes?: string[] | undefined;
|
|
@@ -152,8 +152,8 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
152
152
|
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
153
153
|
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
154
|
tokenEndpointAuthentication: z.ZodOptional<z.ZodEnum<{
|
|
155
|
-
client_secret_post: "client_secret_post";
|
|
156
155
|
client_secret_basic: "client_secret_basic";
|
|
156
|
+
client_secret_post: "client_secret_post";
|
|
157
157
|
}>>;
|
|
158
158
|
jwksEndpoint: z.ZodOptional<z.ZodString>;
|
|
159
159
|
discoveryEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import { O as OAuth2Tokens } from '../../shared/better-auth.DPa2nz5L.js';
|
|
4
|
-
import { U as User } from '../../shared/better-auth.
|
|
4
|
+
import { U as User } from '../../shared/better-auth.DdfarOau.js';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import 'kysely';
|
|
@@ -96,7 +96,7 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
96
96
|
authorizationEndpoint?: string | undefined;
|
|
97
97
|
tokenEndpoint?: string | undefined;
|
|
98
98
|
userInfoEndpoint?: string | undefined;
|
|
99
|
-
tokenEndpointAuthentication?: "
|
|
99
|
+
tokenEndpointAuthentication?: "client_secret_basic" | "client_secret_post" | undefined;
|
|
100
100
|
jwksEndpoint?: string | undefined;
|
|
101
101
|
discoveryEndpoint?: string | undefined;
|
|
102
102
|
scopes?: string[] | undefined;
|
|
@@ -152,8 +152,8 @@ declare const sso: (options?: SSOOptions) => {
|
|
|
152
152
|
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
153
153
|
userInfoEndpoint: z.ZodOptional<z.ZodString>;
|
|
154
154
|
tokenEndpointAuthentication: z.ZodOptional<z.ZodEnum<{
|
|
155
|
-
client_secret_post: "client_secret_post";
|
|
156
155
|
client_secret_basic: "client_secret_basic";
|
|
156
|
+
client_secret_post: "client_secret_post";
|
|
157
157
|
}>>;
|
|
158
158
|
jwksEndpoint: z.ZodOptional<z.ZodString>;
|
|
159
159
|
discoveryEndpoint: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.84gXUliC.cjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.ZSfSbnQT.mjs';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
|
-
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import { U as User, I as InferOptionSchema, l as AuthEndpoint, H as HookEndpointContext } from '../../shared/better-auth.DdfarOau.js';
|
|
4
4
|
import { L as LiteralString } from '../../shared/better-auth.ZSfSbnQT.js';
|
|
5
5
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
6
6
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.84gXUliC.cjs';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.BFooP6d2.mjs';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.
|
|
1
|
+
import { I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.DdfarOau.js';
|
|
2
2
|
import * as z from 'zod/v4';
|
|
3
3
|
import * as better_call from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.
|
|
1
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.BFooP6d2.mjs';
|
|
2
2
|
import { Statements } from '../plugins/access/index.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
@@ -22,7 +22,7 @@ require('@better-auth/utils');
|
|
|
22
22
|
require('@better-auth/utils/hex');
|
|
23
23
|
require('@noble/hashes/utils');
|
|
24
24
|
const random = require('./better-auth.CYeOI8C-.cjs');
|
|
25
|
-
const plugins_jwt_index = require('
|
|
25
|
+
const plugins_jwt_index = require('../plugins/jwt/index.cjs');
|
|
26
26
|
|
|
27
27
|
function _interopNamespaceCompat(e) {
|
|
28
28
|
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
@@ -814,7 +814,8 @@ const ORGANIZATION_ERROR_CODES = {
|
|
|
814
814
|
YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team",
|
|
815
815
|
YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team",
|
|
816
816
|
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member",
|
|
817
|
-
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member"
|
|
817
|
+
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member",
|
|
818
|
+
YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner"
|
|
818
819
|
};
|
|
819
820
|
|
|
820
821
|
const createInvitation = (option) => {
|
|
@@ -3021,22 +3022,21 @@ const listOrganizationTeams = (options) => socialProviders_index.createAuthEndpo
|
|
|
3021
3022
|
},
|
|
3022
3023
|
async (ctx) => {
|
|
3023
3024
|
const session = ctx.context.session;
|
|
3024
|
-
const organizationId =
|
|
3025
|
+
const organizationId = ctx.query?.organizationId || session?.session.activeOrganizationId;
|
|
3025
3026
|
if (!organizationId) {
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
body: {
|
|
3029
|
-
message: ORGANIZATION_ERROR_CODES.NO_ACTIVE_ORGANIZATION
|
|
3030
|
-
}
|
|
3027
|
+
throw ctx.error("BAD_REQUEST", {
|
|
3028
|
+
message: ORGANIZATION_ERROR_CODES.NO_ACTIVE_ORGANIZATION
|
|
3031
3029
|
});
|
|
3032
3030
|
}
|
|
3033
3031
|
const adapter = getOrgAdapter(ctx.context, options);
|
|
3034
3032
|
const member = await adapter.findMemberByOrgId({
|
|
3035
|
-
userId: session
|
|
3033
|
+
userId: session.user.id,
|
|
3036
3034
|
organizationId: organizationId || ""
|
|
3037
3035
|
});
|
|
3038
3036
|
if (!member) {
|
|
3039
|
-
throw new betterCall.APIError("FORBIDDEN"
|
|
3037
|
+
throw new betterCall.APIError("FORBIDDEN", {
|
|
3038
|
+
message: ORGANIZATION_ERROR_CODES.YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION
|
|
3039
|
+
});
|
|
3040
3040
|
}
|
|
3041
3041
|
const teams = await adapter.listTeams(organizationId);
|
|
3042
3042
|
return ctx.json(teams);
|
|
@@ -3171,9 +3171,9 @@ const listTeamMembers = (options) => socialProviders_index.createAuthEndpoint(
|
|
|
3171
3171
|
method: "GET",
|
|
3172
3172
|
query: z__namespace.optional(
|
|
3173
3173
|
z__namespace.object({
|
|
3174
|
-
teamId: z__namespace.string().optional()
|
|
3175
|
-
|
|
3176
|
-
|
|
3174
|
+
teamId: z__namespace.string().optional().meta({
|
|
3175
|
+
description: "The team whose members we should return. If this is not provided the members of the current active team get returned."
|
|
3176
|
+
})
|
|
3177
3177
|
})
|
|
3178
3178
|
),
|
|
3179
3179
|
metadata: {
|
|
@@ -3223,34 +3223,15 @@ const listTeamMembers = (options) => socialProviders_index.createAuthEndpoint(
|
|
|
3223
3223
|
async (ctx) => {
|
|
3224
3224
|
const session = ctx.context.session;
|
|
3225
3225
|
const adapter = getOrgAdapter(ctx.context, ctx.context.orgOptions);
|
|
3226
|
-
|
|
3226
|
+
let teamId = ctx.query?.teamId || session?.session.activeTeamId;
|
|
3227
|
+
if (!teamId) {
|
|
3227
3228
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
3228
|
-
message: ORGANIZATION_ERROR_CODES.
|
|
3229
|
-
});
|
|
3230
|
-
}
|
|
3231
|
-
if (!ctx.query?.teamId) {
|
|
3232
|
-
if (!session.session.activeTeamId) {
|
|
3233
|
-
throw new betterCall.APIError("FORBIDDEN", {
|
|
3234
|
-
message: ORGANIZATION_ERROR_CODES.YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM
|
|
3235
|
-
});
|
|
3236
|
-
}
|
|
3237
|
-
const member2 = await adapter.findTeamMember({
|
|
3238
|
-
userId: session.user.id,
|
|
3239
|
-
teamId: session.session.activeTeamId
|
|
3240
|
-
});
|
|
3241
|
-
if (!member2) {
|
|
3242
|
-
throw new betterCall.APIError("BAD_REQUEST", {
|
|
3243
|
-
message: ORGANIZATION_ERROR_CODES.USER_IS_NOT_A_MEMBER_OF_THE_TEAM
|
|
3244
|
-
});
|
|
3245
|
-
}
|
|
3246
|
-
const members2 = await adapter.listTeamMembers({
|
|
3247
|
-
teamId: session.session.activeTeamId
|
|
3229
|
+
message: ORGANIZATION_ERROR_CODES.YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM
|
|
3248
3230
|
});
|
|
3249
|
-
return ctx.json(members2);
|
|
3250
3231
|
}
|
|
3251
3232
|
const member = await adapter.findTeamMember({
|
|
3252
3233
|
userId: session.user.id,
|
|
3253
|
-
teamId
|
|
3234
|
+
teamId
|
|
3254
3235
|
});
|
|
3255
3236
|
if (!member) {
|
|
3256
3237
|
throw new betterCall.APIError("BAD_REQUEST", {
|
|
@@ -3258,7 +3239,7 @@ const listTeamMembers = (options) => socialProviders_index.createAuthEndpoint(
|
|
|
3258
3239
|
});
|
|
3259
3240
|
}
|
|
3260
3241
|
const members = await adapter.listTeamMembers({
|
|
3261
|
-
teamId
|
|
3242
|
+
teamId
|
|
3262
3243
|
});
|
|
3263
3244
|
return ctx.json(members);
|
|
3264
3245
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as BetterAuthPlugin, B as BetterAuthOptions, ad as InferFieldsInputClient, ab as InferFieldsOutput, U as User, S as Session, n as Auth } from './better-auth.
|
|
1
|
+
import { h as BetterAuthPlugin, B as BetterAuthOptions, ad as InferFieldsInputClient, ab as InferFieldsOutput, U as User, S as Session, n as Auth } from './better-auth.84gXUliC.cjs';
|
|
2
2
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
3
3
|
import { WritableAtom, Atom } from 'nanostores';
|
|
4
4
|
import { U as UnionToIntersection, H as HasRequiredKeys, a as Prettify, L as LiteralString, S as StripEmptyObjects } from './better-auth.ZSfSbnQT.cjs';
|
|
@@ -798,7 +798,8 @@ const ORGANIZATION_ERROR_CODES = {
|
|
|
798
798
|
YOU_CAN_NOT_ACCESS_THE_MEMBERS_OF_THIS_TEAM: "You are not allowed to list the members of this team",
|
|
799
799
|
YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM: "You do not have an active team",
|
|
800
800
|
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM_MEMBER: "You are not allowed to create a new member",
|
|
801
|
-
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member"
|
|
801
|
+
YOU_ARE_NOT_ALLOWED_TO_REMOVE_A_TEAM_MEMBER: "You are not allowed to remove a team member",
|
|
802
|
+
YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION: "You are not allowed to access this organization as an owner"
|
|
802
803
|
};
|
|
803
804
|
|
|
804
805
|
const createInvitation = (option) => {
|
|
@@ -3005,22 +3006,21 @@ const listOrganizationTeams = (options) => createAuthEndpoint(
|
|
|
3005
3006
|
},
|
|
3006
3007
|
async (ctx) => {
|
|
3007
3008
|
const session = ctx.context.session;
|
|
3008
|
-
const organizationId =
|
|
3009
|
+
const organizationId = ctx.query?.organizationId || session?.session.activeOrganizationId;
|
|
3009
3010
|
if (!organizationId) {
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
body: {
|
|
3013
|
-
message: ORGANIZATION_ERROR_CODES.NO_ACTIVE_ORGANIZATION
|
|
3014
|
-
}
|
|
3011
|
+
throw ctx.error("BAD_REQUEST", {
|
|
3012
|
+
message: ORGANIZATION_ERROR_CODES.NO_ACTIVE_ORGANIZATION
|
|
3015
3013
|
});
|
|
3016
3014
|
}
|
|
3017
3015
|
const adapter = getOrgAdapter(ctx.context, options);
|
|
3018
3016
|
const member = await adapter.findMemberByOrgId({
|
|
3019
|
-
userId: session
|
|
3017
|
+
userId: session.user.id,
|
|
3020
3018
|
organizationId: organizationId || ""
|
|
3021
3019
|
});
|
|
3022
3020
|
if (!member) {
|
|
3023
|
-
throw new APIError("FORBIDDEN"
|
|
3021
|
+
throw new APIError("FORBIDDEN", {
|
|
3022
|
+
message: ORGANIZATION_ERROR_CODES.YOU_ARE_NOT_ALLOWED_TO_ACCESS_THIS_ORGANIZATION
|
|
3023
|
+
});
|
|
3024
3024
|
}
|
|
3025
3025
|
const teams = await adapter.listTeams(organizationId);
|
|
3026
3026
|
return ctx.json(teams);
|
|
@@ -3155,9 +3155,9 @@ const listTeamMembers = (options) => createAuthEndpoint(
|
|
|
3155
3155
|
method: "GET",
|
|
3156
3156
|
query: z.optional(
|
|
3157
3157
|
z.object({
|
|
3158
|
-
teamId: z.string().optional()
|
|
3159
|
-
|
|
3160
|
-
|
|
3158
|
+
teamId: z.string().optional().meta({
|
|
3159
|
+
description: "The team whose members we should return. If this is not provided the members of the current active team get returned."
|
|
3160
|
+
})
|
|
3161
3161
|
})
|
|
3162
3162
|
),
|
|
3163
3163
|
metadata: {
|
|
@@ -3207,34 +3207,15 @@ const listTeamMembers = (options) => createAuthEndpoint(
|
|
|
3207
3207
|
async (ctx) => {
|
|
3208
3208
|
const session = ctx.context.session;
|
|
3209
3209
|
const adapter = getOrgAdapter(ctx.context, ctx.context.orgOptions);
|
|
3210
|
-
|
|
3210
|
+
let teamId = ctx.query?.teamId || session?.session.activeTeamId;
|
|
3211
|
+
if (!teamId) {
|
|
3211
3212
|
throw new APIError("BAD_REQUEST", {
|
|
3212
|
-
message: ORGANIZATION_ERROR_CODES.
|
|
3213
|
-
});
|
|
3214
|
-
}
|
|
3215
|
-
if (!ctx.query?.teamId) {
|
|
3216
|
-
if (!session.session.activeTeamId) {
|
|
3217
|
-
throw new APIError("FORBIDDEN", {
|
|
3218
|
-
message: ORGANIZATION_ERROR_CODES.YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM
|
|
3219
|
-
});
|
|
3220
|
-
}
|
|
3221
|
-
const member2 = await adapter.findTeamMember({
|
|
3222
|
-
userId: session.user.id,
|
|
3223
|
-
teamId: session.session.activeTeamId
|
|
3224
|
-
});
|
|
3225
|
-
if (!member2) {
|
|
3226
|
-
throw new APIError("BAD_REQUEST", {
|
|
3227
|
-
message: ORGANIZATION_ERROR_CODES.USER_IS_NOT_A_MEMBER_OF_THE_TEAM
|
|
3228
|
-
});
|
|
3229
|
-
}
|
|
3230
|
-
const members2 = await adapter.listTeamMembers({
|
|
3231
|
-
teamId: session.session.activeTeamId
|
|
3213
|
+
message: ORGANIZATION_ERROR_CODES.YOU_DO_NOT_HAVE_AN_ACTIVE_TEAM
|
|
3232
3214
|
});
|
|
3233
|
-
return ctx.json(members2);
|
|
3234
3215
|
}
|
|
3235
3216
|
const member = await adapter.findTeamMember({
|
|
3236
3217
|
userId: session.user.id,
|
|
3237
|
-
teamId
|
|
3218
|
+
teamId
|
|
3238
3219
|
});
|
|
3239
3220
|
if (!member) {
|
|
3240
3221
|
throw new APIError("BAD_REQUEST", {
|
|
@@ -3242,7 +3223,7 @@ const listTeamMembers = (options) => createAuthEndpoint(
|
|
|
3242
3223
|
});
|
|
3243
3224
|
}
|
|
3244
3225
|
const members = await adapter.listTeamMembers({
|
|
3245
|
-
teamId
|
|
3226
|
+
teamId
|
|
3246
3227
|
});
|
|
3247
3228
|
return ctx.json(members);
|
|
3248
3229
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.
|
|
1
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.84gXUliC.cjs';
|
|
2
2
|
import { Statements } from '../plugins/access/index.cjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
@@ -20,7 +20,7 @@ import '@better-auth/utils';
|
|
|
20
20
|
import '@better-auth/utils/hex';
|
|
21
21
|
import '@noble/hashes/utils';
|
|
22
22
|
import { g as generateRandomString } from './better-auth.B4Qoxdgc.mjs';
|
|
23
|
-
import {
|
|
23
|
+
import { getJwtToken } from '../plugins/jwt/index.mjs';
|
|
24
24
|
|
|
25
25
|
const schema = {
|
|
26
26
|
oauthApplication: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as BetterAuthPlugin, B as BetterAuthOptions, ad as InferFieldsInputClient, ab as InferFieldsOutput, U as User, S as Session, n as Auth } from './better-auth.
|
|
1
|
+
import { h as BetterAuthPlugin, B as BetterAuthOptions, ad as InferFieldsInputClient, ab as InferFieldsOutput, U as User, S as Session, n as Auth } from './better-auth.DdfarOau.js';
|
|
2
2
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
3
3
|
import { WritableAtom, Atom } from 'nanostores';
|
|
4
4
|
import { U as UnionToIntersection, H as HasRequiredKeys, a as Prettify, L as LiteralString, S as StripEmptyObjects } from './better-auth.ZSfSbnQT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as BetterAuthPlugin, B as BetterAuthOptions, ad as InferFieldsInputClient, ab as InferFieldsOutput, U as User, S as Session, n as Auth } from './better-auth.
|
|
1
|
+
import { h as BetterAuthPlugin, B as BetterAuthOptions, ad as InferFieldsInputClient, ab as InferFieldsOutput, U as User, S as Session, n as Auth } from './better-auth.BFooP6d2.mjs';
|
|
2
2
|
import { BetterFetchOption, BetterFetchResponse, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
3
3
|
import { WritableAtom, Atom } from 'nanostores';
|
|
4
4
|
import { U as UnionToIntersection, H as HasRequiredKeys, a as Prettify, L as LiteralString, S as StripEmptyObjects } from './better-auth.ZSfSbnQT.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.
|
|
1
|
+
import { G as GenericEndpointContext, I as InferOptionSchema, H as HookEndpointContext, p as AuthContext } from './better-auth.DdfarOau.js';
|
|
2
2
|
import { Statements } from '../plugins/access/index.js';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as z from 'zod/v4';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as nanostores from 'nanostores';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { SuccessContext } from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.
|
|
5
|
-
import { B as BetterAuthOptions, U as User, t as InferAPI, a as Adapter, u as AdditionalSessionFieldsOutput, n as Auth, v as AdditionalUserFieldsOutput, w as InferFieldsFromPlugins, x as InferFieldsFromOptions, y as AdditionalUserFieldsInput, h as BetterAuthPlugin, p as AuthContext, z as InferPluginTypes, i as InferPluginErrorCodes, F as FilterActions, S as Session, D as setCookieToHeader } from '../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.BQyjc_QW.cjs';
|
|
5
|
+
import { B as BetterAuthOptions, U as User, t as InferAPI, a as Adapter, u as AdditionalSessionFieldsOutput, n as Auth, v as AdditionalUserFieldsOutput, w as InferFieldsFromPlugins, x as InferFieldsFromOptions, y as AdditionalUserFieldsInput, h as BetterAuthPlugin, p as AuthContext, z as InferPluginTypes, i as InferPluginErrorCodes, F as FilterActions, S as Session, D as setCookieToHeader } from '../shared/better-auth.84gXUliC.cjs';
|
|
6
6
|
import * as better_call from 'better-call';
|
|
7
7
|
import { U as UnionToIntersection, S as StripEmptyObjects, a as Prettify } from '../shared/better-auth.ZSfSbnQT.cjs';
|
|
8
8
|
import { O as OAuth2Tokens } from '../shared/better-auth.npEvGVS_.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as nanostores from 'nanostores';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { SuccessContext } from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.
|
|
5
|
-
import { B as BetterAuthOptions, U as User, t as InferAPI, a as Adapter, u as AdditionalSessionFieldsOutput, n as Auth, v as AdditionalUserFieldsOutput, w as InferFieldsFromPlugins, x as InferFieldsFromOptions, y as AdditionalUserFieldsInput, h as BetterAuthPlugin, p as AuthContext, z as InferPluginTypes, i as InferPluginErrorCodes, F as FilterActions, S as Session, D as setCookieToHeader } from '../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.f91UNEc0.mjs';
|
|
5
|
+
import { B as BetterAuthOptions, U as User, t as InferAPI, a as Adapter, u as AdditionalSessionFieldsOutput, n as Auth, v as AdditionalUserFieldsOutput, w as InferFieldsFromPlugins, x as InferFieldsFromOptions, y as AdditionalUserFieldsInput, h as BetterAuthPlugin, p as AuthContext, z as InferPluginTypes, i as InferPluginErrorCodes, F as FilterActions, S as Session, D as setCookieToHeader } from '../shared/better-auth.BFooP6d2.mjs';
|
|
6
6
|
import * as better_call from 'better-call';
|
|
7
7
|
import { U as UnionToIntersection, S as StripEmptyObjects, a as Prettify } from '../shared/better-auth.ZSfSbnQT.mjs';
|
|
8
8
|
import { O as OAuth2Tokens } from '../shared/better-auth.IegS6fw_.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as nanostores from 'nanostores';
|
|
2
2
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
3
3
|
import { SuccessContext } from '@better-fetch/fetch';
|
|
4
|
-
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.
|
|
5
|
-
import { B as BetterAuthOptions, U as User, t as InferAPI, a as Adapter, u as AdditionalSessionFieldsOutput, n as Auth, v as AdditionalUserFieldsOutput, w as InferFieldsFromPlugins, x as InferFieldsFromOptions, y as AdditionalUserFieldsInput, h as BetterAuthPlugin, p as AuthContext, z as InferPluginTypes, i as InferPluginErrorCodes, F as FilterActions, S as Session, D as setCookieToHeader } from '../shared/better-auth.
|
|
4
|
+
import { C as ClientOptions, B as BetterAuthClientPlugin, I as IsSignal, d as InferRoute, c as InferErrorCodes } from '../shared/better-auth.DM13Kwsw.js';
|
|
5
|
+
import { B as BetterAuthOptions, U as User, t as InferAPI, a as Adapter, u as AdditionalSessionFieldsOutput, n as Auth, v as AdditionalUserFieldsOutput, w as InferFieldsFromPlugins, x as InferFieldsFromOptions, y as AdditionalUserFieldsInput, h as BetterAuthPlugin, p as AuthContext, z as InferPluginTypes, i as InferPluginErrorCodes, F as FilterActions, S as Session, D as setCookieToHeader } from '../shared/better-auth.DdfarOau.js';
|
|
6
6
|
import * as better_call from 'better-call';
|
|
7
7
|
import { U as UnionToIntersection, S as StripEmptyObjects, a as Prettify } from '../shared/better-auth.ZSfSbnQT.js';
|
|
8
8
|
import { O as OAuth2Tokens } from '../shared/better-auth.DPa2nz5L.js';
|