@better-auth-ui/react 1.6.2 → 1.6.3
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/hooks/auth/use-authenticate.d.ts +30 -6
- package/dist/hooks/auth/use-is-username-available.d.ts +12 -11
- package/dist/hooks/auth/use-is-username-available.js +8 -7
- package/dist/hooks/auth/use-request-password-reset.d.ts +11 -15
- package/dist/hooks/auth/use-request-password-reset.js +8 -7
- package/dist/hooks/auth/use-reset-password.d.ts +13 -29
- package/dist/hooks/auth/use-reset-password.js +8 -7
- package/dist/hooks/auth/use-send-verification-email.d.ts +10 -14
- package/dist/hooks/auth/use-send-verification-email.js +8 -7
- package/dist/hooks/auth/use-session.d.ts +30 -4
- package/dist/hooks/auth/use-session.js +11 -10
- package/dist/hooks/auth/use-sign-in-email.d.ts +11 -37
- package/dist/hooks/auth/use-sign-in-email.js +11 -12
- package/dist/hooks/auth/use-sign-in-magic-link.d.ts +14 -18
- package/dist/hooks/auth/use-sign-in-magic-link.js +8 -7
- package/dist/hooks/auth/use-sign-in-passkey.d.ts +10 -47
- package/dist/hooks/auth/use-sign-in-passkey.js +11 -12
- package/dist/hooks/auth/use-sign-in-social.d.ts +30 -59
- package/dist/hooks/auth/use-sign-in-social.js +8 -7
- package/dist/hooks/auth/use-sign-in-username.d.ts +12 -40
- package/dist/hooks/auth/use-sign-in-username.js +11 -12
- package/dist/hooks/auth/use-sign-out.d.ts +10 -10
- package/dist/hooks/auth/use-sign-out.js +10 -12
- package/dist/hooks/auth/use-sign-up-email.d.ts +18 -101
- package/dist/hooks/auth/use-sign-up-email.js +11 -12
- package/dist/hooks/auth/use-user.d.ts +7 -5
- package/dist/hooks/settings/use-account-info.d.ts +9 -9
- package/dist/hooks/settings/use-account-info.js +13 -16
- package/dist/hooks/settings/use-add-passkey.d.ts +8 -30
- package/dist/hooks/settings/use-add-passkey.js +10 -11
- package/dist/hooks/settings/use-change-email.d.ts +11 -14
- package/dist/hooks/settings/use-change-email.js +11 -12
- package/dist/hooks/settings/use-change-password.d.ts +11 -43
- package/dist/hooks/settings/use-change-password.js +8 -7
- package/dist/hooks/settings/use-delete-passkey.d.ts +10 -12
- package/dist/hooks/settings/use-delete-passkey.js +11 -12
- package/dist/hooks/settings/use-delete-user.d.ts +13 -30
- package/dist/hooks/settings/use-delete-user.js +8 -7
- package/dist/hooks/settings/use-link-social.d.ts +22 -25
- package/dist/hooks/settings/use-link-social.js +8 -7
- package/dist/hooks/settings/use-list-accounts.d.ts +8 -6
- package/dist/hooks/settings/use-list-accounts.js +10 -16
- package/dist/hooks/settings/use-list-device-sessions.d.ts +29 -6
- package/dist/hooks/settings/use-list-device-sessions.js +10 -16
- package/dist/hooks/settings/use-list-sessions.d.ts +8 -5
- package/dist/hooks/settings/use-list-sessions.js +10 -16
- package/dist/hooks/settings/use-list-user-passkeys.d.ts +8 -5
- package/dist/hooks/settings/use-list-user-passkeys.js +10 -16
- package/dist/hooks/settings/use-revoke-multi-session.d.ts +11 -11
- package/dist/hooks/settings/use-revoke-multi-session.js +11 -12
- package/dist/hooks/settings/use-revoke-session.d.ts +11 -11
- package/dist/hooks/settings/use-revoke-session.js +11 -12
- package/dist/hooks/settings/use-set-active-session.d.ts +12 -29
- package/dist/hooks/settings/use-set-active-session.js +12 -13
- package/dist/hooks/settings/use-unlink-account.d.ts +12 -12
- package/dist/hooks/settings/use-unlink-account.js +11 -12
- package/dist/hooks/settings/use-update-user.d.ts +1178 -4
- package/dist/hooks/settings/use-update-user.js +17 -18
- package/dist/hooks/use-auth-mutation.d.ts +12 -0
- package/dist/hooks/use-auth-mutation.js +11 -0
- package/dist/hooks/use-auth-query.d.ts +14 -0
- package/dist/hooks/use-auth-query.js +15 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +33 -33
- package/dist/mutations/auth/is-username-available-options.d.ts +19 -0
- package/dist/mutations/auth/is-username-available-options.js +7 -0
- package/dist/mutations/auth/request-password-reset-options.d.ts +15 -0
- package/dist/mutations/auth/request-password-reset-options.js +7 -0
- package/dist/mutations/auth/reset-password-options.d.ts +17 -0
- package/dist/mutations/auth/reset-password-options.js +7 -0
- package/dist/mutations/auth/send-verification-email-options.d.ts +15 -0
- package/dist/mutations/auth/send-verification-email-options.js +7 -0
- package/dist/mutations/auth/sign-in-email-options.d.ts +23 -0
- package/dist/mutations/auth/sign-in-email-options.js +11 -0
- package/dist/mutations/auth/sign-in-magic-link-options.d.ts +23 -0
- package/dist/mutations/auth/sign-in-magic-link-options.js +11 -0
- package/dist/mutations/auth/sign-in-passkey-options.d.ts +15 -0
- package/dist/mutations/auth/sign-in-passkey-options.js +11 -0
- package/dist/mutations/auth/sign-in-social-options.d.ts +61 -0
- package/dist/mutations/auth/sign-in-social-options.js +11 -0
- package/dist/mutations/auth/sign-in-username-options.d.ts +19 -0
- package/dist/mutations/auth/sign-in-username-options.js +11 -0
- package/dist/mutations/auth/sign-out-options.d.ts +12 -0
- package/dist/mutations/auth/sign-out-options.js +7 -0
- package/dist/mutations/auth/sign-up-email-options.d.ts +1180 -0
- package/dist/mutations/auth/sign-up-email-options.js +11 -0
- package/dist/mutations/auth-mutation-options.d.ts +25 -0
- package/dist/mutations/auth-mutation-options.js +19 -0
- package/dist/mutations/settings/add-passkey-options.d.ts +15 -0
- package/dist/mutations/settings/add-passkey-options.js +11 -0
- package/dist/mutations/settings/change-email-options.d.ts +15 -0
- package/dist/mutations/settings/change-email-options.js +7 -0
- package/dist/mutations/settings/change-password-options.d.ts +17 -0
- package/dist/mutations/settings/change-password-options.js +7 -0
- package/dist/mutations/settings/delete-passkey-options.d.ts +13 -0
- package/dist/mutations/settings/delete-passkey-options.js +11 -0
- package/dist/mutations/settings/delete-user-options.d.ts +20 -0
- package/dist/mutations/settings/delete-user-options.js +7 -0
- package/dist/mutations/settings/link-social-options.d.ts +39 -0
- package/dist/mutations/settings/link-social-options.js +7 -0
- package/dist/mutations/settings/revoke-multi-session-options.d.ts +13 -0
- package/dist/mutations/settings/revoke-multi-session-options.js +11 -0
- package/dist/mutations/settings/revoke-session-options.d.ts +13 -0
- package/dist/mutations/settings/revoke-session-options.js +7 -0
- package/dist/mutations/settings/set-active-session-options.d.ts +13 -0
- package/dist/mutations/settings/set-active-session-options.js +11 -0
- package/dist/mutations/settings/unlink-account-options.d.ts +15 -0
- package/dist/mutations/settings/unlink-account-options.js +7 -0
- package/dist/mutations/settings/update-user-options.d.ts +1182 -0
- package/dist/mutations/settings/update-user-options.js +7 -0
- package/dist/queries/auth/session-options.d.ts +110 -0
- package/dist/queries/auth/session-options.js +7 -0
- package/dist/queries/auth-query-options.d.ts +29 -0
- package/dist/queries/auth-query-options.js +17 -0
- package/dist/queries/settings/account-info-options.d.ts +32 -0
- package/dist/queries/settings/account-info-options.js +12 -0
- package/dist/queries/settings/list-accounts-options.d.ts +53 -0
- package/dist/queries/settings/list-accounts-options.js +12 -0
- package/dist/queries/settings/list-device-sessions-options.d.ts +99 -0
- package/dist/queries/settings/list-device-sessions-options.js +12 -0
- package/dist/queries/settings/list-sessions-options.d.ts +54 -0
- package/dist/queries/settings/list-sessions-options.js +12 -0
- package/dist/queries/settings/list-user-passkeys-options.d.ts +18 -0
- package/dist/queries/settings/list-user-passkeys-options.js +12 -0
- package/package.json +1 -1
- package/src/hooks/auth/use-authenticate.ts +7 -10
- package/src/hooks/auth/use-is-username-available.ts +17 -8
- package/src/hooks/auth/use-request-password-reset.ts +19 -8
- package/src/hooks/auth/use-reset-password.ts +19 -9
- package/src/hooks/auth/use-send-verification-email.ts +18 -8
- package/src/hooks/auth/use-session.ts +20 -16
- package/src/hooks/auth/use-sign-in-email.ts +23 -16
- package/src/hooks/auth/use-sign-in-magic-link.ts +18 -10
- package/src/hooks/auth/use-sign-in-passkey.ts +24 -18
- package/src/hooks/auth/use-sign-in-social.ts +18 -8
- package/src/hooks/auth/use-sign-in-username.ts +24 -18
- package/src/hooks/auth/use-sign-out.ts +18 -17
- package/src/hooks/auth/use-sign-up-email.ts +24 -18
- package/src/hooks/auth/use-user.ts +7 -8
- package/src/hooks/settings/use-account-info.ts +29 -20
- package/src/hooks/settings/use-add-passkey.ts +22 -17
- package/src/hooks/settings/use-change-email.ts +21 -17
- package/src/hooks/settings/use-change-password.ts +18 -8
- package/src/hooks/settings/use-delete-passkey.ts +21 -16
- package/src/hooks/settings/use-delete-user.ts +18 -8
- package/src/hooks/settings/use-link-social.ts +18 -8
- package/src/hooks/settings/use-list-accounts.ts +25 -15
- package/src/hooks/settings/use-list-device-sessions.ts +26 -21
- package/src/hooks/settings/use-list-sessions.ts +25 -14
- package/src/hooks/settings/use-list-user-passkeys.ts +25 -16
- package/src/hooks/settings/use-revoke-multi-session.ts +25 -16
- package/src/hooks/settings/use-revoke-session.ts +25 -16
- package/src/hooks/settings/use-set-active-session.ts +35 -24
- package/src/hooks/settings/use-unlink-account.ts +22 -15
- package/src/hooks/settings/use-update-user.ts +29 -22
- package/src/hooks/use-auth-mutation.ts +29 -0
- package/src/hooks/use-auth-query.ts +36 -0
- package/src/index.ts +2 -2
- package/src/mutations/auth/is-username-available-options.ts +18 -0
- package/src/mutations/auth/request-password-reset-options.ts +14 -0
- package/src/mutations/auth/reset-password-options.ts +14 -0
- package/src/mutations/auth/send-verification-email-options.ts +14 -0
- package/src/mutations/auth/sign-in-email-options.ts +19 -0
- package/src/mutations/auth/sign-in-magic-link-options.ts +15 -0
- package/src/mutations/auth/sign-in-passkey-options.ts +15 -0
- package/src/mutations/auth/sign-in-social-options.ts +19 -0
- package/src/mutations/auth/sign-in-username-options.ts +15 -0
- package/src/mutations/auth/sign-out-options.ts +11 -0
- package/src/mutations/auth/sign-up-email-options.ts +15 -0
- package/src/mutations/auth-mutation-options.ts +49 -0
- package/src/mutations/settings/add-passkey-options.ts +15 -0
- package/src/mutations/settings/change-email-options.ts +11 -0
- package/src/mutations/settings/change-password-options.ts +14 -0
- package/src/mutations/settings/delete-passkey-options.ts +15 -0
- package/src/mutations/settings/delete-user-options.ts +11 -0
- package/src/mutations/settings/link-social-options.ts +11 -0
- package/src/mutations/settings/revoke-multi-session-options.ts +15 -0
- package/src/mutations/settings/revoke-session-options.ts +14 -0
- package/src/mutations/settings/set-active-session-options.ts +15 -0
- package/src/mutations/settings/unlink-account-options.ts +14 -0
- package/src/mutations/settings/update-user-options.ts +15 -0
- package/src/queries/auth/session-options.ts +18 -0
- package/src/queries/auth-query-options.ts +34 -0
- package/src/queries/settings/account-info-options.ts +25 -0
- package/src/queries/settings/list-accounts-options.ts +26 -0
- package/src/queries/settings/list-device-sessions-options.ts +24 -0
- package/src/queries/settings/list-sessions-options.ts +23 -0
- package/src/queries/settings/list-user-passkeys-options.ts +23 -0
- package/dist/hooks/auth/use-auth-mutation.d.ts +0 -18
- package/dist/hooks/auth/use-auth-mutation.js +0 -13
- package/dist/hooks/auth/use-auth-query.d.ts +0 -24
- package/dist/hooks/auth/use-auth-query.js +0 -13
- package/src/hooks/auth/use-auth-mutation.ts +0 -56
- package/src/hooks/auth/use-auth-query.ts +0 -50
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { useAuth as e } from "../../components/auth/auth-provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { sessionOptions as t } from "../../queries/auth/session-options.js";
|
|
3
3
|
import { useSession as n } from "../auth/use-session.js";
|
|
4
|
-
import {
|
|
4
|
+
import { updateUserOptions as r } from "../../mutations/settings/update-user-options.js";
|
|
5
|
+
import { useMutation as i, useQueryClient as a } from "@tanstack/react-query";
|
|
5
6
|
//#region src/hooks/settings/use-update-user.ts
|
|
6
|
-
function
|
|
7
|
-
let { authClient:
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
c
|
|
14
|
-
|
|
15
|
-
user
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}), s(), await i?.onSuccess?.(e, t, ...n);
|
|
20
|
-
}
|
|
7
|
+
function o(o) {
|
|
8
|
+
let { authClient: s } = e(), { data: c, refetch: l } = n({ refetchOnMount: !1 }), u = a();
|
|
9
|
+
return i({
|
|
10
|
+
...r(s),
|
|
11
|
+
...o,
|
|
12
|
+
onSuccess: async (e, n, ...r) => {
|
|
13
|
+
c && u.setQueryData(t(s).queryKey, {
|
|
14
|
+
...c,
|
|
15
|
+
user: {
|
|
16
|
+
...c.user,
|
|
17
|
+
...n
|
|
18
|
+
}
|
|
19
|
+
}), l(), await o?.onSuccess?.(e, n, ...r);
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
23
|
//#endregion
|
|
25
|
-
export {
|
|
24
|
+
export { o as useUpdateUser };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MutationKey } from '@tanstack/react-query';
|
|
2
|
+
import { authMutationOptions } from '../mutations/auth-mutation-options';
|
|
3
|
+
/**
|
|
4
|
+
* Escape-hatch hook for Better Auth endpoints that don't have a purpose-built
|
|
5
|
+
* mutation hook in this library yet. Thin wrapper over `useMutation` and
|
|
6
|
+
* `authMutationOptions`.
|
|
7
|
+
*
|
|
8
|
+
* @param authFn - Better Auth client method (e.g. `authClient.emailOtp.sendVerificationOtp`).
|
|
9
|
+
* @param mutationKey - Scope for the mutation cache key.
|
|
10
|
+
* @param options - React Query options forwarded to `useMutation`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useAuthMutation<TFn extends (...args: any) => any, const TMutationKey extends MutationKey>(authFn: TFn, mutationKey: TMutationKey, options?: Omit<ReturnType<typeof authMutationOptions<TFn, TMutationKey>>, "mutationKey" | "mutationFn">): import('@tanstack/react-query').UseMutationResult<TFn extends import('../mutations/auth-mutation-options').AuthMutationFn<infer TData, unknown> ? TData : never, import('better-auth/client').BetterFetchError, undefined extends Parameters<TFn>[0] ? void | NonNullable<Parameters<TFn>[0]> : Parameters<TFn>[0], unknown>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../mutations/auth-mutation-options.js";
|
|
2
|
+
import { useMutation as t } from "@tanstack/react-query";
|
|
3
|
+
//#region src/hooks/use-auth-mutation.ts
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
return t({
|
|
6
|
+
...e(n, r),
|
|
7
|
+
...i
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as useAuthMutation };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QueryKey } from '@tanstack/react-query';
|
|
2
|
+
import { AuthFn, authQueryOptions } from '../queries/auth-query-options';
|
|
3
|
+
type UseAuthQueryOptions<TFn extends AuthFn, TQueryKey extends QueryKey> = Omit<ReturnType<typeof authQueryOptions<TFn, TQueryKey>>, "queryKey" | "queryFn"> & NonNullable<Parameters<TFn>[0]>;
|
|
4
|
+
/**
|
|
5
|
+
* Escape-hatch hook for Better Auth endpoints that don't have a purpose-built
|
|
6
|
+
* hook in this library yet. Thin wrapper over `useQuery` and `authQueryOptions`.
|
|
7
|
+
*
|
|
8
|
+
* @param authFn - Better Auth client method (e.g. `authClient.magicLink.list`).
|
|
9
|
+
* @param queryKey - Scope prefix for the key. `options.query` is appended automatically.
|
|
10
|
+
* @param options - Better Auth params (`query`, `fetchOptions`) and React
|
|
11
|
+
* Query options forwarded to `useQuery`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useAuthQuery<TFn extends AuthFn, const TQueryKey extends QueryKey>(authFn: TFn, queryKey: TQueryKey, options?: UseAuthQueryOptions<TFn, TQueryKey>): import('@tanstack/react-query').UseQueryResult<import('@tanstack/react-query').NoInfer<TFn extends AuthFn<infer TData> ? TData : never>, import('better-auth/client').BetterFetchError>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { authQueryOptions as e } from "../queries/auth-query-options.js";
|
|
2
|
+
import { useQuery as t } from "@tanstack/react-query";
|
|
3
|
+
//#region src/hooks/use-auth-query.ts
|
|
4
|
+
function n(n, r, i) {
|
|
5
|
+
let { query: a, fetchOptions: o, ...s } = i ?? {};
|
|
6
|
+
return t({
|
|
7
|
+
...e(n, r, {
|
|
8
|
+
query: a,
|
|
9
|
+
fetchOptions: o
|
|
10
|
+
}),
|
|
11
|
+
...s
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as useAuthQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ export * from './components/auth/auth-provider';
|
|
|
2
2
|
export * from './components/email';
|
|
3
3
|
export * from './components/icons';
|
|
4
4
|
export * from './components/settings/account/theme-preview';
|
|
5
|
-
export * from './hooks/auth/use-auth-mutation';
|
|
6
|
-
export * from './hooks/auth/use-auth-query';
|
|
7
5
|
export * from './hooks/auth/use-authenticate';
|
|
8
6
|
export * from './hooks/auth/use-is-username-available';
|
|
9
7
|
export * from './hooks/auth/use-request-password-reset';
|
|
@@ -34,6 +32,8 @@ export * from './hooks/settings/use-revoke-session';
|
|
|
34
32
|
export * from './hooks/settings/use-set-active-session';
|
|
35
33
|
export * from './hooks/settings/use-unlink-account';
|
|
36
34
|
export * from './hooks/settings/use-update-user';
|
|
35
|
+
export * from './hooks/use-auth-mutation';
|
|
36
|
+
export * from './hooks/use-auth-query';
|
|
37
37
|
export * from './lib/auth-client';
|
|
38
38
|
export * from './lib/auth-config';
|
|
39
39
|
export * from './lib/auth-context';
|
package/dist/index.js
CHANGED
|
@@ -48,38 +48,38 @@ import { X as K } from "./components/icons/x.js";
|
|
|
48
48
|
import { Zoom as q } from "./components/icons/zoom.js";
|
|
49
49
|
import "./components/icons/index.js";
|
|
50
50
|
import { ThemePreviewDark as J, ThemePreviewLight as Y, ThemePreviewSystem as X } from "./components/settings/account/theme-preview.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
51
|
+
import { useSession as Z } from "./hooks/auth/use-session.js";
|
|
52
|
+
import { useAuthenticate as Q } from "./hooks/auth/use-authenticate.js";
|
|
53
|
+
import { useIsUsernameAvailable as $ } from "./hooks/auth/use-is-username-available.js";
|
|
54
|
+
import { useRequestPasswordReset as ee } from "./hooks/auth/use-request-password-reset.js";
|
|
55
|
+
import { useResetPassword as te } from "./hooks/auth/use-reset-password.js";
|
|
56
|
+
import { useSendVerificationEmail as ne } from "./hooks/auth/use-send-verification-email.js";
|
|
57
|
+
import { useSignInEmail as re } from "./hooks/auth/use-sign-in-email.js";
|
|
58
|
+
import { useSignInMagicLink as ie } from "./hooks/auth/use-sign-in-magic-link.js";
|
|
59
|
+
import { useSignInPasskey as ae } from "./hooks/auth/use-sign-in-passkey.js";
|
|
60
|
+
import { useSignInSocial as oe } from "./hooks/auth/use-sign-in-social.js";
|
|
61
|
+
import { useSignInUsername as se } from "./hooks/auth/use-sign-in-username.js";
|
|
62
|
+
import { useSignOut as ce } from "./hooks/auth/use-sign-out.js";
|
|
63
|
+
import { useSignUpEmail as le } from "./hooks/auth/use-sign-up-email.js";
|
|
64
|
+
import { useUser as ue } from "./hooks/auth/use-user.js";
|
|
65
|
+
import { useAccountInfo as de } from "./hooks/settings/use-account-info.js";
|
|
66
|
+
import { useListUserPasskeys as fe } from "./hooks/settings/use-list-user-passkeys.js";
|
|
67
|
+
import { useAddPasskey as pe } from "./hooks/settings/use-add-passkey.js";
|
|
68
|
+
import { useChangeEmail as me } from "./hooks/settings/use-change-email.js";
|
|
69
|
+
import { useChangePassword as he } from "./hooks/settings/use-change-password.js";
|
|
70
|
+
import { useDeletePasskey as ge } from "./hooks/settings/use-delete-passkey.js";
|
|
71
|
+
import { useDeleteUser as _e } from "./hooks/settings/use-delete-user.js";
|
|
72
|
+
import { useLinkSocial as ve } from "./hooks/settings/use-link-social.js";
|
|
73
|
+
import { useListAccounts as ye } from "./hooks/settings/use-list-accounts.js";
|
|
74
|
+
import { useListDeviceSessions as be } from "./hooks/settings/use-list-device-sessions.js";
|
|
75
|
+
import { useListSessions as xe } from "./hooks/settings/use-list-sessions.js";
|
|
76
|
+
import { useRevokeMultiSession as Se } from "./hooks/settings/use-revoke-multi-session.js";
|
|
77
|
+
import { useRevokeSession as Ce } from "./hooks/settings/use-revoke-session.js";
|
|
78
|
+
import { useSetActiveSession as we } from "./hooks/settings/use-set-active-session.js";
|
|
79
|
+
import { useUnlinkAccount as Te } from "./hooks/settings/use-unlink-account.js";
|
|
80
|
+
import { useUpdateUser as Ee } from "./hooks/settings/use-update-user.js";
|
|
81
|
+
import { useAuthMutation as De } from "./hooks/use-auth-mutation.js";
|
|
82
|
+
import { useAuthQuery as Oe } from "./hooks/use-auth-query.js";
|
|
83
83
|
import "./lib/auth-client.js";
|
|
84
84
|
import { providerIcons as ke } from "./lib/provider-icons.js";
|
|
85
|
-
export { p as Apple, m as Atlassian, e as AuthContext, t as AuthProvider, h as Cognito, g as Discord, _ as Dropbox, a as EmailChangedEmail, r as EmailStyles, o as EmailVerificationEmail, v as Facebook, y as Figma, b as GitHub, x as GitLab, S as Google, C as HuggingFace, w as Kakao, T as Kick, E as Line, D as Linear, O as LinkedIn, s as MagicLinkEmail, k as Microsoft, A as Naver, c as NewDeviceEmail, j as Notion, l as OtpEmail, u as PasswordChangedEmail, N as PayPal, M as Paybin, P as Polar, F as Railway, I as Reddit, d as ResetPasswordEmail, L as Roblox, R as Salesforce, z as Slack, B as Spotify, J as ThemePreviewDark, Y as ThemePreviewLight, X as ThemePreviewSystem, V as TikTok, H as Twitch, W as VK, U as Vercel, G as WeChat, K as X, q as Zoom, i as defaultColors, f as emailLocalization, ke as providerIcons,
|
|
85
|
+
export { p as Apple, m as Atlassian, e as AuthContext, t as AuthProvider, h as Cognito, g as Discord, _ as Dropbox, a as EmailChangedEmail, r as EmailStyles, o as EmailVerificationEmail, v as Facebook, y as Figma, b as GitHub, x as GitLab, S as Google, C as HuggingFace, w as Kakao, T as Kick, E as Line, D as Linear, O as LinkedIn, s as MagicLinkEmail, k as Microsoft, A as Naver, c as NewDeviceEmail, j as Notion, l as OtpEmail, u as PasswordChangedEmail, N as PayPal, M as Paybin, P as Polar, F as Railway, I as Reddit, d as ResetPasswordEmail, L as Roblox, R as Salesforce, z as Slack, B as Spotify, J as ThemePreviewDark, Y as ThemePreviewLight, X as ThemePreviewSystem, V as TikTok, H as Twitch, W as VK, U as Vercel, G as WeChat, K as X, q as Zoom, i as defaultColors, f as emailLocalization, ke as providerIcons, de as useAccountInfo, pe as useAddPasskey, n as useAuth, De as useAuthMutation, Oe as useAuthQuery, Q as useAuthenticate, me as useChangeEmail, he as useChangePassword, ge as useDeletePasskey, _e as useDeleteUser, $ as useIsUsernameAvailable, ve as useLinkSocial, ye as useListAccounts, be as useListDeviceSessions, xe as useListSessions, fe as useListUserPasskeys, ee as useRequestPasswordReset, te as useResetPassword, Se as useRevokeMultiSession, Ce as useRevokeSession, ne as useSendVerificationEmail, Z as useSession, we as useSetActiveSession, re as useSignInEmail, ie as useSignInMagicLink, ae as useSignInPasskey, oe as useSignInSocial, se as useSignInUsername, ce as useSignOut, le as useSignUpEmail, Te as useUnlinkAccount, Ee as useUpdateUser, ue as useUser };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for checking username availability.
|
|
4
|
+
*
|
|
5
|
+
* Modeled as a mutation because callers typically trigger the check on
|
|
6
|
+
* user action (debounced input, form submit) rather than on mount.
|
|
7
|
+
*
|
|
8
|
+
* @param authClient - The Better Auth client.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isUsernameAvailableOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<{
|
|
11
|
+
available: boolean;
|
|
12
|
+
message: string | null;
|
|
13
|
+
}, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
14
|
+
username: string;
|
|
15
|
+
} & {
|
|
16
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
17
|
+
username: string;
|
|
18
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
19
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/is-username-available-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.isUsernameAvailable, ["auth", "isUsernameAvailable"]);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as isUsernameAvailableOptions };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for requesting a password reset email.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function requestPasswordResetOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
8
|
+
email: string;
|
|
9
|
+
redirectTo?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
12
|
+
email: string;
|
|
13
|
+
redirectTo?: string | undefined;
|
|
14
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
15
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/request-password-reset-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.requestPasswordReset, ["auth", "requestPasswordReset"]);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as requestPasswordResetOptions };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for completing a password reset.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resetPasswordOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
8
|
+
newPassword: string;
|
|
9
|
+
token?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
12
|
+
newPassword: string;
|
|
13
|
+
token?: string | undefined;
|
|
14
|
+
}> & Record<string, any>, Partial<{
|
|
15
|
+
token?: string | undefined;
|
|
16
|
+
}> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
17
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for sending a verification email.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function sendVerificationEmailOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
8
|
+
email: string;
|
|
9
|
+
callbackURL?: string | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
12
|
+
email: string;
|
|
13
|
+
callbackURL?: string | undefined;
|
|
14
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
15
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/send-verification-email-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.sendVerificationEmail, ["auth", "sendVerificationEmail"]);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as sendVerificationEmailOptions };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for email/password sign-in.
|
|
4
|
+
*
|
|
5
|
+
* The returned `mutationKey` (`["auth", "signIn", "email"]`) is stable and
|
|
6
|
+
* can be passed to `useIsMutating` or matched inside a global
|
|
7
|
+
* `MutationCache` observer for toast handling.
|
|
8
|
+
*
|
|
9
|
+
* @param authClient - The Better Auth client.
|
|
10
|
+
*/
|
|
11
|
+
export declare function signInEmailOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
12
|
+
email: string;
|
|
13
|
+
password: string;
|
|
14
|
+
callbackURL?: string | undefined;
|
|
15
|
+
rememberMe?: boolean | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
18
|
+
email: string;
|
|
19
|
+
password: string;
|
|
20
|
+
callbackURL?: string | undefined;
|
|
21
|
+
rememberMe?: boolean | undefined;
|
|
22
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
23
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/sign-in-email-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.signIn.email, [
|
|
5
|
+
"auth",
|
|
6
|
+
"signIn",
|
|
7
|
+
"email"
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as signInEmailOptions };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for magic-link sign-in.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function signInMagicLinkOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
8
|
+
email: string;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
callbackURL?: string | undefined;
|
|
11
|
+
newUserCallbackURL?: string | undefined;
|
|
12
|
+
errorCallbackURL?: string | undefined;
|
|
13
|
+
metadata?: Record<string, any> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
16
|
+
email: string;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
callbackURL?: string | undefined;
|
|
19
|
+
newUserCallbackURL?: string | undefined;
|
|
20
|
+
errorCallbackURL?: string | undefined;
|
|
21
|
+
metadata?: Record<string, any> | undefined;
|
|
22
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
23
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/sign-in-magic-link-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.signIn.magicLink, [
|
|
5
|
+
"auth",
|
|
6
|
+
"signIn",
|
|
7
|
+
"magicLink"
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as signInMagicLinkOptions };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for passkey sign-in.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function signInPasskeyOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<{
|
|
8
|
+
session: import('better-auth').Session;
|
|
9
|
+
user: import('better-auth').User;
|
|
10
|
+
} | null, import('better-auth/client').BetterFetchError, void | {
|
|
11
|
+
autoFill?: boolean;
|
|
12
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
13
|
+
returnWebAuthnResponse?: boolean;
|
|
14
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
15
|
+
}, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/sign-in-passkey-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.signIn.passkey, [
|
|
5
|
+
"auth",
|
|
6
|
+
"signIn",
|
|
7
|
+
"passkey"
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as signInPasskeyOptions };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for social sign-in.
|
|
4
|
+
*
|
|
5
|
+
* The returned `mutationKey` (`["auth", "signIn", "social"]`) is stable and
|
|
6
|
+
* can be passed to `useIsMutating` or matched inside a global
|
|
7
|
+
* `MutationCache` observer for toast handling.
|
|
8
|
+
*
|
|
9
|
+
* @param authClient - The Better Auth client.
|
|
10
|
+
*/
|
|
11
|
+
export declare function signInSocialOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
12
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
|
|
13
|
+
callbackURL?: string | undefined;
|
|
14
|
+
newUserCallbackURL?: string | undefined;
|
|
15
|
+
errorCallbackURL?: string | undefined;
|
|
16
|
+
disableRedirect?: boolean | undefined;
|
|
17
|
+
idToken?: {
|
|
18
|
+
token: string;
|
|
19
|
+
nonce?: string | undefined;
|
|
20
|
+
accessToken?: string | undefined;
|
|
21
|
+
refreshToken?: string | undefined;
|
|
22
|
+
expiresAt?: number | undefined;
|
|
23
|
+
user?: {
|
|
24
|
+
name?: {
|
|
25
|
+
firstName?: string | undefined;
|
|
26
|
+
lastName?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
email?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
scopes?: string[] | undefined;
|
|
32
|
+
requestSignUp?: boolean | undefined;
|
|
33
|
+
loginHint?: string | undefined;
|
|
34
|
+
additionalData?: Record<string, any> | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
37
|
+
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
|
|
38
|
+
callbackURL?: string | undefined;
|
|
39
|
+
newUserCallbackURL?: string | undefined;
|
|
40
|
+
errorCallbackURL?: string | undefined;
|
|
41
|
+
disableRedirect?: boolean | undefined;
|
|
42
|
+
idToken?: {
|
|
43
|
+
token: string;
|
|
44
|
+
nonce?: string | undefined;
|
|
45
|
+
accessToken?: string | undefined;
|
|
46
|
+
refreshToken?: string | undefined;
|
|
47
|
+
expiresAt?: number | undefined;
|
|
48
|
+
user?: {
|
|
49
|
+
name?: {
|
|
50
|
+
firstName?: string | undefined;
|
|
51
|
+
lastName?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
email?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
scopes?: string[] | undefined;
|
|
57
|
+
requestSignUp?: boolean | undefined;
|
|
58
|
+
loginHint?: string | undefined;
|
|
59
|
+
additionalData?: Record<string, any> | undefined;
|
|
60
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
61
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/sign-in-social-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.signIn.social, [
|
|
5
|
+
"auth",
|
|
6
|
+
"signIn",
|
|
7
|
+
"social"
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as signInSocialOptions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for username/password sign-in.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function signInUsernameOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<never, import('better-auth/client').BetterFetchError, import('better-auth').Prettify<{
|
|
8
|
+
username: string;
|
|
9
|
+
password: string;
|
|
10
|
+
rememberMe?: boolean | undefined;
|
|
11
|
+
callbackURL?: string | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
fetchOptions?: import('better-auth').ClientFetchOption<Partial<{
|
|
14
|
+
username: string;
|
|
15
|
+
password: string;
|
|
16
|
+
rememberMe?: boolean | undefined;
|
|
17
|
+
callbackURL?: string | undefined;
|
|
18
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
19
|
+
}>, unknown>, "mutationKey">;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { authMutationOptions as e } from "../auth-mutation-options.js";
|
|
2
|
+
//#region src/mutations/auth/sign-in-username-options.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t.signIn.username, [
|
|
5
|
+
"auth",
|
|
6
|
+
"signIn",
|
|
7
|
+
"username"
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as signInUsernameOptions };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuthClient } from '../../lib/auth-client';
|
|
2
|
+
/**
|
|
3
|
+
* Mutation options factory for signing out.
|
|
4
|
+
*
|
|
5
|
+
* @param authClient - The Better Auth client.
|
|
6
|
+
*/
|
|
7
|
+
export declare function signOutOptions(authClient: AuthClient): import('@tanstack/react-query').WithRequired<import('@tanstack/react-query').UseMutationOptions<{
|
|
8
|
+
success: boolean;
|
|
9
|
+
} | null, import('better-auth/client').BetterFetchError, void | import('better-auth').Prettify<{
|
|
10
|
+
query?: Record<string, any> | undefined;
|
|
11
|
+
fetchOptions?: import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
|
|
12
|
+
}>, unknown>, "mutationKey">;
|