@neondatabase/auth 0.1.0-beta.19 → 0.1.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-core-CiZ94eSH.d.mts → adapter-core-23fYTUxT.d.mts} +113 -113
- package/dist/{adapter-core-J65ZBFCQ.mjs → adapter-core-8s6XdCco.mjs} +95 -2
- package/dist/{better-auth-react-adapter-D0YDUhsP.mjs → better-auth-react-adapter-D9tIaEyQ.mjs} +10 -3
- package/dist/{supabase-adapter-Czd-BqPV.d.mts → better-auth-react-adapter-QFe5RtaM.d.mts} +305 -389
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/{neon-auth-D5blqfx_.mjs → neon-auth-2f58U8_-.mjs} +4 -2
- package/dist/{neon-auth-CjtW9yrE.d.mts → neon-auth-CDYpC_O1.d.mts} +8 -6
- package/dist/next/index.mjs +3 -3
- package/dist/next/server/index.d.mts +4 -4
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.mjs +2 -2
- package/dist/{supabase-adapter-VEBuV-CR.mjs → supabase-adapter-BYMJSxOT.mjs} +19 -5
- package/dist/{better-auth-react-adapter-f7gIfbP8.d.mts → supabase-adapter-Dr-pKvPt.d.mts} +145 -55
- package/dist/types/index.d.mts +1 -1
- package/dist/vanilla/adapters/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +2 -2
- package/dist/vanilla/index.mjs +2 -2
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import "./adapter-core-
|
|
3
|
-
import "./better-auth-react-adapter-
|
|
4
|
-
import "./supabase-adapter-
|
|
5
|
-
import { a as ReactBetterAuthClient, c as createInternalNeonAuth, i as NeonAuthPublicApi, n as NeonAuthAdapter, o as VanillaBetterAuthClient, r as NeonAuthConfig, s as createAuthClient, t as NeonAuth } from "./neon-auth-
|
|
2
|
+
import "./adapter-core-23fYTUxT.mjs";
|
|
3
|
+
import "./better-auth-react-adapter-QFe5RtaM.mjs";
|
|
4
|
+
import "./supabase-adapter-Dr-pKvPt.mjs";
|
|
5
|
+
import { a as ReactBetterAuthClient, c as createInternalNeonAuth, i as NeonAuthPublicApi, n as NeonAuthAdapter, o as VanillaBetterAuthClient, r as NeonAuthConfig, s as createAuthClient, t as NeonAuth } from "./neon-auth-CDYpC_O1.mjs";
|
|
6
6
|
export { type NeonAuth, type NeonAuthAdapter, type NeonAuthConfig, type NeonAuthPublicApi, type ReactBetterAuthClient, type VanillaBetterAuthClient, createAuthClient, createInternalNeonAuth };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./adapter-core-
|
|
2
|
-
import { n as createInternalNeonAuth, t as createAuthClient } from "./neon-auth-
|
|
1
|
+
import "./adapter-core-8s6XdCco.mjs";
|
|
2
|
+
import { n as createInternalNeonAuth, t as createAuthClient } from "./neon-auth-2f58U8_-.mjs";
|
|
3
3
|
|
|
4
4
|
export { createAuthClient, createInternalNeonAuth };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-
|
|
1
|
+
import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-BYMJSxOT.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/neon-auth.ts
|
|
4
4
|
/**
|
|
@@ -49,7 +49,9 @@ import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-VEBuV-CR.mjs";
|
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
51
|
function createInternalNeonAuth(url, config) {
|
|
52
|
-
const
|
|
52
|
+
const adapterBuilder = config?.adapter ?? BetterAuthVanillaAdapter();
|
|
53
|
+
const { fetchOptions } = config ?? {};
|
|
54
|
+
const adapter = adapterBuilder(url, fetchOptions);
|
|
53
55
|
const allowAnonymous = config?.allowAnonymous ?? false;
|
|
54
56
|
if (!(typeof adapter.initialize === "function")) return {
|
|
55
57
|
getJWTToken: () => adapter.getJWTToken(allowAnonymous),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SupportedBetterAuthClientPlugins } from "./adapter-core-
|
|
2
|
-
import {
|
|
3
|
-
import { r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance } from "./supabase-adapter-
|
|
1
|
+
import { r as SupportedBetterAuthClientPlugins } from "./adapter-core-23fYTUxT.mjs";
|
|
2
|
+
import { n as BetterAuthReactAdapterInstance } from "./better-auth-react-adapter-QFe5RtaM.mjs";
|
|
3
|
+
import { r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance } from "./supabase-adapter-Dr-pKvPt.mjs";
|
|
4
4
|
import { createAuthClient } from "better-auth/react";
|
|
5
5
|
import { createAuthClient as createAuthClient$1 } from "better-auth/client";
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import { createAuthClient as createAuthClient$1 } from "better-auth/client";
|
|
|
12
12
|
type ReactBetterAuthClient = ReturnType<typeof createAuthClient<{
|
|
13
13
|
plugins: SupportedBetterAuthClientPlugins;
|
|
14
14
|
}>>;
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
16
|
* Type representing the Better Auth Vanilla client
|
|
17
17
|
*/
|
|
18
18
|
type VanillaBetterAuthClient = ReturnType<typeof createAuthClient$1<{
|
|
@@ -27,7 +27,9 @@ type NeonAuthAdapter = BetterAuthVanillaAdapterInstance | BetterAuthReactAdapter
|
|
|
27
27
|
*/
|
|
28
28
|
interface NeonAuthConfig<T extends NeonAuthAdapter> {
|
|
29
29
|
/** The adapter builder to use. Defaults to BetterAuthVanillaAdapter() if not specified. */
|
|
30
|
-
adapter?: (url: string
|
|
30
|
+
adapter?: (url: string, fetchOptions?: {
|
|
31
|
+
headers?: Record<string, string>;
|
|
32
|
+
}) => T;
|
|
31
33
|
/**
|
|
32
34
|
* When true, automatically uses an anonymous token when no user session exists.
|
|
33
35
|
* This enables RLS-based data access for users with the anonymous role.
|
|
@@ -99,7 +101,7 @@ type NeonAuth<T extends NeonAuthAdapter> = {
|
|
|
99
101
|
* const session = auth.useSession(); // React hook
|
|
100
102
|
* ```
|
|
101
103
|
*/
|
|
102
|
-
declare function createInternalNeonAuth<T extends NeonAuthAdapter = BetterAuthVanillaAdapterInstance>(url: string, config?:
|
|
104
|
+
declare function createInternalNeonAuth<T extends NeonAuthAdapter = BetterAuthVanillaAdapterInstance>(url: string, config?: NeonAuthConfigInternal<T>): NeonAuth<T>;
|
|
103
105
|
declare function createAuthClient$2<T extends NeonAuthAdapter = BetterAuthVanillaAdapterInstance>(url: string, config?: NeonAuthConfig<T>): NeonAuthPublicApi<T>;
|
|
104
106
|
//#endregion
|
|
105
107
|
export { ReactBetterAuthClient as a, createInternalNeonAuth as c, NeonAuthPublicApi as i, NeonAuthAdapter as n, VanillaBetterAuthClient as o, NeonAuthConfig as r, createAuthClient$2 as s, NeonAuth as t };
|
package/dist/next/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
3
|
-
import { t as createAuthClient$1 } from "../neon-auth-
|
|
1
|
+
import "../adapter-core-8s6XdCco.mjs";
|
|
2
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-D9tIaEyQ.mjs";
|
|
3
|
+
import { t as createAuthClient$1 } from "../neon-auth-2f58U8_-.mjs";
|
|
4
4
|
import { n as neonAuth$1, r as authApiHandler$1, t as neonAuthMiddleware$1 } from "../middleware-C7jHeulu.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/next/index.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import "../../adapter-core-
|
|
3
|
-
import "../../better-auth-react-adapter-
|
|
4
|
-
import "../../supabase-adapter-
|
|
5
|
-
import { o as VanillaBetterAuthClient } from "../../neon-auth-
|
|
2
|
+
import "../../adapter-core-23fYTUxT.mjs";
|
|
3
|
+
import "../../better-auth-react-adapter-QFe5RtaM.mjs";
|
|
4
|
+
import "../../supabase-adapter-Dr-pKvPt.mjs";
|
|
5
|
+
import { o as VanillaBetterAuthClient } from "../../neon-auth-CDYpC_O1.mjs";
|
|
6
6
|
import { r as neonAuth, t as neonAuthMiddleware } from "../../index-Bga0CzOO.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/server/endpoints.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import "../../adapter-core-
|
|
3
|
-
import {
|
|
2
|
+
import "../../adapter-core-23fYTUxT.mjs";
|
|
3
|
+
import { n as BetterAuthReactAdapterInstance, r as BetterAuthReactAdapterOptions, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-QFe5RtaM.mjs";
|
|
4
4
|
import "../../index-BHI9uOzY.mjs";
|
|
5
|
-
export { BetterAuthReactAdapter,
|
|
5
|
+
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-8s6XdCco.mjs";
|
|
2
|
+
import { t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-D9tIaEyQ.mjs";
|
|
3
3
|
|
|
4
4
|
export { BetterAuthReactAdapter };
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import "../adapter-core-
|
|
3
|
-
import {
|
|
2
|
+
import "../adapter-core-23fYTUxT.mjs";
|
|
3
|
+
import { n as BetterAuthReactAdapterInstance, r as BetterAuthReactAdapterOptions, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-QFe5RtaM.mjs";
|
|
4
4
|
import "../index-BHI9uOzY.mjs";
|
|
5
5
|
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-CSe4aQIZ.mjs";
|
|
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,
|
|
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, 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-8s6XdCco.mjs";
|
|
2
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-D9tIaEyQ.mjs";
|
|
3
3
|
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../chunk-VCZJYX65-CLnrj1o7-D6ZQkcc_.mjs";
|
|
4
4
|
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-Cg1EZzGG.mjs";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CURRENT_TAB_CLIENT_ID, n as BETTER_AUTH_METHODS_CACHE, r as BETTER_AUTH_METHODS_HOOKS, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
1
|
+
import { i as CURRENT_TAB_CLIENT_ID, n as BETTER_AUTH_METHODS_CACHE, r as BETTER_AUTH_METHODS_HOOKS, t as NeonAuthAdapterCore } from "./adapter-core-8s6XdCco.mjs";
|
|
2
2
|
import { n as DEFAULT_SESSION_EXPIRY_MS } from "./constants-2bpp2_-f.mjs";
|
|
3
3
|
import { createAuthClient, getGlobalBroadcastChannel } from "better-auth/client";
|
|
4
4
|
import { AuthApiError, AuthError, isAuthError } from "@supabase/auth-js";
|
|
@@ -37,9 +37,16 @@ var BetterAuthVanillaAdapterImpl = class extends NeonAuthAdapterCore {
|
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
function BetterAuthVanillaAdapter(options) {
|
|
40
|
-
return (url) => new BetterAuthVanillaAdapterImpl({
|
|
40
|
+
return (url, fetchOptions) => new BetterAuthVanillaAdapterImpl({
|
|
41
41
|
baseURL: url,
|
|
42
|
-
...options
|
|
42
|
+
...options,
|
|
43
|
+
fetchOptions: {
|
|
44
|
+
...options?.fetchOptions,
|
|
45
|
+
headers: {
|
|
46
|
+
...options?.fetchOptions?.headers,
|
|
47
|
+
...fetchOptions?.headers
|
|
48
|
+
}
|
|
49
|
+
}
|
|
43
50
|
});
|
|
44
51
|
}
|
|
45
52
|
|
|
@@ -1504,9 +1511,16 @@ var SupabaseAuthAdapterImpl = class extends NeonAuthAdapterCore {
|
|
|
1504
1511
|
* ```
|
|
1505
1512
|
*/
|
|
1506
1513
|
function SupabaseAuthAdapter(options) {
|
|
1507
|
-
return (url) => new SupabaseAuthAdapterImpl({
|
|
1514
|
+
return (url, fetchOptions) => new SupabaseAuthAdapterImpl({
|
|
1508
1515
|
baseURL: url,
|
|
1509
|
-
...options
|
|
1516
|
+
...options,
|
|
1517
|
+
fetchOptions: {
|
|
1518
|
+
...options?.fetchOptions,
|
|
1519
|
+
headers: {
|
|
1520
|
+
...options?.fetchOptions?.headers,
|
|
1521
|
+
...fetchOptions?.headers
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1510
1524
|
});
|
|
1511
1525
|
}
|
|
1512
1526
|
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
1
|
+
import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-23fYTUxT.mjs";
|
|
2
2
|
import * as better_auth_client11 from "better-auth/client";
|
|
3
|
+
import { createAuthClient } from "better-auth/client";
|
|
4
|
+
import * as _supabase_auth_js0 from "@supabase/auth-js";
|
|
5
|
+
import { AuthClient, JwtHeader, JwtPayload } from "@supabase/auth-js";
|
|
3
6
|
import * as jose0 from "jose";
|
|
4
7
|
import * as better_auth151 from "better-auth";
|
|
5
8
|
import * as _better_fetch_fetch88 from "@better-fetch/fetch";
|
|
6
9
|
import * as better_auth_plugins5 from "better-auth/plugins";
|
|
7
10
|
import * as nanostores0 from "nanostores";
|
|
8
11
|
|
|
9
|
-
//#region src/adapters/better-auth-
|
|
10
|
-
type
|
|
12
|
+
//#region src/adapters/better-auth-vanilla/better-auth-vanilla-adapter.d.ts
|
|
13
|
+
type BetterAuthVanillaAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
11
14
|
/**
|
|
12
|
-
* Internal implementation class - use
|
|
15
|
+
* Internal implementation class - use BetterAuthVanillaAdapter factory function instead
|
|
13
16
|
*/
|
|
14
|
-
declare class
|
|
17
|
+
declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
15
18
|
private _betterAuth;
|
|
16
19
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
17
20
|
getBetterAuthInstance(): {
|
|
18
|
-
useActiveOrganization:
|
|
21
|
+
useActiveOrganization: nanostores0.PreinitializedWritableAtom<{
|
|
19
22
|
data: better_auth151.Prettify<{
|
|
20
23
|
id: string;
|
|
21
24
|
name: string;
|
|
@@ -54,8 +57,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
54
57
|
refetch: (queryParams?: {
|
|
55
58
|
query?: better_auth151.SessionQueryParams;
|
|
56
59
|
} | undefined) => Promise<void>;
|
|
57
|
-
};
|
|
58
|
-
useListOrganizations:
|
|
60
|
+
}> & object;
|
|
61
|
+
useListOrganizations: nanostores0.PreinitializedWritableAtom<{
|
|
59
62
|
data: {
|
|
60
63
|
id: string;
|
|
61
64
|
name: string;
|
|
@@ -70,8 +73,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
70
73
|
refetch: (queryParams?: {
|
|
71
74
|
query?: better_auth151.SessionQueryParams;
|
|
72
75
|
} | undefined) => Promise<void>;
|
|
73
|
-
};
|
|
74
|
-
useActiveMember:
|
|
76
|
+
}> & object;
|
|
77
|
+
useActiveMember: nanostores0.PreinitializedWritableAtom<{
|
|
75
78
|
data: {
|
|
76
79
|
id: string;
|
|
77
80
|
organizationId: string;
|
|
@@ -85,8 +88,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
85
88
|
refetch: (queryParams?: {
|
|
86
89
|
query?: better_auth151.SessionQueryParams;
|
|
87
90
|
} | undefined) => Promise<void>;
|
|
88
|
-
};
|
|
89
|
-
useActiveMemberRole:
|
|
91
|
+
}> & object;
|
|
92
|
+
useActiveMemberRole: nanostores0.PreinitializedWritableAtom<{
|
|
90
93
|
data: {
|
|
91
94
|
role: string;
|
|
92
95
|
} | null;
|
|
@@ -96,7 +99,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
96
99
|
refetch: (queryParams?: {
|
|
97
100
|
query?: better_auth151.SessionQueryParams;
|
|
98
101
|
} | undefined) => Promise<void>;
|
|
99
|
-
};
|
|
102
|
+
}> & object;
|
|
100
103
|
} & {
|
|
101
104
|
token: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
102
105
|
query?: Record<string, any> | undefined;
|
|
@@ -1901,7 +1904,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1901
1904
|
}) => boolean;
|
|
1902
1905
|
};
|
|
1903
1906
|
} & {
|
|
1904
|
-
useSession:
|
|
1907
|
+
useSession: nanostores0.Atom<{
|
|
1905
1908
|
data: {
|
|
1906
1909
|
user: {
|
|
1907
1910
|
id: string;
|
|
@@ -1929,42 +1932,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1929
1932
|
activeOrganizationId?: string | null | undefined;
|
|
1930
1933
|
};
|
|
1931
1934
|
} | null;
|
|
1932
|
-
isPending: boolean;
|
|
1933
|
-
isRefetching: boolean;
|
|
1934
1935
|
error: _better_fetch_fetch88.BetterFetchError | null;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
} | undefined) => Promise<void>;
|
|
1938
|
-
};
|
|
1939
|
-
$Infer: {
|
|
1940
|
-
Session: {
|
|
1941
|
-
user: {
|
|
1942
|
-
id: string;
|
|
1943
|
-
createdAt: Date;
|
|
1944
|
-
updatedAt: Date;
|
|
1945
|
-
email: string;
|
|
1946
|
-
emailVerified: boolean;
|
|
1947
|
-
name: string;
|
|
1948
|
-
image?: string | null | undefined;
|
|
1949
|
-
banned: boolean | null | undefined;
|
|
1950
|
-
role?: string | null | undefined;
|
|
1951
|
-
banReason?: string | null | undefined;
|
|
1952
|
-
banExpires?: Date | null | undefined;
|
|
1953
|
-
};
|
|
1954
|
-
session: {
|
|
1955
|
-
id: string;
|
|
1956
|
-
createdAt: Date;
|
|
1957
|
-
updatedAt: Date;
|
|
1958
|
-
userId: string;
|
|
1959
|
-
expiresAt: Date;
|
|
1960
|
-
token: string;
|
|
1961
|
-
ipAddress?: string | null | undefined;
|
|
1962
|
-
userAgent?: string | null | undefined;
|
|
1963
|
-
impersonatedBy?: string | null | undefined;
|
|
1964
|
-
activeOrganizationId?: string | null | undefined;
|
|
1965
|
-
};
|
|
1966
|
-
};
|
|
1967
|
-
};
|
|
1936
|
+
isPending: boolean;
|
|
1937
|
+
}>;
|
|
1968
1938
|
$fetch: _better_fetch_fetch88.BetterFetch<{
|
|
1969
1939
|
plugins: (_better_fetch_fetch88.BetterFetchPlugin | {
|
|
1970
1940
|
id: string;
|
|
@@ -2036,6 +2006,35 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2036
2006
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2037
2007
|
atoms: Record<string, nanostores0.WritableAtom<any>>;
|
|
2038
2008
|
};
|
|
2009
|
+
$Infer: {
|
|
2010
|
+
Session: {
|
|
2011
|
+
user: {
|
|
2012
|
+
id: string;
|
|
2013
|
+
createdAt: Date;
|
|
2014
|
+
updatedAt: Date;
|
|
2015
|
+
email: string;
|
|
2016
|
+
emailVerified: boolean;
|
|
2017
|
+
name: string;
|
|
2018
|
+
image?: string | null | undefined;
|
|
2019
|
+
banned: boolean | null | undefined;
|
|
2020
|
+
role?: string | null | undefined;
|
|
2021
|
+
banReason?: string | null | undefined;
|
|
2022
|
+
banExpires?: Date | null | undefined;
|
|
2023
|
+
};
|
|
2024
|
+
session: {
|
|
2025
|
+
id: string;
|
|
2026
|
+
createdAt: Date;
|
|
2027
|
+
updatedAt: Date;
|
|
2028
|
+
userId: string;
|
|
2029
|
+
expiresAt: Date;
|
|
2030
|
+
token: string;
|
|
2031
|
+
ipAddress?: string | null | undefined;
|
|
2032
|
+
userAgent?: string | null | undefined;
|
|
2033
|
+
impersonatedBy?: string | null | undefined;
|
|
2034
|
+
activeOrganizationId?: string | null | undefined;
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
};
|
|
2039
2038
|
$ERROR_CODES: {
|
|
2040
2039
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
2041
2040
|
readonly USER_ALREADY_EXISTS: "User already exists.";
|
|
@@ -2141,10 +2140,101 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2141
2140
|
};
|
|
2142
2141
|
};
|
|
2143
2142
|
}
|
|
2144
|
-
/** Instance type for
|
|
2145
|
-
type
|
|
2143
|
+
/** Instance type for BetterAuthVanillaAdapter */
|
|
2144
|
+
type BetterAuthVanillaAdapterInstance = BetterAuthVanillaAdapterImpl;
|
|
2145
|
+
/** Builder type that creates adapter instances */
|
|
2146
|
+
type BetterAuthVanillaAdapterBuilder = (url: string, fetchOptions?: {
|
|
2147
|
+
headers?: Record<string, string>;
|
|
2148
|
+
}) => BetterAuthVanillaAdapterInstance;
|
|
2149
|
+
/**
|
|
2150
|
+
* Factory function that returns an adapter builder.
|
|
2151
|
+
* The builder is called by createClient/createAuthClient with the URL.
|
|
2152
|
+
*
|
|
2153
|
+
* @param options - Optional adapter configuration (baseURL is injected separately)
|
|
2154
|
+
* @returns A builder function that creates the adapter instance
|
|
2155
|
+
*
|
|
2156
|
+
* @example
|
|
2157
|
+
* ```typescript
|
|
2158
|
+
* const client = createClient({
|
|
2159
|
+
* auth: {
|
|
2160
|
+
* url: 'https://auth.example.com',
|
|
2161
|
+
* adapter: BetterAuthVanillaAdapter(),
|
|
2162
|
+
* },
|
|
2163
|
+
* dataApi: { url: 'https://data-api.example.com' },
|
|
2164
|
+
* });
|
|
2165
|
+
* ```
|
|
2166
|
+
*/
|
|
2167
|
+
declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
|
|
2168
|
+
//#endregion
|
|
2169
|
+
//#region src/adapters/supabase/auth-interface.d.ts
|
|
2170
|
+
type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient>;
|
|
2171
|
+
type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
|
|
2172
|
+
type SupabaseAuthClientInterface = _AuthClientBase;
|
|
2173
|
+
//#endregion
|
|
2174
|
+
//#region src/adapters/supabase/supabase-adapter.d.ts
|
|
2175
|
+
type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
2176
|
+
/**
|
|
2177
|
+
* Internal implementation class - use SupabaseAuthAdapter factory function instead
|
|
2178
|
+
*/
|
|
2179
|
+
declare class SupabaseAuthAdapterImpl extends NeonAuthAdapterCore implements SupabaseAuthClientInterface {
|
|
2180
|
+
admin: SupabaseAuthClientInterface['admin'];
|
|
2181
|
+
mfa: SupabaseAuthClientInterface['mfa'];
|
|
2182
|
+
oauth: SupabaseAuthClientInterface['oauth'];
|
|
2183
|
+
private _betterAuth;
|
|
2184
|
+
private _stateChangeEmitters;
|
|
2185
|
+
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
2186
|
+
getBetterAuthInstance(): ReturnType<typeof createAuthClient<{
|
|
2187
|
+
plugins: SupportedBetterAuthClientPlugins;
|
|
2188
|
+
}>>;
|
|
2189
|
+
initialize: SupabaseAuthClientInterface['initialize'];
|
|
2190
|
+
getSession(options?: {
|
|
2191
|
+
forceFetch?: boolean;
|
|
2192
|
+
}): ReturnType<SupabaseAuthClientInterface['getSession']>;
|
|
2193
|
+
refreshSession: SupabaseAuthClientInterface['refreshSession'];
|
|
2194
|
+
setSession: SupabaseAuthClientInterface['setSession'];
|
|
2195
|
+
signUp: SupabaseAuthClientInterface['signUp'];
|
|
2196
|
+
signInAnonymously: SupabaseAuthClientInterface['signInAnonymously'];
|
|
2197
|
+
signInWithPassword: SupabaseAuthClientInterface['signInWithPassword'];
|
|
2198
|
+
signInWithOAuth: SupabaseAuthClientInterface['signInWithOAuth'];
|
|
2199
|
+
signInWithOtp: SupabaseAuthClientInterface['signInWithOtp'];
|
|
2200
|
+
signInWithIdToken: SupabaseAuthClientInterface['signInWithIdToken'];
|
|
2201
|
+
signInWithSSO: SupabaseAuthClientInterface['signInWithSSO'];
|
|
2202
|
+
signInWithWeb3: SupabaseAuthClientInterface['signInWithWeb3'];
|
|
2203
|
+
signOut: SupabaseAuthClientInterface['signOut'];
|
|
2204
|
+
getUser: SupabaseAuthClientInterface['getUser'];
|
|
2205
|
+
getClaims: (jwtArg?: string) => Promise<{
|
|
2206
|
+
data: {
|
|
2207
|
+
header: JwtHeader;
|
|
2208
|
+
claims: JwtPayload;
|
|
2209
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
2210
|
+
};
|
|
2211
|
+
error: null;
|
|
2212
|
+
} | {
|
|
2213
|
+
data: null;
|
|
2214
|
+
error: _supabase_auth_js0.AuthError;
|
|
2215
|
+
}>;
|
|
2216
|
+
updateUser: SupabaseAuthClientInterface['updateUser'];
|
|
2217
|
+
getUserIdentities: SupabaseAuthClientInterface['getUserIdentities'];
|
|
2218
|
+
linkIdentity: SupabaseAuthClientInterface['linkIdentity'];
|
|
2219
|
+
unlinkIdentity: SupabaseAuthClientInterface['unlinkIdentity'];
|
|
2220
|
+
verifyOtp: SupabaseAuthClientInterface['verifyOtp'];
|
|
2221
|
+
resetPasswordForEmail: SupabaseAuthClientInterface['resetPasswordForEmail'];
|
|
2222
|
+
reauthenticate: SupabaseAuthClientInterface['reauthenticate'];
|
|
2223
|
+
resend: SupabaseAuthClientInterface['resend'];
|
|
2224
|
+
exchangeCodeForSession: SupabaseAuthClientInterface['exchangeCodeForSession'];
|
|
2225
|
+
onAuthStateChange: SupabaseAuthClientInterface['onAuthStateChange'];
|
|
2226
|
+
isThrowOnErrorEnabled: SupabaseAuthClientInterface['isThrowOnErrorEnabled'];
|
|
2227
|
+
startAutoRefresh: SupabaseAuthClientInterface['startAutoRefresh'];
|
|
2228
|
+
stopAutoRefresh: SupabaseAuthClientInterface['stopAutoRefresh'];
|
|
2229
|
+
private verifyEmailOtp;
|
|
2230
|
+
private emitInitialSession;
|
|
2231
|
+
}
|
|
2232
|
+
/** Instance type for SupabaseAuthAdapter */
|
|
2233
|
+
type SupabaseAuthAdapterInstance = SupabaseAuthAdapterImpl;
|
|
2146
2234
|
/** Builder type that creates adapter instances */
|
|
2147
|
-
type
|
|
2235
|
+
type SupabaseAuthAdapterBuilder = (url: string, fetchOptions?: {
|
|
2236
|
+
headers?: Record<string, string>;
|
|
2237
|
+
}) => SupabaseAuthAdapterInstance;
|
|
2148
2238
|
/**
|
|
2149
2239
|
* Factory function that returns an adapter builder.
|
|
2150
2240
|
* The builder is called by createClient/createAuthClient with the URL.
|
|
@@ -2157,12 +2247,12 @@ type BetterAuthReactAdapterBuilder = (url: string) => BetterAuthReactAdapterInst
|
|
|
2157
2247
|
* const client = createClient({
|
|
2158
2248
|
* auth: {
|
|
2159
2249
|
* url: 'https://auth.example.com',
|
|
2160
|
-
* adapter:
|
|
2250
|
+
* adapter: SupabaseAuthAdapter(),
|
|
2161
2251
|
* },
|
|
2162
2252
|
* dataApi: { url: 'https://data-api.example.com' },
|
|
2163
2253
|
* });
|
|
2164
2254
|
* ```
|
|
2165
2255
|
*/
|
|
2166
|
-
declare function
|
|
2256
|
+
declare function SupabaseAuthAdapter(options?: SupabaseAuthAdapterOptions): SupabaseAuthAdapterBuilder;
|
|
2167
2257
|
//#endregion
|
|
2168
|
-
export {
|
|
2258
|
+
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 };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as BetterAuthSession, r as BetterAuthUser, t as BetterAuthErrorResponse } from "../better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import { C as TeamInput, E as UserWithRole, S as Team, T as TeamMemberInput, _ as MemberInput, a as BetterAuthInstance, b as OrganizationRole, c as InferAdminRolesFromOption, d as InvitationStatus, f as JWKOptions, g as Member, h as JwtOptions, i as AdminOptions, l as Invitation, m as Jwk, o as BetterFetchError, p as JWSAlgorithms, s as EmailOTPOptions, u as InvitationInput, v as Organization, w as TeamMember, x as SessionWithImpersonatedBy, y as OrganizationInput } from "../adapter-core-
|
|
2
|
+
import { C as TeamInput, E as UserWithRole, S as Team, T as TeamMemberInput, _ as MemberInput, a as BetterAuthInstance, b as OrganizationRole, c as InferAdminRolesFromOption, d as InvitationStatus, f as JWKOptions, g as Member, h as JwtOptions, i as AdminOptions, l as Invitation, m as Jwk, o as BetterFetchError, p as JWSAlgorithms, s as EmailOTPOptions, u as InvitationInput, v as Organization, w as TeamMember, x as SessionWithImpersonatedBy, y as OrganizationInput } from "../adapter-core-23fYTUxT.mjs";
|
|
3
3
|
export * from "better-auth/types";
|
|
4
4
|
export { AdminOptions, BetterAuthErrorResponse, BetterAuthInstance, BetterAuthSession, BetterAuthUser, BetterFetchError, EmailOTPOptions, InferAdminRolesFromOption, Invitation, InvitationInput, InvitationStatus, JWKOptions, JWSAlgorithms, Jwk, JwtOptions, Member, MemberInput, Organization, OrganizationInput, OrganizationRole, SessionWithImpersonatedBy, Team, TeamInput, TeamMember, TeamMemberInput, UserWithRole };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import "../../adapter-core-
|
|
3
|
-
import { a as BetterAuthVanillaAdapter, c as BetterAuthVanillaAdapterOptions, i as SupabaseAuthAdapterOptions, n as SupabaseAuthAdapterBuilder, o as BetterAuthVanillaAdapterBuilder, r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance, t as SupabaseAuthAdapter } from "../../supabase-adapter-
|
|
2
|
+
import "../../adapter-core-23fYTUxT.mjs";
|
|
3
|
+
import { a as BetterAuthVanillaAdapter, c as BetterAuthVanillaAdapterOptions, i as SupabaseAuthAdapterOptions, n as SupabaseAuthAdapterBuilder, o as BetterAuthVanillaAdapterBuilder, r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance, t as SupabaseAuthAdapter } from "../../supabase-adapter-Dr-pKvPt.mjs";
|
|
4
4
|
import "../../index-LhFpnU-f.mjs";
|
|
5
5
|
export { BetterAuthVanillaAdapter, BetterAuthVanillaAdapterBuilder, BetterAuthVanillaAdapterInstance, BetterAuthVanillaAdapterOptions, SupabaseAuthAdapter, SupabaseAuthAdapterBuilder, SupabaseAuthAdapterInstance, SupabaseAuthAdapterOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../adapter-core-
|
|
2
|
-
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../../supabase-adapter-
|
|
1
|
+
import "../../adapter-core-8s6XdCco.mjs";
|
|
2
|
+
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../../supabase-adapter-BYMJSxOT.mjs";
|
|
3
3
|
|
|
4
4
|
export { BetterAuthVanillaAdapter, SupabaseAuthAdapter };
|
package/dist/vanilla/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../better-auth-types-BUiggBfa.mjs";
|
|
2
|
-
import "../adapter-core-
|
|
3
|
-
import { a as BetterAuthVanillaAdapter, c as BetterAuthVanillaAdapterOptions, i as SupabaseAuthAdapterOptions, n as SupabaseAuthAdapterBuilder, o as BetterAuthVanillaAdapterBuilder, r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance, t as SupabaseAuthAdapter } from "../supabase-adapter-
|
|
2
|
+
import "../adapter-core-23fYTUxT.mjs";
|
|
3
|
+
import { a as BetterAuthVanillaAdapter, c as BetterAuthVanillaAdapterOptions, i as SupabaseAuthAdapterOptions, n as SupabaseAuthAdapterBuilder, o as BetterAuthVanillaAdapterBuilder, r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance, t as SupabaseAuthAdapter } from "../supabase-adapter-Dr-pKvPt.mjs";
|
|
4
4
|
import "../index-LhFpnU-f.mjs";
|
|
5
5
|
export { BetterAuthVanillaAdapter, BetterAuthVanillaAdapterBuilder, BetterAuthVanillaAdapterInstance, BetterAuthVanillaAdapterOptions, SupabaseAuthAdapter, SupabaseAuthAdapterBuilder, SupabaseAuthAdapterInstance, SupabaseAuthAdapterOptions };
|
package/dist/vanilla/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../supabase-adapter-
|
|
1
|
+
import "../adapter-core-8s6XdCco.mjs";
|
|
2
|
+
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../supabase-adapter-BYMJSxOT.mjs";
|
|
3
3
|
|
|
4
4
|
export { BetterAuthVanillaAdapter, SupabaseAuthAdapter };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neondatabase/auth",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.20",
|
|
4
4
|
"description": "TypeScript SDK for Neon Auth - authentication for PostgreSQL with multiple adapter support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -104,20 +104,21 @@
|
|
|
104
104
|
"release": "bun run build && bumpp --tag 'auth-v%s' && bun publish --tag latest"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
+
"@neondatabase/internal": "0.0.1",
|
|
107
108
|
"msw": "2.6.8",
|
|
108
109
|
"next": "16.0.6"
|
|
109
110
|
},
|
|
110
111
|
"dependencies": {
|
|
112
|
+
"@neondatabase/auth-ui": "0.1.0-alpha.10",
|
|
111
113
|
"@supabase/auth-js": "2.79.0",
|
|
112
114
|
"better-auth": "1.4.6",
|
|
113
|
-
"zod": "4.1.12",
|
|
114
115
|
"jose": "6.1.2",
|
|
115
|
-
"
|
|
116
|
+
"zod": "4.1.12"
|
|
116
117
|
},
|
|
117
118
|
"peerDependencies": {
|
|
118
119
|
"react": ">=18.0.0",
|
|
119
120
|
"react-dom": ">=18.0.0",
|
|
120
|
-
"next": "16.0.6"
|
|
121
|
+
"next": ">=16.0.6"
|
|
121
122
|
},
|
|
122
123
|
"peerDependenciesMeta": {
|
|
123
124
|
"react": {
|