@neondatabase/auth 0.1.0-beta.11 → 0.1.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/{adapter-core-Bw9mn_AS.d.mts → adapter-core-D1HVvYeG.d.mts} +162 -130
- package/dist/{adapter-core-C_NEMs0b.mjs → adapter-core-Ed-EN_tr.mjs} +162 -35
- package/dist/better-auth-react-adapter-C4kQ31os.d.mts +2194 -0
- package/dist/{better-auth-react-adapter-BbM3jLLv.mjs → better-auth-react-adapter-COSlFmvp.mjs} +1 -6
- package/dist/{chunk-5DLVHPZS-Bxj7snpZ-DoVNlsyk.mjs → chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs} +2 -2
- package/dist/index.d.mts +9 -3
- package/dist/index.mjs +1 -1
- package/dist/{neon-auth-DdlToh7_.mjs → neon-auth-BHWfv-bR.mjs} +4 -3
- package/dist/next/index.d.mts +45 -30
- package/dist/next/index.mjs +2 -2
- package/dist/react/adapters/index.d.mts +2 -2
- package/dist/react/adapters/index.mjs +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.mjs +3 -3
- package/dist/react/ui/index.mjs +2 -2
- package/dist/react/ui/server.mjs +1 -1
- package/dist/supabase-adapter-BFja3Oys.d.mts +2280 -0
- package/dist/{supabase-adapter-CAqbpOC7.mjs → supabase-adapter-NVDAeWHu.mjs} +1 -11
- package/dist/ui/.safelist.html +1 -1
- package/dist/{ui-aMoA-9nq.mjs → ui-C1IRQzLY.mjs} +49 -49
- package/dist/vanilla/adapters/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.mjs +1 -1
- package/dist/vanilla/index.d.mts +2 -2
- package/dist/vanilla/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/better-auth-react-adapter-JoscqoDc.d.mts +0 -722
- package/dist/supabase-adapter-Clxlqg1x.d.mts +0 -127
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DEFAULT_SESSION_EXPIRY_MS, 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 { a as DEFAULT_SESSION_EXPIRY_MS, i as CURRENT_TAB_CLIENT_ID, n as BETTER_AUTH_METHODS_CACHE, r as BETTER_AUTH_METHODS_HOOKS, t as NeonAuthAdapterCore } from "./adapter-core-Ed-EN_tr.mjs";
|
|
2
2
|
import { createAuthClient, getGlobalBroadcastChannel } from "better-auth/client";
|
|
3
3
|
import { AuthApiError, AuthError, isAuthError } from "@supabase/auth-js";
|
|
4
4
|
import { base64url, decodeJwt, decodeProtectedHeader } from "jose";
|
|
@@ -16,11 +16,6 @@ var BetterAuthVanillaAdapterImpl = class extends NeonAuthAdapterCore {
|
|
|
16
16
|
getBetterAuthInstance() {
|
|
17
17
|
return this._betterAuth;
|
|
18
18
|
}
|
|
19
|
-
async getJWTToken() {
|
|
20
|
-
const session = await this._betterAuth.getSession();
|
|
21
|
-
if (session.error) throw session.error;
|
|
22
|
-
return session.data?.session?.token ?? null;
|
|
23
|
-
}
|
|
24
19
|
};
|
|
25
20
|
/**
|
|
26
21
|
* Factory function that returns an adapter builder.
|
|
@@ -632,11 +627,6 @@ var SupabaseAuthAdapterImpl = class extends NeonAuthAdapterCore {
|
|
|
632
627
|
getBetterAuthInstance() {
|
|
633
628
|
return this._betterAuth;
|
|
634
629
|
}
|
|
635
|
-
async getJWTToken() {
|
|
636
|
-
const session = await this.getSession();
|
|
637
|
-
if (session.error) return null;
|
|
638
|
-
return session.data.session?.access_token ?? null;
|
|
639
|
-
}
|
|
640
630
|
initialize = async () => {
|
|
641
631
|
try {
|
|
642
632
|
const session = await this.getSession();
|
package/dist/ui/.safelist.html
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<!-- Auto-generated safelist for better-auth-ui classes -->
|
|
2
2
|
<!-- This file ensures all necessary utilities are generated -->
|
|
3
|
-
<div class="!bg-transparent !p-2 !py-5 !size-8 !w-auto -mx-1 -my-1 @container/card-header [&_p]:leading-relaxed [&_svg:not([class*= [&_svg]:pointer-events-none [&_svg]:shrink-0 [.border-b]:pb-6 [.border-t]:pt-6 absolute action-button animate-caret-blink animate-pulse animate-spin aria-invalid:border-destructive aria-invalid:ring-destructive/20 aspect-square auto-rows-min bg-accent bg-background bg-black/50 bg-border bg-card bg-foreground bg-muted bg-popover bg-transparent border border-color border-input border-r border-solid border-transparent border-y break-all col-start-2 cursor-default dark:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 dark:data-[state=active]:bg-input/30 dark:data-[state=active]:border-input dark:data-[state=active]:text-foreground dark:data-[state=checked]:bg-primary dark:data-[variant=destructive]:focus:bg-destructive/20 dark:text-muted-foreground data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 data-[active=true]:border-ring data-[active=true]:ring-[3px] data-[active=true]:ring-ring/50 data-[active=true]:z-10 data-[disabled]:opacity-50 data-[disabled]:pointer-events-none data-[error=true]:text-destructive data-[inset]:pl-8 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px data-[placeholder]:text-muted-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=active]:bg-background data-[state=active]:shadow-sm data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:bg-accent data-[state=open]:fade-in-0 data-[state=open]:text-accent-foreground data-[state=open]:text-muted-foreground data-[state=open]:zoom-in-95 data-[variant=destructive]:*:[svg]:!text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:text-destructive disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none duration-1000 duration-200 field-sizing-content file:bg-transparent file:border-0 file:font-medium file:h-7 file:inline-flex file:text-foreground file:text-sm fill-current first:border-l first:rounded-l-md fixed flex flex-1 flex-col flex-col-reverse flex-row flex-shrink-0 focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus:bg-accent focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-ring focus:text-accent-foreground font-bold font-medium font-mono font-sans font-semibold gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-4 gap-6 grid grid-cols-2 grid-rows-[auto_auto] group-data-[disabled=true]:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[vaul-drawer-direction=bottom]/drawer-content:block group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center group/drawer-content grow h-2 h-3 h-4 h-5 h-8 h-9 h-[calc(100%-1px)] h-auto h-fit h-px has-data-[slot=card-action]:grid-cols-[1fr_auto] has-disabled:opacity-50 hidden hover:opacity-100 hover:underline inline-flex inset-0 items-center items-start justify-between justify-center justify-items-center justify-items-start justify-self-end justify-start last:rounded-r-md leading-[24px] leading-none leading-tight left-2 left-[50%] lg:w-60 line-clamp-1 max-h-(--radix-dropdown-menu-content-available-height) max-h-(--radix-select-content-available-height) max-w-14 max-w-32 max-w-56 max-w-64 max-w-[465px] max-w-[calc(100%-2rem)] max-w-full max-w-sm mb-0.5 mb-[32px] md:block md:flex-row md:gap-1.5 md:gap-12 md:gap-6 md:h-3.5 md:h-4 md:h-5.5 md:hidden md:ms-auto md:text-left md:text-sm md:text-start md:text-xl md:w-40 md:w-56 md:w-64 me-6 min-h-16 min-h-4 min-w-0 min-w-56 min-w-[8rem] ml-1 ml-auto ms-auto mt-0.5 mt-1.5 mt-4 mt-[32px] mt-auto mx-0 mx-auto my-0 my-0.5 my-1 my-2 my-[26px] my-[30px] my-[40px] my-auto no-underline opacity-50 opacity-70 origin-(--radix-dropdown-menu-content-transform-origin) origin-(--radix-select-content-transform-origin) outline-hidden outline-none overflow-hidden overflow-x-hidden overflow-y-auto p-0 p-1 p-2 p-4 p-6 p-[20px] p-[3px] pb-0 pb-4 peer peer-disabled:cursor-not-allowed peer-disabled:opacity-50 pl-8 placeholder:text-muted-foreground pointer-events-none pr-2 px-0 px-2 px-3 px-4 px-5 px-6 py-1 py-1.5 py-2 py-3 py-4 py-6 relative right-0 right-2 right-4 ring-offset-background rounded rounded-[4px] rounded-b-xl rounded-full rounded-lg rounded-md rounded-sm rounded-xl rounded-xs row-span-2 row-start-1 select-none selection:bg-primary selection:text-primary-foreground self-center self-start shadow-lg shadow-md shadow-sm shadow-xs shrink-0 shrink-2 size-10 size-16 size-2 size-20 size-3 size-3.5 size-4 size-5 size-8 size-[50%] size-fit size-full sm:flex-row sm:justify-end sm:max-w-lg sm:max-w-md sm:text-left space-y-3 space-y-6 sr-only st0 st1 text-2xl text-[#666666] text-[12px] text-[14px] text-[24px] text-base text-card-foreground text-center text-current text-destructive text-foreground text-left text-lg text-muted-foreground text-popover-foreground text-sm text-start text-xs top-0 top-4 top-[50%] tracking-tight tracking-widest transition-[color,box-shadow] transition-all transition-none transition-opacity transition-shadow translate-x-[-50%] translate-y-[-50%] truncate underline uppercase w-1/3 w-12 w-14 w-2/3 w-24 w-28 w-32 w-48 w-9 w-[--radix-dropdown-menu-trigger-width] w-[--radix-select-trigger-width] w-[100px] w-fit w-full w-px whitespace-nowrap z-50"></div>
|
|
3
|
+
<div class="!bg-transparent !p-2 !py-5 !size-8 !w-auto *:[span]:last:flex *:[span]:last:gap-2 *:[span]:last:items-center *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:items-center *:data-[slot=select-value]:line-clamp-1 -mx-1 -my-1 @container/card-header [&_p]:leading-relaxed [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [.border-b]:pb-6 [.border-t]:pt-6 absolute action-button animate-caret-blink animate-pulse animate-spin aria-invalid:border-destructive aria-invalid:ring-destructive/20 aspect-square auto-rows-min bg-accent bg-background bg-black/50 bg-border bg-card bg-foreground bg-muted bg-popover bg-transparent border border-color border-input border-r border-solid border-transparent border-y break-all col-start-2 cursor-default dark:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 dark:data-[state=active]:bg-input/30 dark:data-[state=active]:border-input dark:data-[state=active]:text-foreground dark:data-[state=checked]:bg-primary dark:data-[variant=destructive]:focus:bg-destructive/20 dark:hover:bg-input/50 dark:text-muted-foreground data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 data-[active=true]:border-ring data-[active=true]:ring-[3px] data-[active=true]:ring-ring/50 data-[active=true]:z-10 data-[disabled]:opacity-50 data-[disabled]:pointer-events-none data-[error=true]:text-destructive data-[inset]:pl-8 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px data-[placeholder]:text-muted-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[size=default]:h-9 data-[size=sm]:h-8 data-[state=active]:bg-background data-[state=active]:shadow-sm data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:bg-accent data-[state=open]:fade-in-0 data-[state=open]:text-accent-foreground data-[state=open]:text-muted-foreground data-[state=open]:zoom-in-95 data-[variant=destructive]:*:[svg]:!text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:text-destructive disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none duration-1000 duration-200 field-sizing-content file:bg-transparent file:border-0 file:font-medium file:h-7 file:inline-flex file:text-foreground file:text-sm fill-current first:border-l first:rounded-l-md fixed flex flex-1 flex-col flex-col-reverse flex-row flex-shrink-0 focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus:bg-accent focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-ring focus:text-accent-foreground font-bold font-medium font-mono font-sans font-semibold gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-4 gap-6 grid grid-cols-2 grid-rows-[auto_auto] group-data-[disabled=true]:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[vaul-drawer-direction=bottom]/drawer-content:block group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center group/drawer-content grow h-2 h-3 h-4 h-5 h-8 h-9 h-[calc(100%-1px)] h-auto h-fit h-px has-data-[slot=card-action]:grid-cols-[1fr_auto] has-disabled:opacity-50 hidden hover:opacity-100 hover:underline inline-flex inset-0 items-center items-start justify-between justify-center justify-items-center justify-items-start justify-self-end justify-start last:rounded-r-md leading-[24px] leading-none leading-tight left-2 left-[50%] lg:w-60 line-clamp-1 max-h-(--radix-dropdown-menu-content-available-height) max-h-(--radix-select-content-available-height) max-w-14 max-w-32 max-w-56 max-w-64 max-w-[465px] max-w-[calc(100%-2rem)] max-w-full max-w-sm mb-0.5 mb-[32px] md:block md:flex-row md:gap-1.5 md:gap-12 md:gap-6 md:h-3.5 md:h-4 md:h-5.5 md:hidden md:ms-auto md:text-left md:text-sm md:text-start md:text-xl md:w-40 md:w-56 md:w-64 me-6 min-h-16 min-h-4 min-w-0 min-w-56 min-w-[8rem] ml-1 ml-auto ms-auto mt-0.5 mt-1.5 mt-4 mt-[32px] mt-auto mx-0 mx-auto my-0 my-0.5 my-1 my-2 my-[26px] my-[30px] my-[40px] my-auto no-underline opacity-50 opacity-70 origin-(--radix-dropdown-menu-content-transform-origin) origin-(--radix-select-content-transform-origin) outline-hidden outline-none overflow-hidden overflow-x-hidden overflow-y-auto p-0 p-1 p-2 p-4 p-6 p-[20px] p-[3px] pb-0 pb-4 peer peer-disabled:cursor-not-allowed peer-disabled:opacity-50 pl-2 pl-8 placeholder:text-muted-foreground pointer-events-none pr-2 pr-8 px-0 px-2 px-3 px-4 px-5 px-6 py-1 py-1.5 py-2 py-3 py-4 py-6 relative right-0 right-2 right-4 ring-offset-background rounded rounded-[4px] rounded-b-xl rounded-full rounded-lg rounded-md rounded-sm rounded-xl rounded-xs row-span-2 row-start-1 select-none selection:bg-primary selection:text-primary-foreground self-center self-start shadow-lg shadow-md shadow-sm shadow-xs shrink-0 shrink-2 size-10 size-16 size-2 size-20 size-3 size-3.5 size-4 size-5 size-8 size-[50%] size-fit size-full sm:flex-row sm:justify-end sm:max-w-lg sm:max-w-md sm:text-left space-y-3 space-y-6 sr-only st0 st1 text-2xl text-[#666666] text-[12px] text-[14px] text-[24px] text-base text-card-foreground text-center text-current text-destructive text-foreground text-left text-lg text-muted-foreground text-popover-foreground text-sm text-start text-xs top-0 top-4 top-[50%] tracking-tight tracking-widest transition-[color,box-shadow] transition-all transition-none transition-opacity transition-shadow translate-x-[-50%] translate-y-[-50%] truncate underline uppercase w-1/3 w-12 w-14 w-2/3 w-24 w-28 w-32 w-48 w-9 w-[--radix-dropdown-menu-trigger-width] w-[--radix-select-trigger-width] w-[100px] w-fit w-full w-px whitespace-nowrap z-50"></div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as getLocalizedError, c as getViewByPath, i as cn, l as isValidEmail, n as authLocalization, o as getPasswordSchema, r as authViewPaths, s as getSearchParam, t as accountViewPaths, u as organizationViewPaths } from "./chunk-5DLVHPZS-Bxj7snpZ-
|
|
3
|
-
import * as z from "zod";
|
|
2
|
+
import { a as getLocalizedError, c as getViewByPath, i as cn, l as isValidEmail, n as authLocalization, o as getPasswordSchema, r as authViewPaths, s as getSearchParam, t as accountViewPaths, u as organizationViewPaths } from "./chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
3
|
+
import * as z$1 from "zod";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
6
6
|
import { Toaster, toast } from "sonner";
|
|
@@ -1487,10 +1487,10 @@ function CreateOrganizationDialog({ className, classNames, localization: localiz
|
|
|
1487
1487
|
return (_a2 = fileInputRef.current) == null ? void 0 : _a2.click();
|
|
1488
1488
|
};
|
|
1489
1489
|
const form = useForm({
|
|
1490
|
-
resolver: zodResolver(z.object({
|
|
1491
|
-
logo: z.string().optional(),
|
|
1492
|
-
name: z.string().min(1, { message: `${localization.ORGANIZATION_NAME} ${localization.IS_REQUIRED}` }),
|
|
1493
|
-
slug: z.string().min(1, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_REQUIRED}` }).regex(/^[a-z0-9-]+$/, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_INVALID}` })
|
|
1490
|
+
resolver: zodResolver(z$1.object({
|
|
1491
|
+
logo: z$1.string().optional(),
|
|
1492
|
+
name: z$1.string().min(1, { message: `${localization.ORGANIZATION_NAME} ${localization.IS_REQUIRED}` }),
|
|
1493
|
+
slug: z$1.string().min(1, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_REQUIRED}` }).regex(/^[a-z0-9-]+$/, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_INVALID}` })
|
|
1494
1494
|
})),
|
|
1495
1495
|
defaultValues: {
|
|
1496
1496
|
logo: "",
|
|
@@ -2397,12 +2397,12 @@ function UpdateFieldCard({ className, classNames, description, instructions, loc
|
|
|
2397
2397
|
...localizationProp
|
|
2398
2398
|
}), [contextLocalization, localizationProp]);
|
|
2399
2399
|
const { isPending } = useSession();
|
|
2400
|
-
let fieldSchema = z.unknown();
|
|
2401
|
-
if (type === "number") fieldSchema = required ? z.preprocess((val) => !val ? void 0 : Number(val), z.number({ message: `${label} ${localization.IS_INVALID}` })) : z.coerce.number({ message: `${label} ${localization.IS_INVALID}` }).optional();
|
|
2402
|
-
else if (type === "boolean") fieldSchema = required ? z.coerce.boolean({ message: `${label} ${localization.IS_INVALID}` }).refine((val) => val === true, { message: `${label} ${localization.IS_REQUIRED}` }) : z.coerce.boolean({ message: `${label} ${localization.IS_INVALID}` });
|
|
2403
|
-
else fieldSchema = required ? z.string().min(1, `${label} ${localization.IS_REQUIRED}`) : z.string().optional();
|
|
2400
|
+
let fieldSchema = z$1.unknown();
|
|
2401
|
+
if (type === "number") fieldSchema = required ? z$1.preprocess((val) => !val ? void 0 : Number(val), z$1.number({ message: `${label} ${localization.IS_INVALID}` })) : z$1.coerce.number({ message: `${label} ${localization.IS_INVALID}` }).optional();
|
|
2402
|
+
else if (type === "boolean") fieldSchema = required ? z$1.coerce.boolean({ message: `${label} ${localization.IS_INVALID}` }).refine((val) => val === true, { message: `${label} ${localization.IS_REQUIRED}` }) : z$1.coerce.boolean({ message: `${label} ${localization.IS_INVALID}` });
|
|
2403
|
+
else fieldSchema = required ? z$1.string().min(1, `${label} ${localization.IS_REQUIRED}`) : z$1.string().optional();
|
|
2404
2404
|
const form = useForm({
|
|
2405
|
-
resolver: zodResolver(z.object({ [name]: fieldSchema })),
|
|
2405
|
+
resolver: zodResolver(z$1.object({ [name]: fieldSchema })),
|
|
2406
2406
|
values: { [name]: value || "" }
|
|
2407
2407
|
});
|
|
2408
2408
|
const { isSubmitting } = form.formState;
|
|
@@ -2553,7 +2553,7 @@ function ChangeEmailCard({ className, classNames, localization, ...props }) {
|
|
|
2553
2553
|
const { data: sessionData, isPending, refetch } = useSession();
|
|
2554
2554
|
const [resendDisabled, setResendDisabled] = useState(false);
|
|
2555
2555
|
const form = useForm({
|
|
2556
|
-
resolver: zodResolver(z.object({ email: z.string().email({ message: localization.INVALID_EMAIL }) })),
|
|
2556
|
+
resolver: zodResolver(z$1.object({ email: z$1.string().email({ message: localization.INVALID_EMAIL }) })),
|
|
2557
2557
|
values: { email: (sessionData == null ? void 0 : sessionData.user.email) || "" }
|
|
2558
2558
|
});
|
|
2559
2559
|
const resendForm = useForm();
|
|
@@ -3037,10 +3037,10 @@ function CreateApiKeyDialog({ classNames, localization, onSuccess, refetch, orga
|
|
|
3037
3037
|
const user = sessionData == null ? void 0 : sessionData.user;
|
|
3038
3038
|
const showOrganizationSelect = contextOrganization == null ? void 0 : contextOrganization.apiKey;
|
|
3039
3039
|
const form = useForm({
|
|
3040
|
-
resolver: zodResolver(z.object({
|
|
3041
|
-
name: z.string().min(1, `${localization.NAME} ${localization.IS_REQUIRED}`),
|
|
3042
|
-
expiresInDays: z.string().optional(),
|
|
3043
|
-
organizationId: showOrganizationSelect ? z.string().min(1, `${localization.ORGANIZATION} ${localization.IS_REQUIRED}`) : z.string().optional()
|
|
3040
|
+
resolver: zodResolver(z$1.object({
|
|
3041
|
+
name: z$1.string().min(1, `${localization.NAME} ${localization.IS_REQUIRED}`),
|
|
3042
|
+
expiresInDays: z$1.string().optional(),
|
|
3043
|
+
organizationId: showOrganizationSelect ? z$1.string().min(1, `${localization.ORGANIZATION} ${localization.IS_REQUIRED}`) : z$1.string().optional()
|
|
3044
3044
|
})),
|
|
3045
3045
|
values: {
|
|
3046
3046
|
name: "",
|
|
@@ -3295,7 +3295,7 @@ function DeleteAccountDialog({ classNames, accounts, localization, onOpenChange,
|
|
|
3295
3295
|
const isFresh = session ? Date.now() - new Date(session == null ? void 0 : session.createdAt).getTime() < freshAge * 1e3 : false;
|
|
3296
3296
|
const credentialsLinked = accounts == null ? void 0 : accounts.some((acc) => acc.providerId === "credential");
|
|
3297
3297
|
const form = useForm({
|
|
3298
|
-
resolver: zodResolver(z.object({ password: credentialsLinked ? z.string().min(1, { message: localization.PASSWORD_REQUIRED }) : z.string().optional() })),
|
|
3298
|
+
resolver: zodResolver(z$1.object({ password: credentialsLinked ? z$1.string().min(1, { message: localization.PASSWORD_REQUIRED }) : z$1.string().optional() })),
|
|
3299
3299
|
defaultValues: { password: "" }
|
|
3300
3300
|
});
|
|
3301
3301
|
const { isSubmitting } = form.formState;
|
|
@@ -4192,7 +4192,7 @@ function ChangePasswordCard({ className, classNames, accounts, isPending, locali
|
|
|
4192
4192
|
isPending = result.isPending;
|
|
4193
4193
|
}
|
|
4194
4194
|
const form = useForm({
|
|
4195
|
-
resolver: zodResolver(z.object({
|
|
4195
|
+
resolver: zodResolver(z$1.object({
|
|
4196
4196
|
currentPassword: getPasswordSchema(passwordValidation, localization),
|
|
4197
4197
|
newPassword: getPasswordSchema(passwordValidation, {
|
|
4198
4198
|
PASSWORD_REQUIRED: localization.NEW_PASSWORD_REQUIRED,
|
|
@@ -4205,7 +4205,7 @@ function ChangePasswordCard({ className, classNames, accounts, isPending, locali
|
|
|
4205
4205
|
PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
|
|
4206
4206
|
PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
|
|
4207
4207
|
INVALID_PASSWORD: localization.INVALID_PASSWORD
|
|
4208
|
-
}) : z.string().optional()
|
|
4208
|
+
}) : z$1.string().optional()
|
|
4209
4209
|
}).refine((data) => !confirmPasswordEnabled || data.newPassword === data.confirmPassword, {
|
|
4210
4210
|
message: localization.PASSWORDS_DO_NOT_MATCH,
|
|
4211
4211
|
path: ["confirmPassword"]
|
|
@@ -4506,7 +4506,7 @@ function TwoFactorPasswordDialog({ classNames, onOpenChange, isTwoFactorEnabled,
|
|
|
4506
4506
|
const [backupCodes, setBackupCodes] = useState([]);
|
|
4507
4507
|
const [totpURI, setTotpURI] = useState(null);
|
|
4508
4508
|
const form = useForm({
|
|
4509
|
-
resolver: zodResolver(z.object({ password: z.string().min(1, { message: localization.PASSWORD_REQUIRED }) })),
|
|
4509
|
+
resolver: zodResolver(z$1.object({ password: z$1.string().min(1, { message: localization.PASSWORD_REQUIRED }) })),
|
|
4510
4510
|
defaultValues: { password: "" }
|
|
4511
4511
|
});
|
|
4512
4512
|
const { isSubmitting } = form.formState;
|
|
@@ -5182,7 +5182,7 @@ function EmailForm({ className, classNames, isSubmitting, localization, setIsSub
|
|
|
5182
5182
|
...localization
|
|
5183
5183
|
};
|
|
5184
5184
|
const form = useForm({
|
|
5185
|
-
resolver: zodResolver(z.object({ email: z.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }) })),
|
|
5185
|
+
resolver: zodResolver(z$1.object({ email: z$1.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }) })),
|
|
5186
5186
|
defaultValues: { email: "" }
|
|
5187
5187
|
});
|
|
5188
5188
|
isSubmitting = isSubmitting || form.formState.isSubmitting;
|
|
@@ -5264,7 +5264,7 @@ function OTPForm({ className, classNames, isSubmitting, localization, otpSeparat
|
|
|
5264
5264
|
};
|
|
5265
5265
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({ redirectTo });
|
|
5266
5266
|
const form = useForm({
|
|
5267
|
-
resolver: zodResolver(z.object({ code: z.string().min(1, { message: `${localization.EMAIL_OTP} ${localization.IS_REQUIRED}` }).min(6, { message: `${localization.EMAIL_OTP} ${localization.IS_INVALID}` }) })),
|
|
5267
|
+
resolver: zodResolver(z$1.object({ code: z$1.string().min(1, { message: `${localization.EMAIL_OTP} ${localization.IS_REQUIRED}` }).min(6, { message: `${localization.EMAIL_OTP} ${localization.IS_INVALID}` }) })),
|
|
5268
5268
|
defaultValues: { code: "" }
|
|
5269
5269
|
});
|
|
5270
5270
|
isSubmitting = isSubmitting || form.formState.isSubmitting || transitionPending;
|
|
@@ -5343,7 +5343,7 @@ function ForgotPasswordForm({ className, classNames, isSubmitting, localization,
|
|
|
5343
5343
|
...localization
|
|
5344
5344
|
};
|
|
5345
5345
|
const form = useForm({
|
|
5346
|
-
resolver: zodResolver(z.object({ email: z.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }).min(1, { message: `${localization.EMAIL} ${localization.IS_REQUIRED}` }) })),
|
|
5346
|
+
resolver: zodResolver(z$1.object({ email: z$1.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }).min(1, { message: `${localization.EMAIL} ${localization.IS_REQUIRED}` }) })),
|
|
5347
5347
|
defaultValues: { email: "" }
|
|
5348
5348
|
});
|
|
5349
5349
|
isSubmitting = isSubmitting || form.formState.isSubmitting;
|
|
@@ -5436,7 +5436,7 @@ function MagicLinkForm({ className, classNames, callbackURL: callbackURLProp, is
|
|
|
5436
5436
|
getRedirectTo
|
|
5437
5437
|
]);
|
|
5438
5438
|
const form = useForm({
|
|
5439
|
-
resolver: zodResolver(z.object({ email: z.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }) })),
|
|
5439
|
+
resolver: zodResolver(z$1.object({ email: z$1.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }) })),
|
|
5440
5440
|
defaultValues: { email: "" }
|
|
5441
5441
|
});
|
|
5442
5442
|
isSubmitting = isSubmitting || form.formState.isSubmitting;
|
|
@@ -5519,7 +5519,7 @@ function RecoverAccountForm({ className, classNames, isSubmitting, localization,
|
|
|
5519
5519
|
};
|
|
5520
5520
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({ redirectTo });
|
|
5521
5521
|
const form = useForm({
|
|
5522
|
-
resolver: zodResolver(z.object({ code: z.string().min(1, { message: localization.BACKUP_CODE_REQUIRED }) })),
|
|
5522
|
+
resolver: zodResolver(z$1.object({ code: z$1.string().min(1, { message: localization.BACKUP_CODE_REQUIRED }) })),
|
|
5523
5523
|
defaultValues: { code: "" }
|
|
5524
5524
|
});
|
|
5525
5525
|
isSubmitting = isSubmitting || form.formState.isSubmitting || transitionPending;
|
|
@@ -5594,7 +5594,7 @@ function ResetPasswordForm({ className, classNames, localization, passwordValida
|
|
|
5594
5594
|
...passwordValidation
|
|
5595
5595
|
};
|
|
5596
5596
|
const form = useForm({
|
|
5597
|
-
resolver: zodResolver(z.object({
|
|
5597
|
+
resolver: zodResolver(z$1.object({
|
|
5598
5598
|
newPassword: getPasswordSchema(passwordValidation, {
|
|
5599
5599
|
PASSWORD_REQUIRED: localization.NEW_PASSWORD_REQUIRED,
|
|
5600
5600
|
PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
|
|
@@ -5606,7 +5606,7 @@ function ResetPasswordForm({ className, classNames, localization, passwordValida
|
|
|
5606
5606
|
PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
|
|
5607
5607
|
PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
|
|
5608
5608
|
INVALID_PASSWORD: localization.INVALID_PASSWORD
|
|
5609
|
-
}) : z.string().optional()
|
|
5609
|
+
}) : z$1.string().optional()
|
|
5610
5610
|
}).refine((data) => !confirmPasswordEnabled || data.newPassword === data.confirmPassword, {
|
|
5611
5611
|
message: localization.PASSWORDS_DO_NOT_MATCH,
|
|
5612
5612
|
path: ["confirmPassword"]
|
|
@@ -5729,10 +5729,10 @@ function SignInForm({ className, classNames, isSubmitting, localization, redirec
|
|
|
5729
5729
|
};
|
|
5730
5730
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({ redirectTo });
|
|
5731
5731
|
const form = useForm({
|
|
5732
|
-
resolver: zodResolver(z.object({
|
|
5733
|
-
email: usernameEnabled ? z.string().min(1, { message: `${localization.USERNAME} ${localization.IS_REQUIRED}` }) : z.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }),
|
|
5732
|
+
resolver: zodResolver(z$1.object({
|
|
5733
|
+
email: usernameEnabled ? z$1.string().min(1, { message: `${localization.USERNAME} ${localization.IS_REQUIRED}` }) : z$1.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }),
|
|
5734
5734
|
password: getPasswordSchema(passwordValidation, localization),
|
|
5735
|
-
rememberMe: z.boolean().optional()
|
|
5735
|
+
rememberMe: z$1.boolean().optional()
|
|
5736
5736
|
})),
|
|
5737
5737
|
defaultValues: {
|
|
5738
5738
|
email: "",
|
|
@@ -5898,17 +5898,17 @@ function SignUpForm({ className, classNames, callbackURL, isSubmitting, localiza
|
|
|
5898
5898
|
]);
|
|
5899
5899
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({ redirectTo });
|
|
5900
5900
|
const defaultFields = {
|
|
5901
|
-
email: z.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }),
|
|
5901
|
+
email: z$1.string().email({ message: `${localization.EMAIL} ${localization.IS_INVALID}` }),
|
|
5902
5902
|
password: getPasswordSchema(passwordValidation, localization),
|
|
5903
|
-
name: (signUpFields == null ? void 0 : signUpFields.includes("name")) && nameRequired ? z.string().min(1, { message: `${localization.NAME} ${localization.IS_REQUIRED}` }) : z.string().optional(),
|
|
5904
|
-
image: z.string().optional(),
|
|
5905
|
-
username: usernameEnabled ? usernameRequired ? z.string().min(1, { message: `${localization.USERNAME} ${localization.IS_REQUIRED}` }) : z.string().optional() : z.string().optional(),
|
|
5903
|
+
name: (signUpFields == null ? void 0 : signUpFields.includes("name")) && nameRequired ? z$1.string().min(1, { message: `${localization.NAME} ${localization.IS_REQUIRED}` }) : z$1.string().optional(),
|
|
5904
|
+
image: z$1.string().optional(),
|
|
5905
|
+
username: usernameEnabled ? usernameRequired ? z$1.string().min(1, { message: `${localization.USERNAME} ${localization.IS_REQUIRED}` }) : z$1.string().optional() : z$1.string().optional(),
|
|
5906
5906
|
confirmPassword: confirmPasswordEnabled ? getPasswordSchema(passwordValidation, {
|
|
5907
5907
|
PASSWORD_REQUIRED: localization.CONFIRM_PASSWORD_REQUIRED,
|
|
5908
5908
|
PASSWORD_TOO_SHORT: localization.PASSWORD_TOO_SHORT,
|
|
5909
5909
|
PASSWORD_TOO_LONG: localization.PASSWORD_TOO_LONG,
|
|
5910
5910
|
INVALID_PASSWORD: localization.INVALID_PASSWORD
|
|
5911
|
-
}) : z.string().optional()
|
|
5911
|
+
}) : z$1.string().optional()
|
|
5912
5912
|
};
|
|
5913
5913
|
const schemaFields = {};
|
|
5914
5914
|
if (signUpFields) for (const field of signUpFields) {
|
|
@@ -5917,12 +5917,12 @@ function SignUpForm({ className, classNames, callbackURL, isSubmitting, localiza
|
|
|
5917
5917
|
const additionalField = additionalFields == null ? void 0 : additionalFields[field];
|
|
5918
5918
|
if (!additionalField) continue;
|
|
5919
5919
|
let fieldSchema;
|
|
5920
|
-
if (additionalField.type === "number") fieldSchema = additionalField.required ? z.preprocess((val) => !val ? void 0 : Number(val), z.number({ message: `${additionalField.label} ${localization.IS_INVALID}` })) : z.coerce.number({ message: `${additionalField.label} ${localization.IS_INVALID}` }).optional();
|
|
5921
|
-
else if (additionalField.type === "boolean") fieldSchema = additionalField.required ? z.coerce.boolean({ message: `${additionalField.label} ${localization.IS_INVALID}` }).refine((val) => val === true, { message: `${additionalField.label} ${localization.IS_REQUIRED}` }) : z.coerce.boolean({ message: `${additionalField.label} ${localization.IS_INVALID}` }).optional();
|
|
5922
|
-
else fieldSchema = additionalField.required ? z.string().min(1, `${additionalField.label} ${localization.IS_REQUIRED}`) : z.string().optional();
|
|
5920
|
+
if (additionalField.type === "number") fieldSchema = additionalField.required ? z$1.preprocess((val) => !val ? void 0 : Number(val), z$1.number({ message: `${additionalField.label} ${localization.IS_INVALID}` })) : z$1.coerce.number({ message: `${additionalField.label} ${localization.IS_INVALID}` }).optional();
|
|
5921
|
+
else if (additionalField.type === "boolean") fieldSchema = additionalField.required ? z$1.coerce.boolean({ message: `${additionalField.label} ${localization.IS_INVALID}` }).refine((val) => val === true, { message: `${additionalField.label} ${localization.IS_REQUIRED}` }) : z$1.coerce.boolean({ message: `${additionalField.label} ${localization.IS_INVALID}` }).optional();
|
|
5922
|
+
else fieldSchema = additionalField.required ? z$1.string().min(1, `${additionalField.label} ${localization.IS_REQUIRED}`) : z$1.string().optional();
|
|
5923
5923
|
schemaFields[field] = fieldSchema;
|
|
5924
5924
|
}
|
|
5925
|
-
const formSchema = z.object(defaultFields).extend(schemaFields).refine((data) => {
|
|
5925
|
+
const formSchema = z$1.object(defaultFields).extend(schemaFields).refine((data) => {
|
|
5926
5926
|
if (!confirmPasswordEnabled) return true;
|
|
5927
5927
|
return data.password === data.confirmPassword;
|
|
5928
5928
|
}, {
|
|
@@ -6301,9 +6301,9 @@ function TwoFactorForm({ className, classNames, isSubmitting, localization, otpS
|
|
|
6301
6301
|
const [isSendingOtp, setIsSendingOtp] = useState(false);
|
|
6302
6302
|
const [cooldownSeconds, setCooldownSeconds] = useState(0);
|
|
6303
6303
|
const form = useForm({
|
|
6304
|
-
resolver: zodResolver(z.object({
|
|
6305
|
-
code: z.string().min(1, { message: `${localization.ONE_TIME_PASSWORD} ${localization.IS_REQUIRED}` }).min(6, { message: `${localization.ONE_TIME_PASSWORD} ${localization.IS_INVALID}` }),
|
|
6306
|
-
trustDevice: z.boolean().optional()
|
|
6304
|
+
resolver: zodResolver(z$1.object({
|
|
6305
|
+
code: z$1.string().min(1, { message: `${localization.ONE_TIME_PASSWORD} ${localization.IS_REQUIRED}` }).min(6, { message: `${localization.ONE_TIME_PASSWORD} ${localization.IS_INVALID}` }),
|
|
6306
|
+
trustDevice: z$1.boolean().optional()
|
|
6307
6307
|
})),
|
|
6308
6308
|
defaultValues: { code: "" }
|
|
6309
6309
|
});
|
|
@@ -7198,7 +7198,7 @@ function DeleteOrganizationDialog({ classNames, localization: localizationProp,
|
|
|
7198
7198
|
}), [contextLocalization, localizationProp]);
|
|
7199
7199
|
const { refetch: refetchOrganizations } = useListOrganizations();
|
|
7200
7200
|
const form = useForm({
|
|
7201
|
-
resolver: zodResolver(z.object({ slug: z.string().min(1, { message: localization.SLUG_REQUIRED }).refine((val) => val === organization.slug, { message: localization.SLUG_DOES_NOT_MATCH }) })),
|
|
7201
|
+
resolver: zodResolver(z$1.object({ slug: z$1.string().min(1, { message: localization.SLUG_REQUIRED }).refine((val) => val === organization.slug, { message: localization.SLUG_DOES_NOT_MATCH }) })),
|
|
7202
7202
|
defaultValues: { slug: "" }
|
|
7203
7203
|
});
|
|
7204
7204
|
const { isSubmitting } = form.formState;
|
|
@@ -7696,9 +7696,9 @@ function InviteMemberDialog({ classNames, localization: localizationProp, onOpen
|
|
|
7696
7696
|
}
|
|
7697
7697
|
], ...(organizationOptions == null ? void 0 : organizationOptions.customRoles) || []].filter((role) => (membership == null ? void 0 : membership.role) === "owner" || role.role !== "owner");
|
|
7698
7698
|
const form = useForm({
|
|
7699
|
-
resolver: zodResolver(z.object({
|
|
7700
|
-
email: z.string().min(1, { message: localization.EMAIL_REQUIRED }).email({ message: localization.INVALID_EMAIL }),
|
|
7701
|
-
role: z.string().min(1, { message: `${localization.ROLE} ${localization.IS_REQUIRED}` })
|
|
7699
|
+
resolver: zodResolver(z$1.object({
|
|
7700
|
+
email: z$1.string().min(1, { message: localization.EMAIL_REQUIRED }).email({ message: localization.INVALID_EMAIL }),
|
|
7701
|
+
role: z$1.string().min(1, { message: `${localization.ROLE} ${localization.IS_REQUIRED}` })
|
|
7702
7702
|
})),
|
|
7703
7703
|
defaultValues: {
|
|
7704
7704
|
email: "",
|
|
@@ -8225,7 +8225,7 @@ function OrganizationNameForm({ className, classNames, localization: localizatio
|
|
|
8225
8225
|
const { refetch: refetchOrganization } = useCurrentOrganization({ slug: organization.slug });
|
|
8226
8226
|
const isPending = permissionPending;
|
|
8227
8227
|
const form = useForm({
|
|
8228
|
-
resolver: zodResolver(z.object({ name: z.string().min(1, { message: `${localization.ORGANIZATION_NAME} ${localization.IS_REQUIRED}` }) })),
|
|
8228
|
+
resolver: zodResolver(z$1.object({ name: z$1.string().min(1, { message: `${localization.ORGANIZATION_NAME} ${localization.IS_REQUIRED}` }) })),
|
|
8229
8229
|
values: { name: organization.name || "" }
|
|
8230
8230
|
});
|
|
8231
8231
|
const { isSubmitting } = form.formState;
|
|
@@ -8331,7 +8331,7 @@ function OrganizationSlugForm({ className, classNames, localization: localizatio
|
|
|
8331
8331
|
permissions: { organization: ["update"] }
|
|
8332
8332
|
});
|
|
8333
8333
|
const form = useForm({
|
|
8334
|
-
resolver: zodResolver(z.object({ slug: z.string().min(1, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_REQUIRED}` }).regex(/^[a-z0-9-]+$/, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_INVALID}` }) })),
|
|
8334
|
+
resolver: zodResolver(z$1.object({ slug: z$1.string().min(1, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_REQUIRED}` }).regex(/^[a-z0-9-]+$/, { message: `${localization.ORGANIZATION_SLUG} ${localization.IS_INVALID}` }) })),
|
|
8335
8335
|
values: { slug: organization.slug || "" }
|
|
8336
8336
|
});
|
|
8337
8337
|
const { isSubmitting } = form.formState;
|
|
@@ -8775,7 +8775,7 @@ function CreateTeamDialog({ classNames, localization: localizationProp, organiza
|
|
|
8775
8775
|
...localizationProp
|
|
8776
8776
|
}), [contextLocalization, localizationProp]);
|
|
8777
8777
|
const form = useForm({
|
|
8778
|
-
resolver: zodResolver(z.object({ name: z.string().min(1, { message: `${localization.TEAM_NAME} ${localization.IS_REQUIRED}` }).max(64, { message: localization.TEAM_NAME_INSTRUCTIONS }) })),
|
|
8778
|
+
resolver: zodResolver(z$1.object({ name: z$1.string().min(1, { message: `${localization.TEAM_NAME} ${localization.IS_REQUIRED}` }).max(64, { message: localization.TEAM_NAME_INSTRUCTIONS }) })),
|
|
8779
8779
|
defaultValues: { name: "" }
|
|
8780
8780
|
});
|
|
8781
8781
|
const isSubmitting = form.formState.isSubmitting;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../adapter-core-
|
|
2
|
-
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-
|
|
1
|
+
import "../../adapter-core-D1HVvYeG.mjs";
|
|
2
|
+
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-BFja3Oys.mjs";
|
|
3
3
|
import "../../index-ClXLQ1fw.mjs";
|
|
4
4
|
export { BetterAuthVanillaAdapter, BetterAuthVanillaAdapterBuilder, BetterAuthVanillaAdapterInstance, BetterAuthVanillaAdapterOptions, SupabaseAuthAdapter, SupabaseAuthAdapterBuilder, SupabaseAuthAdapterInstance, SupabaseAuthAdapterOptions };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../../supabase-adapter-
|
|
1
|
+
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../../supabase-adapter-NVDAeWHu.mjs";
|
|
2
2
|
|
|
3
3
|
export { BetterAuthVanillaAdapter, SupabaseAuthAdapter };
|
package/dist/vanilla/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
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-
|
|
1
|
+
import "../adapter-core-D1HVvYeG.mjs";
|
|
2
|
+
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-BFja3Oys.mjs";
|
|
3
3
|
import "../index-ClXLQ1fw.mjs";
|
|
4
4
|
export { BetterAuthVanillaAdapter, BetterAuthVanillaAdapterBuilder, BetterAuthVanillaAdapterInstance, BetterAuthVanillaAdapterOptions, SupabaseAuthAdapter, SupabaseAuthAdapterBuilder, SupabaseAuthAdapterInstance, SupabaseAuthAdapterOptions };
|
package/dist/vanilla/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../supabase-adapter-
|
|
1
|
+
import { n as BetterAuthVanillaAdapter, t as SupabaseAuthAdapter } from "../supabase-adapter-NVDAeWHu.mjs";
|
|
2
2
|
|
|
3
3
|
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.13",
|
|
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",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"react",
|
|
19
19
|
"nextjs"
|
|
20
20
|
],
|
|
21
|
-
"homepage": "https://github.com/neondatabase
|
|
21
|
+
"homepage": "https://github.com/neondatabase/neon-js/tree/main/packages/auth#readme",
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/neondatabase
|
|
23
|
+
"url": "https://github.com/neondatabase/neon-js/issues"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/neondatabase
|
|
27
|
+
"url": "git+https://github.com/neondatabase/neon-js.git",
|
|
28
28
|
"directory": "packages/auth"
|
|
29
29
|
},
|
|
30
30
|
"funding": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"better-auth": "1.4.6",
|
|
107
107
|
"zod": "4.1.12",
|
|
108
108
|
"jose": "6.1.2",
|
|
109
|
-
"@neondatabase/auth-ui": "0.1.0-alpha.
|
|
109
|
+
"@neondatabase/auth-ui": "0.1.0-alpha.9"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
112
|
"react": ">=18.0.0",
|