@neondatabase/auth 0.1.0-beta.1
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 +260 -0
- package/dist/adapter-core-BDOw-gBC.mjs +494 -0
- package/dist/adapter-core-C12KoaiU.d.mts +2247 -0
- package/dist/adapters-CivF9wql.mjs +1 -0
- package/dist/adapters-Dkx0zoMR.mjs +1 -0
- package/dist/better-auth-react-adapter-BXL48HIU.d.mts +722 -0
- package/dist/better-auth-react-adapter-FnBHa2nr.mjs +49 -0
- package/dist/index-C-svZlpj.d.mts +1 -0
- package/dist/index-DuDD6cIY.d.mts +3 -0
- package/dist/index-UW23fDSn.d.mts +1 -0
- package/dist/index.d.mts +99 -0
- package/dist/index.mjs +3 -0
- package/dist/neon-auth-C9XTFffv.mjs +67 -0
- package/dist/next/index.d.mts +2363 -0
- package/dist/next/index.mjs +179 -0
- package/dist/react/adapters/index.d.mts +4 -0
- package/dist/react/adapters/index.mjs +3 -0
- package/dist/react/index.d.mts +5 -0
- package/dist/react/index.mjs +93 -0
- package/dist/react/ui/index.d.mts +3 -0
- package/dist/react/ui/index.mjs +93 -0
- package/dist/react/ui/server.d.mts +1 -0
- package/dist/react/ui/server.mjs +3 -0
- package/dist/supabase-adapter-crabDnl2.d.mts +128 -0
- package/dist/supabase-adapter-ggmqWgPe.mjs +1623 -0
- package/dist/ui/css.css +2 -0
- package/dist/ui/css.d.ts +1 -0
- package/dist/ui/tailwind.css +6 -0
- package/dist/ui/theme.css +125 -0
- package/dist/ui-CNFBSekF.mjs +401 -0
- package/dist/vanilla/adapters/index.d.mts +4 -0
- package/dist/vanilla/adapters/index.mjs +3 -0
- package/dist/vanilla/index.d.mts +4 -0
- package/dist/vanilla/index.mjs +3 -0
- package/package.json +123 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-FnBHa2nr.mjs";
|
|
2
|
+
import { t as createAuthClient$1 } from "../neon-auth-C9XTFffv.mjs";
|
|
3
|
+
import { NextRequest, NextResponse } from "next/server";
|
|
4
|
+
|
|
5
|
+
//#region src/next/constants.ts
|
|
6
|
+
const NEON_AUTH_COOKIE_PREFIX = "__Secure-neon-auth";
|
|
7
|
+
const NEON_AUTH_SESSION_COOKIE_NAME = `${NEON_AUTH_COOKIE_PREFIX}.session_token`;
|
|
8
|
+
const NEON_AUTH_SESSION_CHALLENGE_COOKIE_NAME = `${NEON_AUTH_COOKIE_PREFIX}.session_challange`;
|
|
9
|
+
/** Name of the session verifier parameter in the URL, used for the OAUTH flow */
|
|
10
|
+
const NEON_AUTH_SESSION_VERIFIER_PARAM_NAME = "neon_auth_session_verifier";
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/next/handler/request.ts
|
|
14
|
+
const PROXY_HEADERS = [
|
|
15
|
+
"user-agent",
|
|
16
|
+
"authorization",
|
|
17
|
+
"referer"
|
|
18
|
+
];
|
|
19
|
+
const handleAuthRequest = async (baseUrl, request, path) => {
|
|
20
|
+
const upstreamURL = `${baseUrl}/${path}${new URL(request.url).search}`;
|
|
21
|
+
const headers = prepareRequestHeaders(request);
|
|
22
|
+
const body = await parseRequestBody(request);
|
|
23
|
+
try {
|
|
24
|
+
return await fetch(upstreamURL, {
|
|
25
|
+
method: request.method,
|
|
26
|
+
headers,
|
|
27
|
+
body
|
|
28
|
+
});
|
|
29
|
+
} catch (error) {
|
|
30
|
+
const message = error instanceof Error ? error.message : "Internal Server Error";
|
|
31
|
+
console.error(`[AuthError] ${message}`, error);
|
|
32
|
+
return new Response(`[AuthError] ${message}`, { status: 500 });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const prepareRequestHeaders = (request) => {
|
|
36
|
+
const headers = new Headers();
|
|
37
|
+
headers.set("Content-Type", "application/json");
|
|
38
|
+
for (const header of PROXY_HEADERS) if (request.headers.get(header)) headers.set(header, request.headers.get(header));
|
|
39
|
+
headers.set("Origin", getOrigin(request));
|
|
40
|
+
headers.set("Cookie", extractRequestCookies(request.headers));
|
|
41
|
+
headers.set("X-Neon-Auth-Next", "true");
|
|
42
|
+
return headers;
|
|
43
|
+
};
|
|
44
|
+
const getOrigin = (request) => {
|
|
45
|
+
return request.headers.get("origin") || request.headers.get("referer")?.split("/").slice(0, 3).join("/") || new URL(request.url).origin;
|
|
46
|
+
};
|
|
47
|
+
const extractRequestCookies = (headers) => {
|
|
48
|
+
const cookieHeader = headers.get("cookie");
|
|
49
|
+
if (!cookieHeader) return "";
|
|
50
|
+
const cookies = cookieHeader.split(";").map((c) => c.trim());
|
|
51
|
+
const result = [];
|
|
52
|
+
for (const cookie of cookies) {
|
|
53
|
+
const [name] = cookie.split("=");
|
|
54
|
+
if (name.startsWith(NEON_AUTH_COOKIE_PREFIX)) result.push(cookie);
|
|
55
|
+
}
|
|
56
|
+
return result.join(";");
|
|
57
|
+
};
|
|
58
|
+
const parseRequestBody = async (request) => {
|
|
59
|
+
if (request.body) return request.text();
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/next/handler/response.ts
|
|
64
|
+
const RESPONSE_HEADERS_ALLOWLIST = [
|
|
65
|
+
"content-type",
|
|
66
|
+
"content-length",
|
|
67
|
+
"content-encoding",
|
|
68
|
+
"transfer-encoding",
|
|
69
|
+
"connection",
|
|
70
|
+
"date",
|
|
71
|
+
"set-cookie",
|
|
72
|
+
"set-auth-jwt",
|
|
73
|
+
"set-auth-token",
|
|
74
|
+
"x-neon-ret-request-id"
|
|
75
|
+
];
|
|
76
|
+
const handleAuthResponse = async (response) => {
|
|
77
|
+
return new Response(response.body, {
|
|
78
|
+
status: response.status,
|
|
79
|
+
statusText: response.statusText,
|
|
80
|
+
headers: prepareResponseHeaders(response)
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
const prepareResponseHeaders = (response) => {
|
|
84
|
+
const headers = new Headers();
|
|
85
|
+
for (const header of RESPONSE_HEADERS_ALLOWLIST) {
|
|
86
|
+
const value = response.headers.get(header);
|
|
87
|
+
if (value) headers.set(header, value);
|
|
88
|
+
}
|
|
89
|
+
return headers;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/next/handler/index.ts
|
|
94
|
+
const toNextJsHandler = (baseUrl) => {
|
|
95
|
+
const baseURL = baseUrl || process.env.NEON_AUTH_BASE_URL;
|
|
96
|
+
if (!baseURL) throw new Error("You must provide a Neon Auth base URL in the handler options or in the environment variables");
|
|
97
|
+
const handler = async (request, { params }) => {
|
|
98
|
+
return await handleAuthResponse(await handleAuthRequest(baseURL, request, (await params).path.join("/")));
|
|
99
|
+
};
|
|
100
|
+
return {
|
|
101
|
+
GET: handler,
|
|
102
|
+
POST: handler,
|
|
103
|
+
PUT: handler,
|
|
104
|
+
DELETE: handler,
|
|
105
|
+
PATCH: handler
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/next/middleware/oauth.ts
|
|
111
|
+
const needsSessionVerification = (request) => {
|
|
112
|
+
const hasVerifier = request.nextUrl.searchParams.has(NEON_AUTH_SESSION_VERIFIER_PARAM_NAME);
|
|
113
|
+
const hasChallenge = request.cookies.get(NEON_AUTH_SESSION_CHALLENGE_COOKIE_NAME);
|
|
114
|
+
const hasSession = request.cookies.get(NEON_AUTH_SESSION_COOKIE_NAME);
|
|
115
|
+
return hasVerifier && hasChallenge && !hasSession;
|
|
116
|
+
};
|
|
117
|
+
const verifySession = async (request, baseUrl) => {
|
|
118
|
+
const url = request.nextUrl;
|
|
119
|
+
const verifier = url.searchParams.get(NEON_AUTH_SESSION_VERIFIER_PARAM_NAME);
|
|
120
|
+
const challenge = request.cookies.get(NEON_AUTH_SESSION_CHALLENGE_COOKIE_NAME);
|
|
121
|
+
if (!verifier || !challenge) return null;
|
|
122
|
+
const response = await getSession(request, baseUrl);
|
|
123
|
+
if (response.ok) {
|
|
124
|
+
const headers = new Headers();
|
|
125
|
+
const cookies = extractResponseCookies(response.headers);
|
|
126
|
+
for (const cookie of cookies) headers.append("Set-Cookie", cookie);
|
|
127
|
+
url.searchParams.delete(NEON_AUTH_SESSION_VERIFIER_PARAM_NAME);
|
|
128
|
+
return NextResponse.redirect(url, { headers });
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
};
|
|
132
|
+
const getSession = async (request, baseUrl) => {
|
|
133
|
+
return handleAuthResponse(await handleAuthRequest(baseUrl, new Request(request.url, {
|
|
134
|
+
method: "GET",
|
|
135
|
+
headers: request.headers,
|
|
136
|
+
body: null
|
|
137
|
+
}), "get-session"));
|
|
138
|
+
};
|
|
139
|
+
const extractResponseCookies = (headers) => {
|
|
140
|
+
const cookieHeader = headers.get("set-cookie");
|
|
141
|
+
if (!cookieHeader) return [];
|
|
142
|
+
return cookieHeader.split(", ").map((c) => c.trim());
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/next/middleware/index.ts
|
|
147
|
+
const SKIP_ROUTES = [
|
|
148
|
+
"/api/auth",
|
|
149
|
+
"/auth/callback",
|
|
150
|
+
"/auth/sign-in",
|
|
151
|
+
"/auth/sign-up",
|
|
152
|
+
"/auth/magic-link",
|
|
153
|
+
"/auth/email-otp",
|
|
154
|
+
"/auth/forgot-password"
|
|
155
|
+
];
|
|
156
|
+
const neonAuthMiddleware = ({ loginUrl = "/auth/sign-in", authBaseUrl }) => {
|
|
157
|
+
const baseURL = authBaseUrl || process.env.NEON_AUTH_BASE_URL;
|
|
158
|
+
if (!baseURL) throw new Error("You must provide a Neon Auth base URL in the middleware options or in the environment variables");
|
|
159
|
+
return async (request) => {
|
|
160
|
+
const { pathname } = request.nextUrl;
|
|
161
|
+
if (pathname.startsWith(loginUrl)) return NextResponse.next();
|
|
162
|
+
if (needsSessionVerification(request)) {
|
|
163
|
+
const response = await verifySession(request, baseURL);
|
|
164
|
+
if (response !== null) return response;
|
|
165
|
+
}
|
|
166
|
+
if (SKIP_ROUTES.some((route) => pathname.startsWith(route))) return NextResponse.next();
|
|
167
|
+
if (!request.cookies.get(NEON_AUTH_SESSION_COOKIE_NAME)) return NextResponse.redirect(new URL(loginUrl, request.url));
|
|
168
|
+
return NextResponse.next();
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/next/index.ts
|
|
174
|
+
const createAuthClient = () => {
|
|
175
|
+
return createAuthClient$1(void 0, { adapter: BetterAuthReactAdapter() });
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
export { createAuthClient, neonAuthMiddleware, toNextJsHandler };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../../adapter-core-C12KoaiU.mjs";
|
|
2
|
+
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-BXL48HIU.mjs";
|
|
3
|
+
import "../../index-C-svZlpj.mjs";
|
|
4
|
+
export { BetterAuthReactAdapter, BetterAuthReactAdapterBuilder, BetterAuthReactAdapterInstance, BetterAuthReactAdapterOptions };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../adapter-core-C12KoaiU.mjs";
|
|
2
|
+
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-BXL48HIU.mjs";
|
|
3
|
+
import "../index-C-svZlpj.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-DuDD6cIY.mjs";
|
|
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 };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { n as dist_exports, r as useTheme, t as NeonAuthUIProvider } from "../ui-CNFBSekF.mjs";
|
|
2
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-FnBHa2nr.mjs";
|
|
3
|
+
|
|
4
|
+
var AcceptInvitationCard = dist_exports.AcceptInvitationCard;
|
|
5
|
+
var AccountSettingsCards = dist_exports.AccountSettingsCards;
|
|
6
|
+
var AccountView = dist_exports.AccountView;
|
|
7
|
+
var AccountsCard = dist_exports.AccountsCard;
|
|
8
|
+
var AppleIcon = dist_exports.AppleIcon;
|
|
9
|
+
var AuthCallback = dist_exports.AuthCallback;
|
|
10
|
+
var AuthForm = dist_exports.AuthForm;
|
|
11
|
+
var AuthLoading = dist_exports.AuthLoading;
|
|
12
|
+
var AuthUIContext = dist_exports.AuthUIContext;
|
|
13
|
+
var AuthUIProvider = dist_exports.AuthUIProvider;
|
|
14
|
+
var AuthView = dist_exports.AuthView;
|
|
15
|
+
var ChangeEmailCard = dist_exports.ChangeEmailCard;
|
|
16
|
+
var ChangePasswordCard = dist_exports.ChangePasswordCard;
|
|
17
|
+
var CreateOrganizationDialog = dist_exports.CreateOrganizationDialog;
|
|
18
|
+
var CreateTeamDialog = dist_exports.CreateTeamDialog;
|
|
19
|
+
var DeleteAccountCard = dist_exports.DeleteAccountCard;
|
|
20
|
+
var DeleteOrganizationCard = dist_exports.DeleteOrganizationCard;
|
|
21
|
+
var DiscordIcon = dist_exports.DiscordIcon;
|
|
22
|
+
var DropboxIcon = dist_exports.DropboxIcon;
|
|
23
|
+
var FacebookIcon = dist_exports.FacebookIcon;
|
|
24
|
+
var ForgotPasswordForm = dist_exports.ForgotPasswordForm;
|
|
25
|
+
var GitHubIcon = dist_exports.GitHubIcon;
|
|
26
|
+
var GitLabIcon = dist_exports.GitLabIcon;
|
|
27
|
+
var GoogleIcon = dist_exports.GoogleIcon;
|
|
28
|
+
var HuggingFaceIcon = dist_exports.HuggingFaceIcon;
|
|
29
|
+
var InputFieldSkeleton = dist_exports.InputFieldSkeleton;
|
|
30
|
+
var KickIcon = dist_exports.KickIcon;
|
|
31
|
+
var LinearIcon = dist_exports.LinearIcon;
|
|
32
|
+
var LinkedInIcon = dist_exports.LinkedInIcon;
|
|
33
|
+
var MagicLinkForm = dist_exports.MagicLinkForm;
|
|
34
|
+
var MicrosoftIcon = dist_exports.MicrosoftIcon;
|
|
35
|
+
var NotionIcon = dist_exports.NotionIcon;
|
|
36
|
+
var OrganizationCellView = dist_exports.OrganizationCellView;
|
|
37
|
+
var OrganizationInvitationsCard = dist_exports.OrganizationInvitationsCard;
|
|
38
|
+
var OrganizationLogo = dist_exports.OrganizationLogo;
|
|
39
|
+
var OrganizationLogoCard = dist_exports.OrganizationLogoCard;
|
|
40
|
+
var OrganizationMembersCard = dist_exports.OrganizationMembersCard;
|
|
41
|
+
var OrganizationNameCard = dist_exports.OrganizationNameCard;
|
|
42
|
+
var OrganizationSettingsCards = dist_exports.OrganizationSettingsCards;
|
|
43
|
+
var OrganizationSlugCard = dist_exports.OrganizationSlugCard;
|
|
44
|
+
var OrganizationSwitcher = dist_exports.OrganizationSwitcher;
|
|
45
|
+
var OrganizationView = dist_exports.OrganizationView;
|
|
46
|
+
var OrganizationsCard = dist_exports.OrganizationsCard;
|
|
47
|
+
var PasskeysCard = dist_exports.PasskeysCard;
|
|
48
|
+
var PasswordInput = dist_exports.PasswordInput;
|
|
49
|
+
var ProvidersCard = dist_exports.ProvidersCard;
|
|
50
|
+
var RecoverAccountForm = dist_exports.RecoverAccountForm;
|
|
51
|
+
var RedditIcon = dist_exports.RedditIcon;
|
|
52
|
+
var RedirectToSignIn = dist_exports.RedirectToSignIn;
|
|
53
|
+
var RedirectToSignUp = dist_exports.RedirectToSignUp;
|
|
54
|
+
var ResetPasswordForm = dist_exports.ResetPasswordForm;
|
|
55
|
+
var RobloxIcon = dist_exports.RobloxIcon;
|
|
56
|
+
var SecuritySettingsCards = dist_exports.SecuritySettingsCards;
|
|
57
|
+
var SessionsCard = dist_exports.SessionsCard;
|
|
58
|
+
var SettingsCard = dist_exports.SettingsCard;
|
|
59
|
+
var SettingsCellSkeleton = dist_exports.SettingsCellSkeleton;
|
|
60
|
+
var SignInForm = dist_exports.SignInForm;
|
|
61
|
+
var SignOut = dist_exports.SignOut;
|
|
62
|
+
var SignUpForm = dist_exports.SignUpForm;
|
|
63
|
+
var SignedIn = dist_exports.SignedIn;
|
|
64
|
+
var SignedOut = dist_exports.SignedOut;
|
|
65
|
+
var SlackIcon = dist_exports.SlackIcon;
|
|
66
|
+
var SpotifyIcon = dist_exports.SpotifyIcon;
|
|
67
|
+
var TeamCell = dist_exports.TeamCell;
|
|
68
|
+
var TeamsCard = dist_exports.TeamsCard;
|
|
69
|
+
var TikTokIcon = dist_exports.TikTokIcon;
|
|
70
|
+
var TwitchIcon = dist_exports.TwitchIcon;
|
|
71
|
+
var TwoFactorCard = dist_exports.TwoFactorCard;
|
|
72
|
+
var TwoFactorForm = dist_exports.TwoFactorForm;
|
|
73
|
+
var UpdateAvatarCard = dist_exports.UpdateAvatarCard;
|
|
74
|
+
var UpdateFieldCard = dist_exports.UpdateFieldCard;
|
|
75
|
+
var UpdateNameCard = dist_exports.UpdateNameCard;
|
|
76
|
+
var UpdateUsernameCard = dist_exports.UpdateUsernameCard;
|
|
77
|
+
var UserAvatar = dist_exports.UserAvatar;
|
|
78
|
+
var UserButton = dist_exports.UserButton;
|
|
79
|
+
var UserInvitationsCard = dist_exports.UserInvitationsCard;
|
|
80
|
+
var UserView = dist_exports.UserView;
|
|
81
|
+
var VKIcon = dist_exports.VKIcon;
|
|
82
|
+
var XIcon = dist_exports.XIcon;
|
|
83
|
+
var ZoomIcon = dist_exports.ZoomIcon;
|
|
84
|
+
var accountViewPaths = dist_exports.accountViewPaths;
|
|
85
|
+
var authLocalization = dist_exports.authLocalization;
|
|
86
|
+
var authViewPaths = dist_exports.authViewPaths;
|
|
87
|
+
var getViewByPath = dist_exports.getViewByPath;
|
|
88
|
+
var organizationViewPaths = dist_exports.organizationViewPaths;
|
|
89
|
+
var socialProviders = dist_exports.socialProviders;
|
|
90
|
+
var useAuthData = dist_exports.useAuthData;
|
|
91
|
+
var useAuthenticate = dist_exports.useAuthenticate;
|
|
92
|
+
var useCurrentOrganization = dist_exports.useCurrentOrganization;
|
|
93
|
+
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, XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
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-DuDD6cIY.mjs";
|
|
3
|
+
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 };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { n as dist_exports, r as useTheme, t as NeonAuthUIProvider } from "../../ui-CNFBSekF.mjs";
|
|
3
|
+
|
|
4
|
+
var AcceptInvitationCard = dist_exports.AcceptInvitationCard;
|
|
5
|
+
var AccountSettingsCards = dist_exports.AccountSettingsCards;
|
|
6
|
+
var AccountView = dist_exports.AccountView;
|
|
7
|
+
var AccountsCard = dist_exports.AccountsCard;
|
|
8
|
+
var AppleIcon = dist_exports.AppleIcon;
|
|
9
|
+
var AuthCallback = dist_exports.AuthCallback;
|
|
10
|
+
var AuthForm = dist_exports.AuthForm;
|
|
11
|
+
var AuthLoading = dist_exports.AuthLoading;
|
|
12
|
+
var AuthUIContext = dist_exports.AuthUIContext;
|
|
13
|
+
var AuthUIProvider = dist_exports.AuthUIProvider;
|
|
14
|
+
var AuthView = dist_exports.AuthView;
|
|
15
|
+
var ChangeEmailCard = dist_exports.ChangeEmailCard;
|
|
16
|
+
var ChangePasswordCard = dist_exports.ChangePasswordCard;
|
|
17
|
+
var CreateOrganizationDialog = dist_exports.CreateOrganizationDialog;
|
|
18
|
+
var CreateTeamDialog = dist_exports.CreateTeamDialog;
|
|
19
|
+
var DeleteAccountCard = dist_exports.DeleteAccountCard;
|
|
20
|
+
var DeleteOrganizationCard = dist_exports.DeleteOrganizationCard;
|
|
21
|
+
var DiscordIcon = dist_exports.DiscordIcon;
|
|
22
|
+
var DropboxIcon = dist_exports.DropboxIcon;
|
|
23
|
+
var FacebookIcon = dist_exports.FacebookIcon;
|
|
24
|
+
var ForgotPasswordForm = dist_exports.ForgotPasswordForm;
|
|
25
|
+
var GitHubIcon = dist_exports.GitHubIcon;
|
|
26
|
+
var GitLabIcon = dist_exports.GitLabIcon;
|
|
27
|
+
var GoogleIcon = dist_exports.GoogleIcon;
|
|
28
|
+
var HuggingFaceIcon = dist_exports.HuggingFaceIcon;
|
|
29
|
+
var InputFieldSkeleton = dist_exports.InputFieldSkeleton;
|
|
30
|
+
var KickIcon = dist_exports.KickIcon;
|
|
31
|
+
var LinearIcon = dist_exports.LinearIcon;
|
|
32
|
+
var LinkedInIcon = dist_exports.LinkedInIcon;
|
|
33
|
+
var MagicLinkForm = dist_exports.MagicLinkForm;
|
|
34
|
+
var MicrosoftIcon = dist_exports.MicrosoftIcon;
|
|
35
|
+
var NotionIcon = dist_exports.NotionIcon;
|
|
36
|
+
var OrganizationCellView = dist_exports.OrganizationCellView;
|
|
37
|
+
var OrganizationInvitationsCard = dist_exports.OrganizationInvitationsCard;
|
|
38
|
+
var OrganizationLogo = dist_exports.OrganizationLogo;
|
|
39
|
+
var OrganizationLogoCard = dist_exports.OrganizationLogoCard;
|
|
40
|
+
var OrganizationMembersCard = dist_exports.OrganizationMembersCard;
|
|
41
|
+
var OrganizationNameCard = dist_exports.OrganizationNameCard;
|
|
42
|
+
var OrganizationSettingsCards = dist_exports.OrganizationSettingsCards;
|
|
43
|
+
var OrganizationSlugCard = dist_exports.OrganizationSlugCard;
|
|
44
|
+
var OrganizationSwitcher = dist_exports.OrganizationSwitcher;
|
|
45
|
+
var OrganizationView = dist_exports.OrganizationView;
|
|
46
|
+
var OrganizationsCard = dist_exports.OrganizationsCard;
|
|
47
|
+
var PasskeysCard = dist_exports.PasskeysCard;
|
|
48
|
+
var PasswordInput = dist_exports.PasswordInput;
|
|
49
|
+
var ProvidersCard = dist_exports.ProvidersCard;
|
|
50
|
+
var RecoverAccountForm = dist_exports.RecoverAccountForm;
|
|
51
|
+
var RedditIcon = dist_exports.RedditIcon;
|
|
52
|
+
var RedirectToSignIn = dist_exports.RedirectToSignIn;
|
|
53
|
+
var RedirectToSignUp = dist_exports.RedirectToSignUp;
|
|
54
|
+
var ResetPasswordForm = dist_exports.ResetPasswordForm;
|
|
55
|
+
var RobloxIcon = dist_exports.RobloxIcon;
|
|
56
|
+
var SecuritySettingsCards = dist_exports.SecuritySettingsCards;
|
|
57
|
+
var SessionsCard = dist_exports.SessionsCard;
|
|
58
|
+
var SettingsCard = dist_exports.SettingsCard;
|
|
59
|
+
var SettingsCellSkeleton = dist_exports.SettingsCellSkeleton;
|
|
60
|
+
var SignInForm = dist_exports.SignInForm;
|
|
61
|
+
var SignOut = dist_exports.SignOut;
|
|
62
|
+
var SignUpForm = dist_exports.SignUpForm;
|
|
63
|
+
var SignedIn = dist_exports.SignedIn;
|
|
64
|
+
var SignedOut = dist_exports.SignedOut;
|
|
65
|
+
var SlackIcon = dist_exports.SlackIcon;
|
|
66
|
+
var SpotifyIcon = dist_exports.SpotifyIcon;
|
|
67
|
+
var TeamCell = dist_exports.TeamCell;
|
|
68
|
+
var TeamsCard = dist_exports.TeamsCard;
|
|
69
|
+
var TikTokIcon = dist_exports.TikTokIcon;
|
|
70
|
+
var TwitchIcon = dist_exports.TwitchIcon;
|
|
71
|
+
var TwoFactorCard = dist_exports.TwoFactorCard;
|
|
72
|
+
var TwoFactorForm = dist_exports.TwoFactorForm;
|
|
73
|
+
var UpdateAvatarCard = dist_exports.UpdateAvatarCard;
|
|
74
|
+
var UpdateFieldCard = dist_exports.UpdateFieldCard;
|
|
75
|
+
var UpdateNameCard = dist_exports.UpdateNameCard;
|
|
76
|
+
var UpdateUsernameCard = dist_exports.UpdateUsernameCard;
|
|
77
|
+
var UserAvatar = dist_exports.UserAvatar;
|
|
78
|
+
var UserButton = dist_exports.UserButton;
|
|
79
|
+
var UserInvitationsCard = dist_exports.UserInvitationsCard;
|
|
80
|
+
var UserView = dist_exports.UserView;
|
|
81
|
+
var VKIcon = dist_exports.VKIcon;
|
|
82
|
+
var XIcon = dist_exports.XIcon;
|
|
83
|
+
var ZoomIcon = dist_exports.ZoomIcon;
|
|
84
|
+
var accountViewPaths = dist_exports.accountViewPaths;
|
|
85
|
+
var authLocalization = dist_exports.authLocalization;
|
|
86
|
+
var authViewPaths = dist_exports.authViewPaths;
|
|
87
|
+
var getViewByPath = dist_exports.getViewByPath;
|
|
88
|
+
var organizationViewPaths = dist_exports.organizationViewPaths;
|
|
89
|
+
var socialProviders = dist_exports.socialProviders;
|
|
90
|
+
var useAuthData = dist_exports.useAuthData;
|
|
91
|
+
var useAuthenticate = dist_exports.useAuthenticate;
|
|
92
|
+
var useCurrentOrganization = dist_exports.useCurrentOrganization;
|
|
93
|
+
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, XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@neondatabase/auth-ui/server";
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-C12KoaiU.mjs";
|
|
2
|
+
import { AuthClient, BetterAuthClientOptions } from "better-auth/client";
|
|
3
|
+
import * as _supabase_auth_js0 from "@supabase/auth-js";
|
|
4
|
+
import { AuthClient as AuthClient$1, JwtHeader, JwtPayload } from "@supabase/auth-js";
|
|
5
|
+
|
|
6
|
+
//#region src/adapters/better-auth-vanilla/better-auth-vanilla-adapter.d.ts
|
|
7
|
+
type BetterAuthVanillaAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
8
|
+
/**
|
|
9
|
+
* Internal implementation class - use BetterAuthVanillaAdapter factory function instead
|
|
10
|
+
*/
|
|
11
|
+
declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
12
|
+
private _betterAuth;
|
|
13
|
+
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
14
|
+
getBetterAuthInstance(): AuthClient<BetterAuthClientOptions>;
|
|
15
|
+
getJWTToken(): Promise<string | null>;
|
|
16
|
+
}
|
|
17
|
+
/** Instance type for BetterAuthVanillaAdapter */
|
|
18
|
+
type BetterAuthVanillaAdapterInstance = BetterAuthVanillaAdapterImpl;
|
|
19
|
+
/** Builder type that creates adapter instances */
|
|
20
|
+
type BetterAuthVanillaAdapterBuilder = (url: string) => BetterAuthVanillaAdapterInstance;
|
|
21
|
+
/**
|
|
22
|
+
* Factory function that returns an adapter builder.
|
|
23
|
+
* The builder is called by createClient/createAuthClient with the URL.
|
|
24
|
+
*
|
|
25
|
+
* @param options - Optional adapter configuration (baseURL is injected separately)
|
|
26
|
+
* @returns A builder function that creates the adapter instance
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const client = createClient({
|
|
31
|
+
* auth: {
|
|
32
|
+
* url: 'https://auth.example.com',
|
|
33
|
+
* adapter: BetterAuthVanillaAdapter(),
|
|
34
|
+
* },
|
|
35
|
+
* dataApi: { url: 'https://data-api.example.com' },
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/adapters/supabase/auth-interface.d.ts
|
|
42
|
+
type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient$1>;
|
|
43
|
+
type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
|
|
44
|
+
type SupabaseAuthClientInterface = _AuthClientBase;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/adapters/supabase/supabase-adapter.d.ts
|
|
47
|
+
type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
48
|
+
/**
|
|
49
|
+
* Internal implementation class - use SupabaseAuthAdapter factory function instead
|
|
50
|
+
*/
|
|
51
|
+
declare class SupabaseAuthAdapterImpl extends NeonAuthAdapterCore implements SupabaseAuthClientInterface {
|
|
52
|
+
admin: SupabaseAuthClientInterface['admin'];
|
|
53
|
+
mfa: SupabaseAuthClientInterface['mfa'];
|
|
54
|
+
oauth: SupabaseAuthClientInterface['oauth'];
|
|
55
|
+
private _betterAuth;
|
|
56
|
+
private _stateChangeEmitters;
|
|
57
|
+
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
58
|
+
getBetterAuthInstance(): AuthClient<BetterAuthClientOptions>;
|
|
59
|
+
getJWTToken(): Promise<string | null>;
|
|
60
|
+
initialize: SupabaseAuthClientInterface['initialize'];
|
|
61
|
+
getSession(options?: {
|
|
62
|
+
forceFetch?: boolean;
|
|
63
|
+
}): ReturnType<SupabaseAuthClientInterface['getSession']>;
|
|
64
|
+
refreshSession: SupabaseAuthClientInterface['refreshSession'];
|
|
65
|
+
setSession: SupabaseAuthClientInterface['setSession'];
|
|
66
|
+
signUp: SupabaseAuthClientInterface['signUp'];
|
|
67
|
+
signInAnonymously: SupabaseAuthClientInterface['signInAnonymously'];
|
|
68
|
+
signInWithPassword: SupabaseAuthClientInterface['signInWithPassword'];
|
|
69
|
+
signInWithOAuth: SupabaseAuthClientInterface['signInWithOAuth'];
|
|
70
|
+
signInWithOtp: SupabaseAuthClientInterface['signInWithOtp'];
|
|
71
|
+
signInWithIdToken: SupabaseAuthClientInterface['signInWithIdToken'];
|
|
72
|
+
signInWithSSO: SupabaseAuthClientInterface['signInWithSSO'];
|
|
73
|
+
signInWithWeb3: SupabaseAuthClientInterface['signInWithWeb3'];
|
|
74
|
+
signOut: SupabaseAuthClientInterface['signOut'];
|
|
75
|
+
getUser: SupabaseAuthClientInterface['getUser'];
|
|
76
|
+
getClaims: (jwtArg?: string) => Promise<{
|
|
77
|
+
data: {
|
|
78
|
+
header: JwtHeader;
|
|
79
|
+
claims: JwtPayload;
|
|
80
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
81
|
+
};
|
|
82
|
+
error: null;
|
|
83
|
+
} | {
|
|
84
|
+
data: null;
|
|
85
|
+
error: _supabase_auth_js0.AuthError;
|
|
86
|
+
}>;
|
|
87
|
+
updateUser: SupabaseAuthClientInterface['updateUser'];
|
|
88
|
+
getUserIdentities: SupabaseAuthClientInterface['getUserIdentities'];
|
|
89
|
+
linkIdentity: SupabaseAuthClientInterface['linkIdentity'];
|
|
90
|
+
unlinkIdentity: SupabaseAuthClientInterface['unlinkIdentity'];
|
|
91
|
+
verifyOtp: SupabaseAuthClientInterface['verifyOtp'];
|
|
92
|
+
resetPasswordForEmail: SupabaseAuthClientInterface['resetPasswordForEmail'];
|
|
93
|
+
reauthenticate: SupabaseAuthClientInterface['reauthenticate'];
|
|
94
|
+
resend: SupabaseAuthClientInterface['resend'];
|
|
95
|
+
exchangeCodeForSession: SupabaseAuthClientInterface['exchangeCodeForSession'];
|
|
96
|
+
onAuthStateChange: SupabaseAuthClientInterface['onAuthStateChange'];
|
|
97
|
+
isThrowOnErrorEnabled: SupabaseAuthClientInterface['isThrowOnErrorEnabled'];
|
|
98
|
+
startAutoRefresh: SupabaseAuthClientInterface['startAutoRefresh'];
|
|
99
|
+
stopAutoRefresh: SupabaseAuthClientInterface['stopAutoRefresh'];
|
|
100
|
+
private verifyEmailOtp;
|
|
101
|
+
private verifyPhoneOtp;
|
|
102
|
+
private emitInitialSession;
|
|
103
|
+
}
|
|
104
|
+
/** Instance type for SupabaseAuthAdapter */
|
|
105
|
+
type SupabaseAuthAdapterInstance = SupabaseAuthAdapterImpl;
|
|
106
|
+
/** Builder type that creates adapter instances */
|
|
107
|
+
type SupabaseAuthAdapterBuilder = (url: string) => SupabaseAuthAdapterInstance;
|
|
108
|
+
/**
|
|
109
|
+
* Factory function that returns an adapter builder.
|
|
110
|
+
* The builder is called by createClient/createAuthClient with the URL.
|
|
111
|
+
*
|
|
112
|
+
* @param options - Optional adapter configuration (baseURL is injected separately)
|
|
113
|
+
* @returns A builder function that creates the adapter instance
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* const client = createClient({
|
|
118
|
+
* auth: {
|
|
119
|
+
* url: 'https://auth.example.com',
|
|
120
|
+
* adapter: SupabaseAuthAdapter(),
|
|
121
|
+
* },
|
|
122
|
+
* dataApi: { url: 'https://data-api.example.com' },
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
declare function SupabaseAuthAdapter(options?: SupabaseAuthAdapterOptions): SupabaseAuthAdapterBuilder;
|
|
127
|
+
//#endregion
|
|
128
|
+
export { BetterAuthVanillaAdapter as a, BetterAuthVanillaAdapterOptions as c, SupabaseAuthAdapterOptions as i, SupabaseAuthAdapterBuilder as n, BetterAuthVanillaAdapterBuilder as o, SupabaseAuthAdapterInstance as r, BetterAuthVanillaAdapterInstance as s, SupabaseAuthAdapter as t };
|