@neondatabase/auth 0.3.0-beta → 0.4.0-beta
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 +22 -7
- package/codemods/migrate-auth-ui-imports.mjs +439 -0
- package/dist/{adapter-core-B9uDhoYq.d.mts → adapter-core-BWM7cWOp.d.mts} +311 -176
- package/dist/{adapter-core-D00qcqMo.mjs → adapter-core-Bt4M5I2g.mjs} +21 -11
- package/dist/auth-interface-Clz-oWq1.d.mts +8 -0
- package/dist/better-auth-helpers-Bkezghej.mjs +541 -0
- package/dist/{better-auth-react-adapter-BO4jLN4H.d.mts → better-auth-react-adapter-BDxJ65mF.d.mts} +384 -297
- package/dist/{better-auth-react-adapter-Xdj-69i9.mjs → better-auth-react-adapter-aMv8WeDb.mjs} +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -3
- package/dist/{neon-auth-DBOB8sXF.mjs → neon-auth-CS4FpK2X.mjs} +1 -1
- package/dist/next/index.d.mts +144 -56
- package/dist/next/index.mjs +5 -4
- package/dist/next/server/index.d.mts +25 -3
- package/dist/next/server/index.mjs +60 -30
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.mjs +2 -2
- package/dist/react/ui/index.d.mts +1 -1
- package/dist/{supabase-adapter-CSDRL1ZU.d.mts → supabase-adapter-BGwV0Vu2.d.mts} +381 -294
- package/dist/{supabase-adapter-CIBMebXB.mjs → supabase-adapter-DBt4LJJd.mjs} +3 -514
- package/dist/types/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.d.mts +4 -3
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +4 -3
- package/dist/vanilla/index.mjs +2 -2
- package/llms.txt +2 -2
- package/package.json +6 -2
- package/dist/constants-Cupc_bln.mjs +0 -28
- /package/dist/{index-CPnFzULh.d.mts → index-B0Pd4HOH.d.mts} +0 -0
- /package/dist/{index-UW23fDSn.d.mts → index-CzpoWrv9.d.mts} +0 -0
- /package/dist/{index-B_Q0Tp1D.d.mts → index-DHryUj7e.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as isAuthApiError, l as isAuthError, m as NEON_AUTH_SESSION_VERIFIER_PARAM_NAME, o as AuthApiError, r as normalizeBetterAuthError, s as AuthError } from "../../better-auth-helpers-Bkezghej.mjs";
|
|
2
2
|
import { SignJWT, jwtVerify } from "jose";
|
|
3
3
|
import { parseCookies, parseSetCookieHeader } from "better-auth/cookies";
|
|
4
4
|
import { cookies, headers } from "next/headers";
|
|
@@ -54,6 +54,10 @@ const API_ENDPOINTS = {
|
|
|
54
54
|
emailOtp: {
|
|
55
55
|
path: "sign-in/email-otp",
|
|
56
56
|
method: "POST"
|
|
57
|
+
},
|
|
58
|
+
magicLink: {
|
|
59
|
+
path: "sign-in/magic-link",
|
|
60
|
+
method: "POST"
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
signUp: { email: {
|
|
@@ -273,7 +277,11 @@ const API_ENDPOINTS = {
|
|
|
273
277
|
path: "email-otp/passcode",
|
|
274
278
|
method: "POST"
|
|
275
279
|
}
|
|
276
|
-
}
|
|
280
|
+
},
|
|
281
|
+
magicLink: { verify: {
|
|
282
|
+
path: "magic-link/verify",
|
|
283
|
+
method: "GET"
|
|
284
|
+
} }
|
|
277
285
|
};
|
|
278
286
|
|
|
279
287
|
//#endregion
|
|
@@ -558,7 +566,7 @@ async function mintSessionDataCookie(sessionTokenCookie, baseUrl, cookieConfig)
|
|
|
558
566
|
domain: cookieConfig.domain,
|
|
559
567
|
httpOnly: true,
|
|
560
568
|
secure: true,
|
|
561
|
-
sameSite: "
|
|
569
|
+
sameSite: cookieConfig.sameSite ?? "strict",
|
|
562
570
|
maxAge
|
|
563
571
|
});
|
|
564
572
|
} catch (error) {
|
|
@@ -593,7 +601,7 @@ async function mintSessionDataFromResponse(responseHeaders, baseUrl, cookieConfi
|
|
|
593
601
|
domain: cookieConfig.domain,
|
|
594
602
|
httpOnly: true,
|
|
595
603
|
secure: true,
|
|
596
|
-
sameSite: "
|
|
604
|
+
sameSite: cookieConfig.sameSite ?? "strict",
|
|
597
605
|
maxAge: 0
|
|
598
606
|
});
|
|
599
607
|
return await mintSessionDataCookie(sessionTokenCookie, baseUrl, cookieConfig);
|
|
@@ -616,7 +624,8 @@ async function mintSessionDataFromToken(sessionTokenCookie, baseUrl, cookieConfi
|
|
|
616
624
|
//#endregion
|
|
617
625
|
//#region src/server/client-factory.ts
|
|
618
626
|
function createAuthServerInternal(config) {
|
|
619
|
-
const { baseUrl, context: getContext, cookieSecret, sessionDataTtl, domain } = config;
|
|
627
|
+
const { baseUrl, context: getContext, cookieSecret, sessionDataTtl, domain, sameSite } = config;
|
|
628
|
+
const effectiveSameSite = sameSite ?? "strict";
|
|
620
629
|
const fetchWithAuth = async (path, method, args) => {
|
|
621
630
|
const ctx = await getContext();
|
|
622
631
|
const cookies$1 = await ctx.getCookies();
|
|
@@ -652,7 +661,7 @@ function createAuthServerInternal(config) {
|
|
|
652
661
|
...cookie,
|
|
653
662
|
domain,
|
|
654
663
|
partitioned: void 0,
|
|
655
|
-
sameSite:
|
|
664
|
+
sameSite: effectiveSameSite
|
|
656
665
|
};
|
|
657
666
|
await ctx.setCookie(cookie.name, cookie.value, cookieOptions);
|
|
658
667
|
}
|
|
@@ -661,7 +670,8 @@ function createAuthServerInternal(config) {
|
|
|
661
670
|
const sessionDataCookie = await mintSessionDataFromResponse(response.headers, baseUrl, {
|
|
662
671
|
secret: cookieSecret,
|
|
663
672
|
sessionDataTtl,
|
|
664
|
-
domain
|
|
673
|
+
domain,
|
|
674
|
+
sameSite
|
|
665
675
|
});
|
|
666
676
|
if (sessionDataCookie) {
|
|
667
677
|
const [parsedSessionData] = parseSetCookies(sessionDataCookie);
|
|
@@ -672,14 +682,24 @@ function createAuthServerInternal(config) {
|
|
|
672
682
|
}
|
|
673
683
|
}
|
|
674
684
|
const responseData = await response.json().catch(() => null);
|
|
675
|
-
if (!response.ok)
|
|
676
|
-
|
|
677
|
-
error: {
|
|
678
|
-
message: responseData?.message || response.statusText,
|
|
685
|
+
if (!response.ok) {
|
|
686
|
+
const normalized = normalizeBetterAuthError({
|
|
679
687
|
status: response.status,
|
|
680
|
-
statusText: response.statusText
|
|
681
|
-
|
|
682
|
-
|
|
688
|
+
statusText: response.statusText,
|
|
689
|
+
message: responseData?.message || response.statusText,
|
|
690
|
+
code: responseData?.code,
|
|
691
|
+
body: responseData
|
|
692
|
+
});
|
|
693
|
+
return {
|
|
694
|
+
data: null,
|
|
695
|
+
error: {
|
|
696
|
+
message: normalized.message,
|
|
697
|
+
status: normalized.status ?? response.status,
|
|
698
|
+
statusText: response.statusText,
|
|
699
|
+
code: normalized.code
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
}
|
|
683
703
|
return {
|
|
684
704
|
data: responseData,
|
|
685
705
|
error: null
|
|
@@ -876,7 +896,7 @@ const RESPONSE_HEADERS_ALLOWLIST = [
|
|
|
876
896
|
* @returns New Response with proxied headers and session data cookie
|
|
877
897
|
*/
|
|
878
898
|
const handleAuthResponse = async (response, baseUrl, cookieConfig) => {
|
|
879
|
-
const responseHeaders = prepareResponseHeaders(response, cookieConfig
|
|
899
|
+
const responseHeaders = prepareResponseHeaders(response, cookieConfig);
|
|
880
900
|
const sessionDataCookie = await mintSessionDataFromResponse(response.headers, baseUrl, cookieConfig);
|
|
881
901
|
if (sessionDataCookie) responseHeaders.append("Set-Cookie", sessionDataCookie);
|
|
882
902
|
return new Response(response.body, {
|
|
@@ -885,15 +905,17 @@ const handleAuthResponse = async (response, baseUrl, cookieConfig) => {
|
|
|
885
905
|
headers: responseHeaders
|
|
886
906
|
});
|
|
887
907
|
};
|
|
888
|
-
const prepareResponseHeaders = (response,
|
|
908
|
+
const prepareResponseHeaders = (response, cookieConfig) => {
|
|
889
909
|
const headers$1 = new Headers();
|
|
910
|
+
const effectiveSameSite = cookieConfig.sameSite ?? "strict";
|
|
911
|
+
const { domain } = cookieConfig;
|
|
890
912
|
for (const header of RESPONSE_HEADERS_ALLOWLIST) if (header === "set-cookie") {
|
|
891
913
|
const cookies$1 = response.headers.getSetCookie();
|
|
892
914
|
for (const cookieHeader of cookies$1) {
|
|
893
915
|
const parsedCookies = parseSetCookies(cookieHeader);
|
|
894
916
|
for (const parsedCookie of parsedCookies) {
|
|
895
917
|
parsedCookie.partitioned = void 0;
|
|
896
|
-
parsedCookie.sameSite =
|
|
918
|
+
parsedCookie.sameSite = effectiveSameSite;
|
|
897
919
|
if (domain) parsedCookie.domain = domain;
|
|
898
920
|
headers$1.append("Set-Cookie", serializeSetCookie(parsedCookie));
|
|
899
921
|
}
|
|
@@ -992,19 +1014,21 @@ function extractSessionTokenCookie(cookieHeader) {
|
|
|
992
1014
|
* @returns Standard Web API Response
|
|
993
1015
|
*/
|
|
994
1016
|
async function handleAuthProxyRequest(config) {
|
|
995
|
-
const { request, path, baseUrl, cookieSecret, sessionDataTtl, domain } = config;
|
|
1017
|
+
const { request, path, baseUrl, cookieSecret, sessionDataTtl, domain, sameSite } = config;
|
|
996
1018
|
if (path === API_ENDPOINTS.getSession.path && request.method === API_ENDPOINTS.getSession.method) {
|
|
997
1019
|
const cachedResponse = await trySessionCache(request, baseUrl, {
|
|
998
1020
|
secret: cookieSecret,
|
|
999
1021
|
sessionDataTtl,
|
|
1000
|
-
domain
|
|
1022
|
+
domain,
|
|
1023
|
+
sameSite
|
|
1001
1024
|
});
|
|
1002
1025
|
if (cachedResponse) return cachedResponse;
|
|
1003
1026
|
}
|
|
1004
1027
|
return await handleAuthResponse(await handleAuthRequest(baseUrl, request, path), baseUrl, {
|
|
1005
1028
|
secret: cookieSecret,
|
|
1006
1029
|
sessionDataTtl,
|
|
1007
|
-
domain
|
|
1030
|
+
domain,
|
|
1031
|
+
sameSite
|
|
1008
1032
|
});
|
|
1009
1033
|
}
|
|
1010
1034
|
|
|
@@ -1047,7 +1071,8 @@ function authApiHandler(config) {
|
|
|
1047
1071
|
baseUrl,
|
|
1048
1072
|
cookieSecret: cookies$1.secret,
|
|
1049
1073
|
sessionDataTtl: cookies$1.sessionDataTtl,
|
|
1050
|
-
domain: cookies$1.domain
|
|
1074
|
+
domain: cookies$1.domain,
|
|
1075
|
+
sameSite: cookies$1.sameSite
|
|
1051
1076
|
});
|
|
1052
1077
|
};
|
|
1053
1078
|
return {
|
|
@@ -1086,7 +1111,7 @@ function needsSessionVerification(request) {
|
|
|
1086
1111
|
* @param domain - Optional cookie domain
|
|
1087
1112
|
* @returns Exchange result with redirect URL and cookies, or null if exchange not needed/failed
|
|
1088
1113
|
*/
|
|
1089
|
-
async function exchangeOAuthToken(request, baseUrl, cookieSecret, sessionDataTtl, domain) {
|
|
1114
|
+
async function exchangeOAuthToken(request, baseUrl, cookieSecret, sessionDataTtl, domain, sameSite) {
|
|
1090
1115
|
const url = new URL(request.url);
|
|
1091
1116
|
const verifier = url.searchParams.get(NEON_AUTH_SESSION_VERIFIER_PARAM_NAME);
|
|
1092
1117
|
const cookieHeader = request.headers.get("cookie");
|
|
@@ -1099,7 +1124,8 @@ async function exchangeOAuthToken(request, baseUrl, cookieSecret, sessionDataTtl
|
|
|
1099
1124
|
}), "get-session"), baseUrl, {
|
|
1100
1125
|
secret: cookieSecret,
|
|
1101
1126
|
sessionDataTtl,
|
|
1102
|
-
domain
|
|
1127
|
+
domain,
|
|
1128
|
+
sameSite
|
|
1103
1129
|
});
|
|
1104
1130
|
if (response.ok) {
|
|
1105
1131
|
const setCookieHeaders = response.headers.getSetCookie();
|
|
@@ -1174,10 +1200,11 @@ function checkSessionRequired(pathname, skipRoutes, loginUrl, session) {
|
|
|
1174
1200
|
* @returns Decision object indicating what action to take
|
|
1175
1201
|
*/
|
|
1176
1202
|
async function processAuthMiddleware(config) {
|
|
1177
|
-
const { request, pathname, skipRoutes, loginUrl, baseUrl, cookieSecret, sessionDataTtl, domain } = config;
|
|
1203
|
+
const { request, pathname, skipRoutes, loginUrl, baseUrl, cookieSecret, sessionDataTtl, domain, sameSite } = config;
|
|
1204
|
+
const effectiveSameSite = sameSite ?? "strict";
|
|
1178
1205
|
if (pathname.startsWith(loginUrl)) return { action: "allow" };
|
|
1179
1206
|
if (needsSessionVerification(request)) {
|
|
1180
|
-
const exchangeResult = await exchangeOAuthToken(request, baseUrl, cookieSecret, sessionDataTtl, domain);
|
|
1207
|
+
const exchangeResult = await exchangeOAuthToken(request, baseUrl, cookieSecret, sessionDataTtl, domain, sameSite);
|
|
1181
1208
|
if (exchangeResult !== null) return {
|
|
1182
1209
|
action: "redirect_oauth",
|
|
1183
1210
|
redirectUrl: exchangeResult.redirectUrl,
|
|
@@ -1199,7 +1226,8 @@ async function processAuthMiddleware(config) {
|
|
|
1199
1226
|
baseUrl,
|
|
1200
1227
|
cookieSecret,
|
|
1201
1228
|
sessionDataTtl,
|
|
1202
|
-
domain
|
|
1229
|
+
domain,
|
|
1230
|
+
sameSite
|
|
1203
1231
|
});
|
|
1204
1232
|
if (sessionResponse.ok) {
|
|
1205
1233
|
const data = await sessionResponse.json().catch(() => null);
|
|
@@ -1220,7 +1248,7 @@ async function processAuthMiddleware(config) {
|
|
|
1220
1248
|
domain,
|
|
1221
1249
|
httpOnly: true,
|
|
1222
1250
|
secure: true,
|
|
1223
|
-
sameSite:
|
|
1251
|
+
sameSite: effectiveSameSite,
|
|
1224
1252
|
maxAge: 0
|
|
1225
1253
|
}));
|
|
1226
1254
|
return {
|
|
@@ -1279,7 +1307,8 @@ function neonAuthMiddleware(config) {
|
|
|
1279
1307
|
baseUrl,
|
|
1280
1308
|
cookieSecret: cookies$1.secret,
|
|
1281
1309
|
sessionDataTtl: cookies$1.sessionDataTtl,
|
|
1282
|
-
domain: cookies$1.domain
|
|
1310
|
+
domain: cookies$1.domain,
|
|
1311
|
+
sameSite: cookies$1.sameSite
|
|
1283
1312
|
});
|
|
1284
1313
|
switch (result.action) {
|
|
1285
1314
|
case "allow": {
|
|
@@ -1407,7 +1436,8 @@ function createNeonAuth(config) {
|
|
|
1407
1436
|
context: createNextRequestContext,
|
|
1408
1437
|
cookieSecret: cookies$1.secret,
|
|
1409
1438
|
sessionDataTtl: cookies$1.sessionDataTtl,
|
|
1410
|
-
domain: cookies$1.domain
|
|
1439
|
+
domain: cookies$1.domain,
|
|
1440
|
+
sameSite: cookies$1.sameSite
|
|
1411
1441
|
});
|
|
1412
1442
|
/**
|
|
1413
1443
|
* Creates API route handlers for Next.js
|
|
@@ -1458,4 +1488,4 @@ function createNeonAuth(config) {
|
|
|
1458
1488
|
}
|
|
1459
1489
|
|
|
1460
1490
|
//#endregion
|
|
1461
|
-
export { createNeonAuth };
|
|
1491
|
+
export { AuthApiError, AuthError, createNeonAuth, isAuthApiError, isAuthError };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../adapter-core-
|
|
2
|
-
import { n as BetterAuthReactAdapterInstance, r as BetterAuthReactAdapterOptions, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-
|
|
3
|
-
import "../../index-
|
|
1
|
+
import "../../adapter-core-BWM7cWOp.mjs";
|
|
2
|
+
import { n as BetterAuthReactAdapterInstance, r as BetterAuthReactAdapterOptions, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-BDxJ65mF.mjs";
|
|
3
|
+
import "../../index-B0Pd4HOH.mjs";
|
|
4
4
|
export { BetterAuthReactAdapter, BetterAuthReactAdapterInstance, BetterAuthReactAdapterOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../adapter-core-
|
|
2
|
-
import { t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-
|
|
1
|
+
import "../../adapter-core-Bt4M5I2g.mjs";
|
|
2
|
+
import { t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-aMv8WeDb.mjs";
|
|
3
3
|
|
|
4
4
|
export { BetterAuthReactAdapter };
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
import { n as BetterAuthReactAdapterInstance, r as BetterAuthReactAdapterOptions, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
3
|
-
import "../index-
|
|
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-
|
|
1
|
+
import "../adapter-core-BWM7cWOp.mjs";
|
|
2
|
+
import { n as BetterAuthReactAdapterInstance, r as BetterAuthReactAdapterOptions, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-BDxJ65mF.mjs";
|
|
3
|
+
import "../index-B0Pd4HOH.mjs";
|
|
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-DHryUj7e.mjs";
|
|
5
5
|
import { useStore } from "better-auth/react";
|
|
6
6
|
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, 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, useStore, useTheme };
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
1
|
+
import "../adapter-core-Bt4M5I2g.mjs";
|
|
2
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-aMv8WeDb.mjs";
|
|
3
3
|
import { $ as RobloxIcon, A as MagicLinkForm, At as authViewPaths, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon, F as OrganizationInvitationsCard, Ft as useAuthenticate, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, It as useCurrentOrganization, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, Lt as useTheme, M as NeonAuthUIProvider, Mt as organizationViewPaths, N as NotionIcon, Nt as socialProviders, O as LinearIcon, Ot as accountViewPaths, P as OrganizationCellView, Pt as useAuthData, 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 getViewByPath, k as LinkedInIcon, kt as authLocalization, 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-CnVnqGns.mjs";
|
|
4
4
|
import { useStore } from "better-auth/react";
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-DHryUj7e.mjs";
|
|
2
2
|
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, 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 };
|