@neondatabase/auth 0.1.0-beta.11 → 0.1.0-beta.13
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/README.md +20 -1
- package/dist/{adapter-core-Bw9mn_AS.d.mts → adapter-core-D1HVvYeG.d.mts} +162 -130
- package/dist/{adapter-core-C_NEMs0b.mjs → adapter-core-Ed-EN_tr.mjs} +162 -35
- package/dist/better-auth-react-adapter-C4kQ31os.d.mts +2194 -0
- package/dist/{better-auth-react-adapter-BbM3jLLv.mjs → better-auth-react-adapter-COSlFmvp.mjs} +1 -6
- package/dist/{chunk-5DLVHPZS-Bxj7snpZ-DoVNlsyk.mjs → chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs} +2 -2
- package/dist/index.d.mts +9 -3
- package/dist/index.mjs +1 -1
- package/dist/{neon-auth-DdlToh7_.mjs → neon-auth-BHWfv-bR.mjs} +4 -3
- package/dist/next/index.d.mts +45 -30
- package/dist/next/index.mjs +2 -2
- package/dist/react/adapters/index.d.mts +2 -2
- package/dist/react/adapters/index.mjs +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.mjs +3 -3
- package/dist/react/ui/index.mjs +2 -2
- package/dist/react/ui/server.mjs +1 -1
- package/dist/supabase-adapter-BFja3Oys.d.mts +2280 -0
- package/dist/{supabase-adapter-CAqbpOC7.mjs → supabase-adapter-NVDAeWHu.mjs} +1 -11
- package/dist/ui/.safelist.html +1 -1
- package/dist/{ui-aMoA-9nq.mjs → ui-C1IRQzLY.mjs} +49 -49
- package/dist/vanilla/adapters/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.mjs +1 -1
- package/dist/vanilla/index.d.mts +2 -2
- package/dist/vanilla/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/better-auth-react-adapter-JoscqoDc.d.mts +0 -722
- package/dist/supabase-adapter-Clxlqg1x.d.mts +0 -127
package/dist/{better-auth-react-adapter-BbM3jLLv.mjs → better-auth-react-adapter-COSlFmvp.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NeonAuthAdapterCore } from "./adapter-core-
|
|
1
|
+
import { t as NeonAuthAdapterCore } from "./adapter-core-Ed-EN_tr.mjs";
|
|
2
2
|
import { createAuthClient } from "better-auth/react";
|
|
3
3
|
|
|
4
4
|
//#region src/adapters/better-auth-react/better-auth-react-adapter.ts
|
|
@@ -14,11 +14,6 @@ var BetterAuthReactAdapterImpl = class extends NeonAuthAdapterCore {
|
|
|
14
14
|
getBetterAuthInstance() {
|
|
15
15
|
return this._betterAuth;
|
|
16
16
|
}
|
|
17
|
-
async getJWTToken() {
|
|
18
|
-
const session = await this._betterAuth.getSession();
|
|
19
|
-
if (session.error) throw session.error;
|
|
20
|
-
return session.data?.session?.token ?? null;
|
|
21
|
-
}
|
|
22
17
|
};
|
|
23
18
|
/**
|
|
24
19
|
* Factory function that returns an adapter builder.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z$1 from "zod";
|
|
1
2
|
import { clsx } from "clsx";
|
|
2
3
|
import { twMerge } from "tailwind-merge";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
|
|
5
5
|
//#region ../auth-ui/dist/chunk-5DLVHPZS-Bxj7snpZ.mjs
|
|
6
6
|
function cn(...inputs) {
|
|
@@ -36,7 +36,7 @@ function getViewByPath(viewPaths, path) {
|
|
|
36
36
|
for (const key in viewPaths) if (viewPaths[key] === path) return key;
|
|
37
37
|
}
|
|
38
38
|
function getPasswordSchema(passwordValidation, localization) {
|
|
39
|
-
let schema = z.string().min(1, { message: localization == null ? void 0 : localization.PASSWORD_REQUIRED });
|
|
39
|
+
let schema = z$1.string().min(1, { message: localization == null ? void 0 : localization.PASSWORD_REQUIRED });
|
|
40
40
|
if (passwordValidation == null ? void 0 : passwordValidation.minLength) schema = schema.min(passwordValidation.minLength, { message: localization == null ? void 0 : localization.PASSWORD_TOO_SHORT });
|
|
41
41
|
if (passwordValidation == null ? void 0 : passwordValidation.maxLength) schema = schema.max(passwordValidation.maxLength, { message: localization == null ? void 0 : localization.PASSWORD_TOO_LONG });
|
|
42
42
|
if (passwordValidation == null ? void 0 : passwordValidation.regex) schema = schema.regex(passwordValidation.regex, { message: localization == null ? void 0 : localization.INVALID_PASSWORD });
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SupportedBetterAuthClientPlugins } from "./adapter-core-
|
|
2
|
-
import { r as BetterAuthReactAdapterInstance } from "./better-auth-react-adapter-
|
|
3
|
-
import { r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance } from "./supabase-adapter-
|
|
1
|
+
import { r as SupportedBetterAuthClientPlugins } from "./adapter-core-D1HVvYeG.mjs";
|
|
2
|
+
import { r as BetterAuthReactAdapterInstance } from "./better-auth-react-adapter-C4kQ31os.mjs";
|
|
3
|
+
import { r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance } from "./supabase-adapter-BFja3Oys.mjs";
|
|
4
4
|
import { createAuthClient as createAuthClient$1 } from "better-auth/react";
|
|
5
5
|
import { createAuthClient as createAuthClient$2 } from "better-auth/client";
|
|
6
6
|
|
|
@@ -28,6 +28,12 @@ type NeonAuthAdapter = BetterAuthVanillaAdapterInstance | BetterAuthReactAdapter
|
|
|
28
28
|
interface NeonAuthConfig<T extends NeonAuthAdapter> {
|
|
29
29
|
/** The adapter builder to use. Defaults to BetterAuthVanillaAdapter() if not specified. */
|
|
30
30
|
adapter?: (url: string) => T;
|
|
31
|
+
/**
|
|
32
|
+
* When true, automatically uses an anonymous token when no user session exists.
|
|
33
|
+
* This enables RLS-based data access for users with the anonymous role.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
allowAnonymous?: boolean;
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* Resolves the public API type for an adapter.
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-
|
|
1
|
+
import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-NVDAeWHu.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/neon-auth.ts
|
|
4
4
|
/**
|
|
@@ -50,12 +50,13 @@ import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-CAqbpOC7.mjs";
|
|
|
50
50
|
*/
|
|
51
51
|
function createInternalNeonAuth(url, config) {
|
|
52
52
|
const adapter = (config?.adapter ?? BetterAuthVanillaAdapter())(url);
|
|
53
|
+
const allowAnonymous = config?.allowAnonymous ?? false;
|
|
53
54
|
if (!(typeof adapter.initialize === "function")) return {
|
|
54
|
-
getJWTToken: adapter.getJWTToken
|
|
55
|
+
getJWTToken: () => adapter.getJWTToken(allowAnonymous),
|
|
55
56
|
adapter: adapter.getBetterAuthInstance()
|
|
56
57
|
};
|
|
57
58
|
return {
|
|
58
|
-
getJWTToken: adapter.getJWTToken
|
|
59
|
+
getJWTToken: () => adapter.getJWTToken(allowAnonymous),
|
|
59
60
|
adapter
|
|
60
61
|
};
|
|
61
62
|
}
|
package/dist/next/index.d.mts
CHANGED
|
@@ -483,14 +483,14 @@ declare function createAuthClient(): {
|
|
|
483
483
|
admin: {
|
|
484
484
|
hasPermission: <FetchOptions extends better_auth0.ClientFetchOption<Partial<({
|
|
485
485
|
permission: {
|
|
486
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
487
|
-
readonly session?: ("
|
|
486
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
487
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
488
488
|
};
|
|
489
489
|
permissions?: never | undefined;
|
|
490
490
|
} | {
|
|
491
491
|
permissions: {
|
|
492
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
493
|
-
readonly session?: ("
|
|
492
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
493
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
494
494
|
};
|
|
495
495
|
permission?: never | undefined;
|
|
496
496
|
}) & {
|
|
@@ -498,14 +498,14 @@ declare function createAuthClient(): {
|
|
|
498
498
|
role?: "user" | "admin" | undefined;
|
|
499
499
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<(({
|
|
500
500
|
permission: {
|
|
501
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
502
|
-
readonly session?: ("
|
|
501
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
502
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
503
503
|
};
|
|
504
504
|
permissions?: never | undefined;
|
|
505
505
|
} | {
|
|
506
506
|
permissions: {
|
|
507
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
508
|
-
readonly session?: ("
|
|
507
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
508
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
509
509
|
};
|
|
510
510
|
permission?: never | undefined;
|
|
511
511
|
}) & {
|
|
@@ -1131,19 +1131,19 @@ declare function createAuthClient(): {
|
|
|
1131
1131
|
hasPermission: <FetchOptions extends better_auth0.ClientFetchOption<Partial<({
|
|
1132
1132
|
permission: {
|
|
1133
1133
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1134
|
-
readonly member?: ("
|
|
1134
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1135
1135
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1136
|
-
readonly team?: ("
|
|
1137
|
-
readonly ac?: ("
|
|
1136
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1137
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1138
1138
|
};
|
|
1139
1139
|
permissions?: never | undefined;
|
|
1140
1140
|
} | {
|
|
1141
1141
|
permissions: {
|
|
1142
1142
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1143
|
-
readonly member?: ("
|
|
1143
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1144
1144
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1145
|
-
readonly team?: ("
|
|
1146
|
-
readonly ac?: ("
|
|
1145
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1146
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1147
1147
|
};
|
|
1148
1148
|
permission?: never | undefined;
|
|
1149
1149
|
}) & {
|
|
@@ -1151,19 +1151,19 @@ declare function createAuthClient(): {
|
|
|
1151
1151
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<(({
|
|
1152
1152
|
permission: {
|
|
1153
1153
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1154
|
-
readonly member?: ("
|
|
1154
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1155
1155
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1156
|
-
readonly team?: ("
|
|
1157
|
-
readonly ac?: ("
|
|
1156
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1157
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1158
1158
|
};
|
|
1159
1159
|
permissions?: never | undefined;
|
|
1160
1160
|
} | {
|
|
1161
1161
|
permissions: {
|
|
1162
1162
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1163
|
-
readonly member?: ("
|
|
1163
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1164
1164
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1165
|
-
readonly team?: ("
|
|
1166
|
-
readonly ac?: ("
|
|
1165
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1166
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1167
1167
|
};
|
|
1168
1168
|
permission?: never | undefined;
|
|
1169
1169
|
}) & {
|
|
@@ -1870,6 +1870,21 @@ declare function createAuthClient(): {
|
|
|
1870
1870
|
code?: string | undefined;
|
|
1871
1871
|
message?: string | undefined;
|
|
1872
1872
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1873
|
+
} & {
|
|
1874
|
+
getAnonymousToken: (fetchOptions?: any) => Promise<{
|
|
1875
|
+
data: {
|
|
1876
|
+
token: string;
|
|
1877
|
+
expires_at: number;
|
|
1878
|
+
};
|
|
1879
|
+
error: null;
|
|
1880
|
+
} | {
|
|
1881
|
+
data: null;
|
|
1882
|
+
error: {
|
|
1883
|
+
message?: string | undefined;
|
|
1884
|
+
status: number;
|
|
1885
|
+
statusText: string;
|
|
1886
|
+
};
|
|
1887
|
+
}>;
|
|
1873
1888
|
} & {
|
|
1874
1889
|
jwks: (fetchOptions?: any) => Promise<{
|
|
1875
1890
|
data: null;
|
|
@@ -1886,14 +1901,14 @@ declare function createAuthClient(): {
|
|
|
1886
1901
|
admin: {
|
|
1887
1902
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
1888
1903
|
permission: {
|
|
1889
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1890
|
-
readonly session?: ("
|
|
1904
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1905
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1891
1906
|
};
|
|
1892
1907
|
permissions?: never | undefined;
|
|
1893
1908
|
} | {
|
|
1894
1909
|
permissions: {
|
|
1895
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1896
|
-
readonly session?: ("
|
|
1910
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1911
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1897
1912
|
};
|
|
1898
1913
|
permission?: never | undefined;
|
|
1899
1914
|
}) & {
|
|
@@ -1977,19 +1992,19 @@ declare function createAuthClient(): {
|
|
|
1977
1992
|
checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
|
|
1978
1993
|
permission: {
|
|
1979
1994
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1980
|
-
readonly member?: ("
|
|
1995
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1981
1996
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1982
|
-
readonly team?: ("
|
|
1983
|
-
readonly ac?: ("
|
|
1997
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1998
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1984
1999
|
};
|
|
1985
2000
|
permissions?: never | undefined;
|
|
1986
2001
|
} | {
|
|
1987
2002
|
permissions: {
|
|
1988
2003
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1989
|
-
readonly member?: ("
|
|
2004
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1990
2005
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1991
|
-
readonly team?: ("
|
|
1992
|
-
readonly ac?: ("
|
|
2006
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
2007
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1993
2008
|
};
|
|
1994
2009
|
permission?: never | undefined;
|
|
1995
2010
|
}) & {
|
package/dist/next/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
2
|
-
import { t as createAuthClient$1 } from "../neon-auth-
|
|
1
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-COSlFmvp.mjs";
|
|
2
|
+
import { t as createAuthClient$1 } from "../neon-auth-BHWfv-bR.mjs";
|
|
3
3
|
import { parseCookies, parseSetCookieHeader } from "better-auth/cookies";
|
|
4
4
|
import { NextRequest, NextResponse } from "next/server";
|
|
5
5
|
import { cookies, headers } from "next/headers";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../adapter-core-
|
|
2
|
-
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-
|
|
1
|
+
import "../../adapter-core-D1HVvYeG.mjs";
|
|
2
|
+
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-C4kQ31os.mjs";
|
|
3
3
|
import "../../index-DCQ5Y2ED.mjs";
|
|
4
4
|
export { BetterAuthReactAdapter, BetterAuthReactAdapterBuilder, BetterAuthReactAdapterInstance, BetterAuthReactAdapterOptions };
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
1
|
+
import "../adapter-core-D1HVvYeG.mjs";
|
|
2
|
+
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-C4kQ31os.mjs";
|
|
3
3
|
import "../index-DCQ5Y2ED.mjs";
|
|
4
4
|
import { $ as MagicLinkFormProps, $t as SignUpFormProps, A as ChangePasswordCard, An as UserViewClassNames, At as PasswordInput, B as DropboxIcon, Bn as socialProviders, Bt as ResetPasswordFormProps, C as AuthUIProviderProps, Cn as UserAvatarClassNames, Ct as OrganizationViewPageProps, D as AuthViewPaths, Dn as UserButtonProps, Dt as OrganizationsCard, E as AuthViewPath, En as UserButtonClassNames, Et as OrganizationViewProps, F as CreateTeamDialogProps, Fn as accountViewPaths, Ft as RecoverAccountFormProps, G as GitLabIcon, Gt as SettingsCard, H as ForgotPasswordForm, Hn as useAuthenticate, Ht as SecuritySettingsCards, I as DeleteAccountCard, In as authLocalization, It as RedditIcon, J as InputFieldSkeleton, Jt as SettingsCellSkeleton, K as GoogleIcon, Kt as SettingsCardClassNames, L as DeleteAccountCardProps, Ln as authViewPaths, Lt as RedirectToSignIn, M as CreateOrganizationDialog, Mn as VKIcon, Mt as ProvidersCard, N as CreateOrganizationDialogProps, Nn as XIcon, Nt as ProvidersCardProps, O as AuthViewProps, On as UserInvitationsCard, Ot as PasskeysCard, P as CreateTeamDialog, Pn as ZoomIcon, Pt as RecoverAccountForm, Q as MagicLinkForm, Qt as SignUpForm, R as DeleteOrganizationCard, Rn as getViewByPath, Rt as RedirectToSignUp, S as AuthUIProvider, Sn as UserAvatar, St as OrganizationViewClassNames, T as AuthViewClassNames, Tn as UserButton, Tt as OrganizationViewPaths, U as ForgotPasswordFormProps, Un as useCurrentOrganization, Ut as SessionsCard, V as FacebookIcon, Vn as useAuthData, Vt as RobloxIcon, W as GitHubIcon, Wn as useTheme, Wt as SessionsCardProps, X as LinearIcon, Xt as SignInFormProps, Y as KickIcon, Yt as SignInForm, Z as LinkedInIcon, Zt as SignOut, _ as AuthLoading, _n as UpdateAvatarCardProps, _t as OrganizationSlugCardProps, a as AccountViewPath, an as TeamCell, at as OrganizationInvitationsCard, b as AuthUIContext, bn as UpdateNameCard, bt as OrganizationSwitcherProps, c as AccountsCard, cn as TeamOptionsContext, ct as OrganizationLogoCardProps, d as AppleIcon, dn as TwitchIcon, dt as OrganizationMembersCard, en as SignedIn, et as MicrosoftIcon, f as AuthCallback, fn as TwoFactorCard, ft as OrganizationNameCard, g as AuthHooks, gn as UpdateAvatarCard, gt as OrganizationSlugCard, h as AuthFormProps, hn as TwoFactorFormProps, ht as OrganizationSettingsCardsProps, i as AccountView, in as Team, it as OrganizationCellView, j as ChangePasswordCardProps, jn as UserViewProps, jt as Provider, k as ChangeEmailCard, kn as UserView, kt as PasskeysCardProps, l as AccountsCardProps, ln as TeamsCard, lt as OrganizationLogoClassNames, m as AuthFormClassNames, mn as TwoFactorForm, mt as OrganizationSettingsCards, n as AcceptInvitationCardProps, nn as SlackIcon, nt as NeonAuthUIProviderProps, o as AccountViewPaths, on as TeamCellProps, ot as OrganizationLogo, p as AuthForm, pn as TwoFactorCardProps, pt as OrganizationNameCardProps, q as HuggingFaceIcon, qt as SettingsCardProps, r as AccountSettingsCards, rn as SpotifyIcon, rt as NotionIcon, s as AccountViewProps, sn as TeamOptions, st as OrganizationLogoCard, t as AcceptInvitationCard, tn as SignedOut, tt as NeonAuthUIProvider, u as ApiKeysCardProps, un as TikTokIcon, ut as OrganizationLogoProps, v as AuthLocalization, vn as UpdateFieldCard, vt as OrganizationSwitcher, w as AuthView, wn as UserAvatarProps, wt as OrganizationViewPath, x as AuthUIContextType, xn as UpdateUsernameCard, xt as OrganizationView, y as AuthMutators, yn as UpdateFieldCardProps, yt as OrganizationSwitcherClassNames, z as DiscordIcon, zn as organizationViewPaths, zt as ResetPasswordForm } from "../index-BXlAjlSt.mjs";
|
|
5
5
|
export { AcceptInvitationCard, AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, AccountViewPaths, AccountViewProps, AccountsCard, AccountsCardProps, ApiKeysCardProps, AppleIcon, AuthCallback, AuthForm, AuthFormClassNames, AuthFormProps, AuthHooks, AuthLoading, AuthLocalization, AuthMutators, AuthUIContext, AuthUIContextType, AuthUIProvider, AuthUIProviderProps, AuthView, AuthViewClassNames, AuthViewPath, AuthViewPaths, AuthViewProps, BetterAuthReactAdapter, BetterAuthReactAdapterBuilder, BetterAuthReactAdapterInstance, BetterAuthReactAdapterOptions, ChangeEmailCard, ChangePasswordCard, ChangePasswordCardProps, CreateOrganizationDialog, CreateOrganizationDialogProps, CreateTeamDialog, CreateTeamDialogProps, DeleteAccountCard, DeleteAccountCardProps, DeleteOrganizationCard, DiscordIcon, DropboxIcon, FacebookIcon, ForgotPasswordForm, ForgotPasswordFormProps, GitHubIcon, GitLabIcon, GoogleIcon, HuggingFaceIcon, InputFieldSkeleton, KickIcon, LinearIcon, LinkedInIcon, MagicLinkForm, MagicLinkFormProps, MicrosoftIcon, NeonAuthUIProvider, NeonAuthUIProviderProps, NotionIcon, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, OrganizationLogoCardProps, OrganizationLogoClassNames, OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, OrganizationNameCardProps, OrganizationSettingsCards, OrganizationSettingsCardsProps, OrganizationSlugCard, OrganizationSlugCardProps, OrganizationSwitcher, OrganizationSwitcherClassNames, OrganizationSwitcherProps, OrganizationView, OrganizationViewClassNames, OrganizationViewPageProps, OrganizationViewPath, OrganizationViewPaths, OrganizationViewProps, OrganizationsCard, PasskeysCard, PasskeysCardProps, PasswordInput, Provider, ProvidersCard, ProvidersCardProps, RecoverAccountForm, RecoverAccountFormProps, RedditIcon, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, ResetPasswordFormProps, RobloxIcon, SecuritySettingsCards, SessionsCard, SessionsCardProps, SettingsCard, SettingsCardClassNames, SettingsCardProps, SettingsCellSkeleton, SignInForm, SignInFormProps, SignOut, SignUpForm, SignUpFormProps, SignedIn, SignedOut, SlackIcon, SpotifyIcon, Team, TeamCell, TeamCellProps, TeamOptions, TeamOptionsContext, TeamsCard, TikTokIcon, TwitchIcon, TwoFactorCard, TwoFactorCardProps, TwoFactorForm, TwoFactorFormProps, UpdateAvatarCard, UpdateAvatarCardProps, UpdateFieldCard, UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, UserAvatarClassNames, UserAvatarProps, UserButton, UserButtonClassNames, UserButtonProps, UserInvitationsCard, UserView, UserViewClassNames, UserViewProps, VKIcon, XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
2
|
-
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../chunk-5DLVHPZS-Bxj7snpZ-
|
|
3
|
-
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../ui-
|
|
1
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-COSlFmvp.mjs";
|
|
2
|
+
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
3
|
+
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../ui-C1IRQzLY.mjs";
|
|
4
4
|
|
|
5
5
|
export { AcceptInvitationCard, AccountSettingsCards, AccountView, AccountsCard, AppleIcon, AuthCallback, AuthForm, AuthLoading, AuthUIContext, AuthUIProvider, AuthView, BetterAuthReactAdapter, ChangeEmailCard, ChangePasswordCard, CreateOrganizationDialog, CreateTeamDialog, DeleteAccountCard, DeleteOrganizationCard, DiscordIcon, DropboxIcon, FacebookIcon, ForgotPasswordForm, GitHubIcon, GitLabIcon, GoogleIcon, HuggingFaceIcon, InputFieldSkeleton, KickIcon, LinearIcon, LinkedInIcon, MagicLinkForm, MicrosoftIcon, NeonAuthUIProvider, NotionIcon, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, OrganizationMembersCard, OrganizationNameCard, OrganizationSettingsCards, OrganizationSlugCard, OrganizationSwitcher, OrganizationView, OrganizationsCard, PasskeysCard, PasswordInput, ProvidersCard, RecoverAccountForm, RedditIcon, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, RobloxIcon, SecuritySettingsCards, SessionsCard, SettingsCard, SettingsCellSkeleton, SignInForm, SignOut, SignUpForm, SignedIn, SignedOut, SlackIcon, SpotifyIcon, TeamCell, TeamsCard, TikTokIcon, TwitchIcon, TwoFactorCard, TwoFactorForm, UpdateAvatarCard, UpdateFieldCard, UpdateNameCard, UpdateUsernameCard, UserAvatar, UserButton, UserInvitationsCard, UserView, VKIcon, XIcon3 as XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
package/dist/react/ui/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-
|
|
3
|
-
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../../ui-
|
|
2
|
+
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
3
|
+
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../../ui-C1IRQzLY.mjs";
|
|
4
4
|
|
|
5
5
|
export { AcceptInvitationCard, AccountSettingsCards, AccountView, AccountsCard, AppleIcon, AuthCallback, AuthForm, AuthLoading, AuthUIContext, AuthUIProvider, AuthView, ChangeEmailCard, ChangePasswordCard, CreateOrganizationDialog, CreateTeamDialog, DeleteAccountCard, DeleteOrganizationCard, DiscordIcon, DropboxIcon, FacebookIcon, ForgotPasswordForm, GitHubIcon, GitLabIcon, GoogleIcon, HuggingFaceIcon, InputFieldSkeleton, KickIcon, LinearIcon, LinkedInIcon, MagicLinkForm, MicrosoftIcon, NeonAuthUIProvider, NotionIcon, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, OrganizationMembersCard, OrganizationNameCard, OrganizationSettingsCards, OrganizationSlugCard, OrganizationSwitcher, OrganizationView, OrganizationsCard, PasskeysCard, PasswordInput, ProvidersCard, RecoverAccountForm, RedditIcon, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, RobloxIcon, SecuritySettingsCards, SessionsCard, SettingsCard, SettingsCellSkeleton, SignInForm, SignOut, SignUpForm, SignedIn, SignedOut, SlackIcon, SpotifyIcon, TeamCell, TeamsCard, TikTokIcon, TwitchIcon, TwoFactorCard, TwoFactorForm, UpdateAvatarCard, UpdateFieldCard, UpdateNameCard, UpdateUsernameCard, UserAvatar, UserButton, UserInvitationsCard, UserView, VKIcon, XIcon3 as XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
package/dist/react/ui/server.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-
|
|
1
|
+
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
2
2
|
|
|
3
3
|
export { accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths };
|