@neondatabase/auth 0.1.0-beta.12 → 0.1.0-beta.14
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-9F3bfyWA.d.mts} +160 -206
- package/dist/{adapter-core-DODfSw9P.mjs → adapter-core-BPv4mLT0.mjs} +160 -36
- package/dist/better-auth-react-adapter-BYvAsZdj.d.mts +2168 -0
- package/dist/{better-auth-react-adapter-7JyvHiYG.mjs → better-auth-react-adapter-BkeuhSFt.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-Bf2NFptR.mjs → neon-auth-BhLZg9v8.mjs} +4 -3
- package/dist/next/index.d.mts +47 -58
- package/dist/next/index.mjs +8 -8
- 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-_2wgvfZ3.d.mts +2254 -0
- package/dist/{supabase-adapter-DdhH8btX.mjs → supabase-adapter-rl2coLdb.mjs} +9 -41
- package/dist/ui/.safelist.html +1 -1
- package/dist/ui/css.css +1 -1
- package/dist/ui/tailwind.css +1 -0
- package/dist/ui/theme-inline.css +39 -0
- package/dist/{ui-aMoA-9nq.mjs → ui-C1IRQzLY.mjs} +49 -49
- package/dist/vanilla/adapters/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.mjs +1 -1
- package/dist/vanilla/index.d.mts +2 -2
- package/dist/vanilla/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/better-auth-react-adapter-JoscqoDc.d.mts +0 -722
- package/dist/supabase-adapter-Clxlqg1x.d.mts +0 -127
package/dist/{better-auth-react-adapter-7JyvHiYG.mjs → better-auth-react-adapter-BkeuhSFt.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NeonAuthAdapterCore } from "./adapter-core-
|
|
1
|
+
import { t as NeonAuthAdapterCore } from "./adapter-core-BPv4mLT0.mjs";
|
|
2
2
|
import { createAuthClient } from "better-auth/react";
|
|
3
3
|
|
|
4
4
|
//#region src/adapters/better-auth-react/better-auth-react-adapter.ts
|
|
@@ -14,11 +14,6 @@ var BetterAuthReactAdapterImpl = class extends NeonAuthAdapterCore {
|
|
|
14
14
|
getBetterAuthInstance() {
|
|
15
15
|
return this._betterAuth;
|
|
16
16
|
}
|
|
17
|
-
async getJWTToken() {
|
|
18
|
-
const session = await this._betterAuth.getSession();
|
|
19
|
-
if (session.error) throw session.error;
|
|
20
|
-
return session.data?.session?.token ?? null;
|
|
21
|
-
}
|
|
22
17
|
};
|
|
23
18
|
/**
|
|
24
19
|
* Factory function that returns an adapter builder.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as z$1 from "zod";
|
|
1
2
|
import { clsx } from "clsx";
|
|
2
3
|
import { twMerge } from "tailwind-merge";
|
|
3
|
-
import * as z from "zod";
|
|
4
4
|
|
|
5
5
|
//#region ../auth-ui/dist/chunk-5DLVHPZS-Bxj7snpZ.mjs
|
|
6
6
|
function cn(...inputs) {
|
|
@@ -36,7 +36,7 @@ function getViewByPath(viewPaths, path) {
|
|
|
36
36
|
for (const key in viewPaths) if (viewPaths[key] === path) return key;
|
|
37
37
|
}
|
|
38
38
|
function getPasswordSchema(passwordValidation, localization) {
|
|
39
|
-
let schema = z.string().min(1, { message: localization == null ? void 0 : localization.PASSWORD_REQUIRED });
|
|
39
|
+
let schema = z$1.string().min(1, { message: localization == null ? void 0 : localization.PASSWORD_REQUIRED });
|
|
40
40
|
if (passwordValidation == null ? void 0 : passwordValidation.minLength) schema = schema.min(passwordValidation.minLength, { message: localization == null ? void 0 : localization.PASSWORD_TOO_SHORT });
|
|
41
41
|
if (passwordValidation == null ? void 0 : passwordValidation.maxLength) schema = schema.max(passwordValidation.maxLength, { message: localization == null ? void 0 : localization.PASSWORD_TOO_LONG });
|
|
42
42
|
if (passwordValidation == null ? void 0 : passwordValidation.regex) schema = schema.regex(passwordValidation.regex, { message: localization == null ? void 0 : localization.INVALID_PASSWORD });
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as SupportedBetterAuthClientPlugins } from "./adapter-core-
|
|
2
|
-
import { r as BetterAuthReactAdapterInstance } from "./better-auth-react-adapter-
|
|
3
|
-
import { r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance } from "./supabase-adapter-
|
|
1
|
+
import { r as SupportedBetterAuthClientPlugins } from "./adapter-core-9F3bfyWA.mjs";
|
|
2
|
+
import { r as BetterAuthReactAdapterInstance } from "./better-auth-react-adapter-BYvAsZdj.mjs";
|
|
3
|
+
import { r as SupabaseAuthAdapterInstance, s as BetterAuthVanillaAdapterInstance } from "./supabase-adapter-_2wgvfZ3.mjs";
|
|
4
4
|
import { createAuthClient as createAuthClient$1 } from "better-auth/react";
|
|
5
5
|
import { createAuthClient as createAuthClient$2 } from "better-auth/client";
|
|
6
6
|
|
|
@@ -28,6 +28,12 @@ type NeonAuthAdapter = BetterAuthVanillaAdapterInstance | BetterAuthReactAdapter
|
|
|
28
28
|
interface NeonAuthConfig<T extends NeonAuthAdapter> {
|
|
29
29
|
/** The adapter builder to use. Defaults to BetterAuthVanillaAdapter() if not specified. */
|
|
30
30
|
adapter?: (url: string) => T;
|
|
31
|
+
/**
|
|
32
|
+
* When true, automatically uses an anonymous token when no user session exists.
|
|
33
|
+
* This enables RLS-based data access for users with the anonymous role.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
allowAnonymous?: boolean;
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* Resolves the public API type for an adapter.
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-
|
|
1
|
+
import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-rl2coLdb.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/neon-auth.ts
|
|
4
4
|
/**
|
|
@@ -50,12 +50,13 @@ import { n as BetterAuthVanillaAdapter } from "./supabase-adapter-DdhH8btX.mjs";
|
|
|
50
50
|
*/
|
|
51
51
|
function createInternalNeonAuth(url, config) {
|
|
52
52
|
const adapter = (config?.adapter ?? BetterAuthVanillaAdapter())(url);
|
|
53
|
+
const allowAnonymous = config?.allowAnonymous ?? false;
|
|
53
54
|
if (!(typeof adapter.initialize === "function")) return {
|
|
54
|
-
getJWTToken: adapter.getJWTToken
|
|
55
|
+
getJWTToken: () => adapter.getJWTToken(allowAnonymous),
|
|
55
56
|
adapter: adapter.getBetterAuthInstance()
|
|
56
57
|
};
|
|
57
58
|
return {
|
|
58
|
-
getJWTToken: adapter.getJWTToken
|
|
59
|
+
getJWTToken: () => adapter.getJWTToken(allowAnonymous),
|
|
59
60
|
adapter
|
|
60
61
|
};
|
|
61
62
|
}
|
package/dist/next/index.d.mts
CHANGED
|
@@ -483,14 +483,14 @@ declare function createAuthClient(): {
|
|
|
483
483
|
admin: {
|
|
484
484
|
hasPermission: <FetchOptions extends better_auth0.ClientFetchOption<Partial<({
|
|
485
485
|
permission: {
|
|
486
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
487
|
-
readonly session?: ("
|
|
486
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
487
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
488
488
|
};
|
|
489
489
|
permissions?: never | undefined;
|
|
490
490
|
} | {
|
|
491
491
|
permissions: {
|
|
492
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
493
|
-
readonly session?: ("
|
|
492
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
493
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
494
494
|
};
|
|
495
495
|
permission?: never | undefined;
|
|
496
496
|
}) & {
|
|
@@ -498,14 +498,14 @@ declare function createAuthClient(): {
|
|
|
498
498
|
role?: "user" | "admin" | undefined;
|
|
499
499
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<(({
|
|
500
500
|
permission: {
|
|
501
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
502
|
-
readonly session?: ("
|
|
501
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
502
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
503
503
|
};
|
|
504
504
|
permissions?: never | undefined;
|
|
505
505
|
} | {
|
|
506
506
|
permissions: {
|
|
507
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
508
|
-
readonly session?: ("
|
|
507
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
508
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
509
509
|
};
|
|
510
510
|
permission?: never | undefined;
|
|
511
511
|
}) & {
|
|
@@ -1131,19 +1131,19 @@ declare function createAuthClient(): {
|
|
|
1131
1131
|
hasPermission: <FetchOptions extends better_auth0.ClientFetchOption<Partial<({
|
|
1132
1132
|
permission: {
|
|
1133
1133
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1134
|
-
readonly member?: ("
|
|
1134
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1135
1135
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1136
|
-
readonly team?: ("
|
|
1137
|
-
readonly ac?: ("
|
|
1136
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1137
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1138
1138
|
};
|
|
1139
1139
|
permissions?: never | undefined;
|
|
1140
1140
|
} | {
|
|
1141
1141
|
permissions: {
|
|
1142
1142
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1143
|
-
readonly member?: ("
|
|
1143
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1144
1144
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1145
|
-
readonly team?: ("
|
|
1146
|
-
readonly ac?: ("
|
|
1145
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1146
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1147
1147
|
};
|
|
1148
1148
|
permission?: never | undefined;
|
|
1149
1149
|
}) & {
|
|
@@ -1151,19 +1151,19 @@ declare function createAuthClient(): {
|
|
|
1151
1151
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<(({
|
|
1152
1152
|
permission: {
|
|
1153
1153
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1154
|
-
readonly member?: ("
|
|
1154
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1155
1155
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1156
|
-
readonly team?: ("
|
|
1157
|
-
readonly ac?: ("
|
|
1156
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1157
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1158
1158
|
};
|
|
1159
1159
|
permissions?: never | undefined;
|
|
1160
1160
|
} | {
|
|
1161
1161
|
permissions: {
|
|
1162
1162
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1163
|
-
readonly member?: ("
|
|
1163
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1164
1164
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1165
|
-
readonly team?: ("
|
|
1166
|
-
readonly ac?: ("
|
|
1165
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1166
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1167
1167
|
};
|
|
1168
1168
|
permission?: never | undefined;
|
|
1169
1169
|
}) & {
|
|
@@ -1313,26 +1313,6 @@ declare function createAuthClient(): {
|
|
|
1313
1313
|
message?: string | undefined;
|
|
1314
1314
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1315
1315
|
};
|
|
1316
|
-
} & {
|
|
1317
|
-
signIn: {
|
|
1318
|
-
anonymous: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth0.Prettify<{
|
|
1319
|
-
query?: Record<string, any> | undefined;
|
|
1320
|
-
fetchOptions?: FetchOptions | undefined;
|
|
1321
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
|
|
1322
|
-
token: string;
|
|
1323
|
-
user: {
|
|
1324
|
-
id: string;
|
|
1325
|
-
email: string;
|
|
1326
|
-
emailVerified: boolean;
|
|
1327
|
-
name: string;
|
|
1328
|
-
createdAt: Date;
|
|
1329
|
-
updatedAt: Date;
|
|
1330
|
-
};
|
|
1331
|
-
}, {
|
|
1332
|
-
code?: string | undefined;
|
|
1333
|
-
message?: string | undefined;
|
|
1334
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1335
|
-
};
|
|
1336
1316
|
} & {
|
|
1337
1317
|
signIn: {
|
|
1338
1318
|
social: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
@@ -1418,7 +1398,7 @@ declare function createAuthClient(): {
|
|
|
1418
1398
|
image?: string | undefined;
|
|
1419
1399
|
callbackURL?: string | undefined;
|
|
1420
1400
|
fetchOptions?: FetchOptions | undefined;
|
|
1421
|
-
} & {} & {}
|
|
1401
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<NonNullable<{
|
|
1422
1402
|
token: null;
|
|
1423
1403
|
user: {
|
|
1424
1404
|
id: string;
|
|
@@ -1574,7 +1554,7 @@ declare function createAuthClient(): {
|
|
|
1574
1554
|
image?: (string | null) | undefined;
|
|
1575
1555
|
name?: string | undefined;
|
|
1576
1556
|
fetchOptions?: FetchOptions | undefined;
|
|
1577
|
-
} & Partial<{} & {}
|
|
1557
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
|
|
1578
1558
|
status: boolean;
|
|
1579
1559
|
}, {
|
|
1580
1560
|
code?: string | undefined;
|
|
@@ -1852,7 +1832,6 @@ declare function createAuthClient(): {
|
|
|
1852
1832
|
role?: string | null | undefined;
|
|
1853
1833
|
banReason?: string | null | undefined;
|
|
1854
1834
|
banExpires?: Date | null | undefined;
|
|
1855
|
-
isAnonymous: boolean | null | undefined;
|
|
1856
1835
|
};
|
|
1857
1836
|
session: {
|
|
1858
1837
|
id: string;
|
|
@@ -1870,6 +1849,21 @@ declare function createAuthClient(): {
|
|
|
1870
1849
|
code?: string | undefined;
|
|
1871
1850
|
message?: string | undefined;
|
|
1872
1851
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1852
|
+
} & {
|
|
1853
|
+
getAnonymousToken: (fetchOptions?: any) => Promise<{
|
|
1854
|
+
data: {
|
|
1855
|
+
token: string;
|
|
1856
|
+
expires_at: number;
|
|
1857
|
+
};
|
|
1858
|
+
error: null;
|
|
1859
|
+
} | {
|
|
1860
|
+
data: null;
|
|
1861
|
+
error: {
|
|
1862
|
+
message?: string | undefined;
|
|
1863
|
+
status: number;
|
|
1864
|
+
statusText: string;
|
|
1865
|
+
};
|
|
1866
|
+
}>;
|
|
1873
1867
|
} & {
|
|
1874
1868
|
jwks: (fetchOptions?: any) => Promise<{
|
|
1875
1869
|
data: null;
|
|
@@ -1886,14 +1880,14 @@ declare function createAuthClient(): {
|
|
|
1886
1880
|
admin: {
|
|
1887
1881
|
checkRolePermission: <R extends "user" | "admin">(data: ({
|
|
1888
1882
|
permission: {
|
|
1889
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1890
|
-
readonly session?: ("
|
|
1883
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1884
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1891
1885
|
};
|
|
1892
1886
|
permissions?: never | undefined;
|
|
1893
1887
|
} | {
|
|
1894
1888
|
permissions: {
|
|
1895
|
-
readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "
|
|
1896
|
-
readonly session?: ("
|
|
1889
|
+
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
1890
|
+
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
1897
1891
|
};
|
|
1898
1892
|
permission?: never | undefined;
|
|
1899
1893
|
}) & {
|
|
@@ -1977,19 +1971,19 @@ declare function createAuthClient(): {
|
|
|
1977
1971
|
checkRolePermission: <R extends "admin" | "member" | "owner">(data: ({
|
|
1978
1972
|
permission: {
|
|
1979
1973
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1980
|
-
readonly member?: ("
|
|
1974
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1981
1975
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1982
|
-
readonly team?: ("
|
|
1983
|
-
readonly ac?: ("
|
|
1976
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1977
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1984
1978
|
};
|
|
1985
1979
|
permissions?: never | undefined;
|
|
1986
1980
|
} | {
|
|
1987
1981
|
permissions: {
|
|
1988
1982
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1989
|
-
readonly member?: ("
|
|
1983
|
+
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
1990
1984
|
readonly invitation?: ("create" | "cancel")[] | undefined;
|
|
1991
|
-
readonly team?: ("
|
|
1992
|
-
readonly ac?: ("
|
|
1985
|
+
readonly team?: ("delete" | "create" | "update")[] | undefined;
|
|
1986
|
+
readonly ac?: ("delete" | "create" | "update" | "read")[] | undefined;
|
|
1993
1987
|
};
|
|
1994
1988
|
permission?: never | undefined;
|
|
1995
1989
|
}) & {
|
|
@@ -2011,7 +2005,6 @@ declare function createAuthClient(): {
|
|
|
2011
2005
|
role?: string | null | undefined;
|
|
2012
2006
|
banReason?: string | null | undefined;
|
|
2013
2007
|
banExpires?: Date | null | undefined;
|
|
2014
|
-
isAnonymous: boolean | null | undefined;
|
|
2015
2008
|
};
|
|
2016
2009
|
session: {
|
|
2017
2010
|
id: string;
|
|
@@ -2047,7 +2040,6 @@ declare function createAuthClient(): {
|
|
|
2047
2040
|
role?: string | null | undefined;
|
|
2048
2041
|
banReason?: string | null | undefined;
|
|
2049
2042
|
banExpires?: Date | null | undefined;
|
|
2050
|
-
isAnonymous: boolean | null | undefined;
|
|
2051
2043
|
};
|
|
2052
2044
|
session: {
|
|
2053
2045
|
id: string;
|
|
@@ -2214,9 +2206,6 @@ declare function createAuthClient(): {
|
|
|
2214
2206
|
readonly OTP_EXPIRED: "OTP expired";
|
|
2215
2207
|
readonly INVALID_OTP: "Invalid OTP";
|
|
2216
2208
|
readonly TOO_MANY_ATTEMPTS: "Too many attempts";
|
|
2217
|
-
readonly INVALID_EMAIL_FORMAT: "Email was not generated in a valid format";
|
|
2218
|
-
readonly COULD_NOT_CREATE_SESSION: "Could not create session";
|
|
2219
|
-
readonly ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY: "Anonymous users cannot sign in again anonymously";
|
|
2220
2209
|
readonly USER_NOT_FOUND: "User not found";
|
|
2221
2210
|
readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
|
|
2222
2211
|
readonly FAILED_TO_UPDATE_USER: "Failed to update user";
|
package/dist/next/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
2
|
-
import { t as createAuthClient$1 } from "../neon-auth-
|
|
1
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-BkeuhSFt.mjs";
|
|
2
|
+
import { t as createAuthClient$1 } from "../neon-auth-BhLZg9v8.mjs";
|
|
3
3
|
import { parseCookies, parseSetCookieHeader } from "better-auth/cookies";
|
|
4
4
|
import { NextRequest, NextResponse } from "next/server";
|
|
5
5
|
import { cookies, headers } from "next/headers";
|
|
@@ -219,14 +219,14 @@ const NEON_AUTH_BASE_URL = process.env.NEON_AUTH_BASE_URL;
|
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region src/next/auth/session.ts
|
|
221
221
|
/**
|
|
222
|
-
* A utility function to be used in react server components fetch the session details from the Neon Auth API, if session token is available in cookie.
|
|
223
|
-
*
|
|
222
|
+
* A utility function to be used in react server components fetch the session details from the Neon Auth API, if session token is available in cookie.
|
|
223
|
+
*
|
|
224
224
|
* @returns - `{ session: Session, user: User }` | `{ session: null, user: null}`.
|
|
225
|
-
*
|
|
225
|
+
*
|
|
226
226
|
* @example
|
|
227
227
|
* ```ts
|
|
228
228
|
* import { neonAuth } from "@neondatabase/auth/next"
|
|
229
|
-
*
|
|
229
|
+
*
|
|
230
230
|
* const { session, user } = await neonAuth()
|
|
231
231
|
* ```
|
|
232
232
|
*/
|
|
@@ -234,8 +234,8 @@ const neonAuth = async () => {
|
|
|
234
234
|
return await fetchSession();
|
|
235
235
|
};
|
|
236
236
|
/**
|
|
237
|
-
* A utility function to fetch the session details from the Neon Auth API, if session token is available in cookie.
|
|
238
|
-
*
|
|
237
|
+
* A utility function to fetch the session details from the Neon Auth API, if session token is available in cookie.
|
|
238
|
+
*
|
|
239
239
|
* @returns - `{ session: Session, user: User }` | `{ session: null, user: null}`.
|
|
240
240
|
*/
|
|
241
241
|
const fetchSession = async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../adapter-core-
|
|
2
|
-
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-
|
|
1
|
+
import "../../adapter-core-9F3bfyWA.mjs";
|
|
2
|
+
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../../better-auth-react-adapter-BYvAsZdj.mjs";
|
|
3
3
|
import "../../index-DCQ5Y2ED.mjs";
|
|
4
4
|
export { BetterAuthReactAdapter, BetterAuthReactAdapterBuilder, BetterAuthReactAdapterInstance, BetterAuthReactAdapterOptions };
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../adapter-core-
|
|
2
|
-
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
1
|
+
import "../adapter-core-9F3bfyWA.mjs";
|
|
2
|
+
import { i as BetterAuthReactAdapterOptions, n as BetterAuthReactAdapterBuilder, r as BetterAuthReactAdapterInstance, t as BetterAuthReactAdapter } from "../better-auth-react-adapter-BYvAsZdj.mjs";
|
|
3
3
|
import "../index-DCQ5Y2ED.mjs";
|
|
4
4
|
import { $ as MagicLinkFormProps, $t as SignUpFormProps, A as ChangePasswordCard, An as UserViewClassNames, At as PasswordInput, B as DropboxIcon, Bn as socialProviders, Bt as ResetPasswordFormProps, C as AuthUIProviderProps, Cn as UserAvatarClassNames, Ct as OrganizationViewPageProps, D as AuthViewPaths, Dn as UserButtonProps, Dt as OrganizationsCard, E as AuthViewPath, En as UserButtonClassNames, Et as OrganizationViewProps, F as CreateTeamDialogProps, Fn as accountViewPaths, Ft as RecoverAccountFormProps, G as GitLabIcon, Gt as SettingsCard, H as ForgotPasswordForm, Hn as useAuthenticate, Ht as SecuritySettingsCards, I as DeleteAccountCard, In as authLocalization, It as RedditIcon, J as InputFieldSkeleton, Jt as SettingsCellSkeleton, K as GoogleIcon, Kt as SettingsCardClassNames, L as DeleteAccountCardProps, Ln as authViewPaths, Lt as RedirectToSignIn, M as CreateOrganizationDialog, Mn as VKIcon, Mt as ProvidersCard, N as CreateOrganizationDialogProps, Nn as XIcon, Nt as ProvidersCardProps, O as AuthViewProps, On as UserInvitationsCard, Ot as PasskeysCard, P as CreateTeamDialog, Pn as ZoomIcon, Pt as RecoverAccountForm, Q as MagicLinkForm, Qt as SignUpForm, R as DeleteOrganizationCard, Rn as getViewByPath, Rt as RedirectToSignUp, S as AuthUIProvider, Sn as UserAvatar, St as OrganizationViewClassNames, T as AuthViewClassNames, Tn as UserButton, Tt as OrganizationViewPaths, U as ForgotPasswordFormProps, Un as useCurrentOrganization, Ut as SessionsCard, V as FacebookIcon, Vn as useAuthData, Vt as RobloxIcon, W as GitHubIcon, Wn as useTheme, Wt as SessionsCardProps, X as LinearIcon, Xt as SignInFormProps, Y as KickIcon, Yt as SignInForm, Z as LinkedInIcon, Zt as SignOut, _ as AuthLoading, _n as UpdateAvatarCardProps, _t as OrganizationSlugCardProps, a as AccountViewPath, an as TeamCell, at as OrganizationInvitationsCard, b as AuthUIContext, bn as UpdateNameCard, bt as OrganizationSwitcherProps, c as AccountsCard, cn as TeamOptionsContext, ct as OrganizationLogoCardProps, d as AppleIcon, dn as TwitchIcon, dt as OrganizationMembersCard, en as SignedIn, et as MicrosoftIcon, f as AuthCallback, fn as TwoFactorCard, ft as OrganizationNameCard, g as AuthHooks, gn as UpdateAvatarCard, gt as OrganizationSlugCard, h as AuthFormProps, hn as TwoFactorFormProps, ht as OrganizationSettingsCardsProps, i as AccountView, in as Team, it as OrganizationCellView, j as ChangePasswordCardProps, jn as UserViewProps, jt as Provider, k as ChangeEmailCard, kn as UserView, kt as PasskeysCardProps, l as AccountsCardProps, ln as TeamsCard, lt as OrganizationLogoClassNames, m as AuthFormClassNames, mn as TwoFactorForm, mt as OrganizationSettingsCards, n as AcceptInvitationCardProps, nn as SlackIcon, nt as NeonAuthUIProviderProps, o as AccountViewPaths, on as TeamCellProps, ot as OrganizationLogo, p as AuthForm, pn as TwoFactorCardProps, pt as OrganizationNameCardProps, q as HuggingFaceIcon, qt as SettingsCardProps, r as AccountSettingsCards, rn as SpotifyIcon, rt as NotionIcon, s as AccountViewProps, sn as TeamOptions, st as OrganizationLogoCard, t as AcceptInvitationCard, tn as SignedOut, tt as NeonAuthUIProvider, u as ApiKeysCardProps, un as TikTokIcon, ut as OrganizationLogoProps, v as AuthLocalization, vn as UpdateFieldCard, vt as OrganizationSwitcher, w as AuthView, wn as UserAvatarProps, wt as OrganizationViewPath, x as AuthUIContextType, xn as UpdateUsernameCard, xt as OrganizationView, y as AuthMutators, yn as UpdateFieldCardProps, yt as OrganizationSwitcherClassNames, z as DiscordIcon, zn as organizationViewPaths, zt as ResetPasswordForm } from "../index-BXlAjlSt.mjs";
|
|
5
5
|
export { AcceptInvitationCard, AcceptInvitationCardProps, AccountSettingsCards, AccountView, AccountViewPath, AccountViewPaths, AccountViewProps, AccountsCard, AccountsCardProps, ApiKeysCardProps, AppleIcon, AuthCallback, AuthForm, AuthFormClassNames, AuthFormProps, AuthHooks, AuthLoading, AuthLocalization, AuthMutators, AuthUIContext, AuthUIContextType, AuthUIProvider, AuthUIProviderProps, AuthView, AuthViewClassNames, AuthViewPath, AuthViewPaths, AuthViewProps, BetterAuthReactAdapter, BetterAuthReactAdapterBuilder, BetterAuthReactAdapterInstance, BetterAuthReactAdapterOptions, ChangeEmailCard, ChangePasswordCard, ChangePasswordCardProps, CreateOrganizationDialog, CreateOrganizationDialogProps, CreateTeamDialog, CreateTeamDialogProps, DeleteAccountCard, DeleteAccountCardProps, DeleteOrganizationCard, DiscordIcon, DropboxIcon, FacebookIcon, ForgotPasswordForm, ForgotPasswordFormProps, GitHubIcon, GitLabIcon, GoogleIcon, HuggingFaceIcon, InputFieldSkeleton, KickIcon, LinearIcon, LinkedInIcon, MagicLinkForm, MagicLinkFormProps, MicrosoftIcon, NeonAuthUIProvider, NeonAuthUIProviderProps, NotionIcon, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, OrganizationLogoCardProps, OrganizationLogoClassNames, OrganizationLogoProps, OrganizationMembersCard, OrganizationNameCard, OrganizationNameCardProps, OrganizationSettingsCards, OrganizationSettingsCardsProps, OrganizationSlugCard, OrganizationSlugCardProps, OrganizationSwitcher, OrganizationSwitcherClassNames, OrganizationSwitcherProps, OrganizationView, OrganizationViewClassNames, OrganizationViewPageProps, OrganizationViewPath, OrganizationViewPaths, OrganizationViewProps, OrganizationsCard, PasskeysCard, PasskeysCardProps, PasswordInput, Provider, ProvidersCard, ProvidersCardProps, RecoverAccountForm, RecoverAccountFormProps, RedditIcon, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, ResetPasswordFormProps, RobloxIcon, SecuritySettingsCards, SessionsCard, SessionsCardProps, SettingsCard, SettingsCardClassNames, SettingsCardProps, SettingsCellSkeleton, SignInForm, SignInFormProps, SignOut, SignUpForm, SignUpFormProps, SignedIn, SignedOut, SlackIcon, SpotifyIcon, Team, TeamCell, TeamCellProps, TeamOptions, TeamOptionsContext, TeamsCard, TikTokIcon, TwitchIcon, TwoFactorCard, TwoFactorCardProps, TwoFactorForm, TwoFactorFormProps, UpdateAvatarCard, UpdateAvatarCardProps, UpdateFieldCard, UpdateFieldCardProps, UpdateNameCard, UpdateUsernameCard, UserAvatar, UserAvatarClassNames, UserAvatarProps, UserButton, UserButtonClassNames, UserButtonProps, UserInvitationsCard, UserView, UserViewClassNames, UserViewProps, VKIcon, XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-
|
|
2
|
-
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../chunk-5DLVHPZS-Bxj7snpZ-
|
|
3
|
-
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../ui-
|
|
1
|
+
import { t as BetterAuthReactAdapter } from "../better-auth-react-adapter-BkeuhSFt.mjs";
|
|
2
|
+
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
3
|
+
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../ui-C1IRQzLY.mjs";
|
|
4
4
|
|
|
5
5
|
export { AcceptInvitationCard, AccountSettingsCards, AccountView, AccountsCard, AppleIcon, AuthCallback, AuthForm, AuthLoading, AuthUIContext, AuthUIProvider, AuthView, BetterAuthReactAdapter, ChangeEmailCard, ChangePasswordCard, CreateOrganizationDialog, CreateTeamDialog, DeleteAccountCard, DeleteOrganizationCard, DiscordIcon, DropboxIcon, FacebookIcon, ForgotPasswordForm, GitHubIcon, GitLabIcon, GoogleIcon, HuggingFaceIcon, InputFieldSkeleton, KickIcon, LinearIcon, LinkedInIcon, MagicLinkForm, MicrosoftIcon, NeonAuthUIProvider, NotionIcon, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, OrganizationMembersCard, OrganizationNameCard, OrganizationSettingsCards, OrganizationSlugCard, OrganizationSwitcher, OrganizationView, OrganizationsCard, PasskeysCard, PasswordInput, ProvidersCard, RecoverAccountForm, RedditIcon, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, RobloxIcon, SecuritySettingsCards, SessionsCard, SettingsCard, SettingsCellSkeleton, SignInForm, SignOut, SignUpForm, SignedIn, SignedOut, SlackIcon, SpotifyIcon, TeamCell, TeamsCard, TikTokIcon, TwitchIcon, TwoFactorCard, TwoFactorForm, UpdateAvatarCard, UpdateFieldCard, UpdateNameCard, UpdateUsernameCard, UserAvatar, UserButton, UserInvitationsCard, UserView, VKIcon, XIcon3 as XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
package/dist/react/ui/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-
|
|
3
|
-
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../../ui-
|
|
2
|
+
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
3
|
+
import { $ as RobloxIcon, A as MagicLinkForm, At as useAuthenticate, B as OrganizationSettingsCards, C as GitLabIcon, Ct as UserInvitationsCard, D as KickIcon, Dt as ZoomIcon, E as InputFieldSkeleton, Et as XIcon3, F as OrganizationInvitationsCard, G as PasskeysCard, H as OrganizationSwitcher, I as OrganizationLogo, J as RecoverAccountForm, K as PasswordInput, L as OrganizationLogoCard, M as NeonAuthUIProvider, Mt as useTheme, N as NotionIcon, O as LinearIcon, Ot as socialProviders, P as OrganizationCellView, Q as ResetPasswordForm, R as OrganizationMembersCard, S as GitHubIcon, St as UserButton, T as HuggingFaceIcon, Tt as VKIcon, U as OrganizationView, V as OrganizationSlugCard, W as OrganizationsCard, X as RedirectToSignIn, Y as RedditIcon, Z as RedirectToSignUp, _ as DeleteOrganizationCard, _t as UpdateAvatarCard, a as AppleIcon, at as SignOut, b as FacebookIcon, bt as UpdateUsernameCard, c as AuthLoading, ct as SignedOut, d as AuthView, dt as TeamCell, et as SecuritySettingsCards, f as ChangeEmailCard, ft as TeamsCard, g as DeleteAccountCard, gt as TwoFactorForm, h as CreateTeamDialog, ht as TwoFactorCard, i as AccountsCard, it as SignInForm, j as MicrosoftIcon, jt as useCurrentOrganization, k as LinkedInIcon, kt as useAuthData, l as AuthUIContext, lt as SlackIcon, m as CreateOrganizationDialog, mt as TwitchIcon, n as AccountSettingsCards, nt as SettingsCard, o as AuthCallback, ot as SignUpForm, p as ChangePasswordCard, pt as TikTokIcon, q as ProvidersCard, r as AccountView, rt as SettingsCellSkeleton, s as AuthForm, st as SignedIn, t as AcceptInvitationCard, tt as SessionsCard, u as AuthUIProvider, ut as SpotifyIcon, v as DiscordIcon, vt as UpdateFieldCard, w as GoogleIcon, wt as UserView, x as ForgotPasswordForm, xt as UserAvatar, y as DropboxIcon, yt as UpdateNameCard, z as OrganizationNameCard } from "../../ui-C1IRQzLY.mjs";
|
|
4
4
|
|
|
5
5
|
export { AcceptInvitationCard, AccountSettingsCards, AccountView, AccountsCard, AppleIcon, AuthCallback, AuthForm, AuthLoading, AuthUIContext, AuthUIProvider, AuthView, ChangeEmailCard, ChangePasswordCard, CreateOrganizationDialog, CreateTeamDialog, DeleteAccountCard, DeleteOrganizationCard, DiscordIcon, DropboxIcon, FacebookIcon, ForgotPasswordForm, GitHubIcon, GitLabIcon, GoogleIcon, HuggingFaceIcon, InputFieldSkeleton, KickIcon, LinearIcon, LinkedInIcon, MagicLinkForm, MicrosoftIcon, NeonAuthUIProvider, NotionIcon, OrganizationCellView, OrganizationInvitationsCard, OrganizationLogo, OrganizationLogoCard, OrganizationMembersCard, OrganizationNameCard, OrganizationSettingsCards, OrganizationSlugCard, OrganizationSwitcher, OrganizationView, OrganizationsCard, PasskeysCard, PasswordInput, ProvidersCard, RecoverAccountForm, RedditIcon, RedirectToSignIn, RedirectToSignUp, ResetPasswordForm, RobloxIcon, SecuritySettingsCards, SessionsCard, SettingsCard, SettingsCellSkeleton, SignInForm, SignOut, SignUpForm, SignedIn, SignedOut, SlackIcon, SpotifyIcon, TeamCell, TeamsCard, TikTokIcon, TwitchIcon, TwoFactorCard, TwoFactorForm, UpdateAvatarCard, UpdateFieldCard, UpdateNameCard, UpdateUsernameCard, UserAvatar, UserButton, UserInvitationsCard, UserView, VKIcon, XIcon3 as XIcon, ZoomIcon, accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths, socialProviders, useAuthData, useAuthenticate, useCurrentOrganization, useTheme };
|
package/dist/react/ui/server.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-
|
|
1
|
+
import { c as getViewByPath, n as authLocalization, r as authViewPaths, t as accountViewPaths, u as organizationViewPaths } from "../../chunk-5DLVHPZS-Bxj7snpZ-EhdAQJMu.mjs";
|
|
2
2
|
|
|
3
3
|
export { accountViewPaths, authLocalization, authViewPaths, getViewByPath, organizationViewPaths };
|