@better-auth-ui/react 1.6.1 → 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/components/auth/auth-provider.d.ts +4 -3
- package/dist/components/auth/auth-provider.js +24 -40
- package/dist/components/email/email-changed.d.ts +2 -2
- package/dist/components/email/email-changed.js +154 -68
- package/dist/components/email/email-localization.js +18 -23
- package/dist/components/email/email-styles.js +52 -77
- package/dist/components/email/email-verification.d.ts +2 -2
- package/dist/components/email/email-verification.js +138 -73
- package/dist/components/email/index.d.ts +9 -9
- package/dist/components/email/index.js +9 -9
- package/dist/components/email/magic-link.d.ts +2 -2
- package/dist/components/email/magic-link.js +139 -70
- package/dist/components/email/new-device.d.ts +2 -2
- package/dist/components/email/new-device.js +221 -88
- package/dist/components/email/otp-email.d.ts +2 -2
- package/dist/components/email/otp-email.js +127 -63
- package/dist/components/email/password-changed.d.ts +2 -2
- package/dist/components/email/password-changed.js +157 -74
- package/dist/components/email/reset-password.d.ts +2 -2
- package/dist/components/email/reset-password.js +138 -66
- package/dist/components/icons/apple.d.ts +1 -1
- package/dist/components/icons/apple.js +16 -9
- package/dist/components/icons/atlassian.d.ts +1 -1
- package/dist/components/icons/atlassian.js +38 -13
- package/dist/components/icons/cognito.d.ts +1 -1
- package/dist/components/icons/cognito.js +19 -9
- package/dist/components/icons/discord.d.ts +1 -1
- package/dist/components/icons/discord.js +16 -9
- package/dist/components/icons/dropbox.d.ts +1 -1
- package/dist/components/icons/dropbox.js +16 -9
- package/dist/components/icons/facebook.d.ts +1 -1
- package/dist/components/icons/facebook.js +19 -11
- package/dist/components/icons/figma.d.ts +1 -1
- package/dist/components/icons/figma.js +34 -12
- package/dist/components/icons/github.d.ts +1 -1
- package/dist/components/icons/github.js +16 -11
- package/dist/components/icons/gitlab.d.ts +1 -1
- package/dist/components/icons/gitlab.js +30 -9
- package/dist/components/icons/google.d.ts +1 -1
- package/dist/components/icons/google.js +39 -9
- package/dist/components/icons/huggingface.d.ts +1 -1
- package/dist/components/icons/huggingface.js +38 -9
- package/dist/components/icons/index.d.ts +35 -35
- package/dist/components/icons/index.js +35 -35
- package/dist/components/icons/kakao.d.ts +1 -1
- package/dist/components/icons/kakao.js +16 -11
- package/dist/components/icons/kick.d.ts +1 -1
- package/dist/components/icons/kick.js +20 -11
- package/dist/components/icons/line.d.ts +1 -1
- package/dist/components/icons/line.js +16 -9
- package/dist/components/icons/linear.d.ts +1 -1
- package/dist/components/icons/linear.js +16 -9
- package/dist/components/icons/linkedin.d.ts +1 -1
- package/dist/components/icons/linkedin.js +33 -9
- package/dist/components/icons/microsoft.d.ts +1 -1
- package/dist/components/icons/microsoft.js +30 -9
- package/dist/components/icons/naver.d.ts +1 -1
- package/dist/components/icons/naver.js +16 -9
- package/dist/components/icons/notion.d.ts +1 -1
- package/dist/components/icons/notion.js +16 -9
- package/dist/components/icons/paybin.d.ts +1 -1
- package/dist/components/icons/paybin.js +32 -8
- package/dist/components/icons/paypal.d.ts +1 -1
- package/dist/components/icons/paypal.js +30 -9
- package/dist/components/icons/polar.d.ts +1 -1
- package/dist/components/icons/polar.js +24 -9
- package/dist/components/icons/railway.d.ts +1 -1
- package/dist/components/icons/railway.js +16 -9
- package/dist/components/icons/reddit.d.ts +1 -1
- package/dist/components/icons/reddit.js +21 -9
- package/dist/components/icons/roblox.d.ts +1 -1
- package/dist/components/icons/roblox.js +17 -12
- package/dist/components/icons/salesforce.d.ts +1 -1
- package/dist/components/icons/salesforce.js +16 -9
- package/dist/components/icons/slack.d.ts +1 -1
- package/dist/components/icons/slack.js +30 -9
- package/dist/components/icons/spotify.d.ts +1 -1
- package/dist/components/icons/spotify.js +16 -9
- package/dist/components/icons/tiktok.d.ts +1 -1
- package/dist/components/icons/tiktok.js +23 -10
- package/dist/components/icons/twitch.d.ts +1 -1
- package/dist/components/icons/twitch.js +43 -12
- package/dist/components/icons/vercel.d.ts +1 -1
- package/dist/components/icons/vercel.js +16 -9
- package/dist/components/icons/vk.d.ts +1 -1
- package/dist/components/icons/vk.js +16 -9
- package/dist/components/icons/wechat.d.ts +1 -1
- package/dist/components/icons/wechat.js +16 -9
- package/dist/components/icons/x.d.ts +1 -1
- package/dist/components/icons/x.js +16 -9
- package/dist/components/icons/zoom.d.ts +1 -1
- package/dist/components/icons/zoom.js +69 -11
- package/dist/components/settings/account/theme-preview.js +286 -7
- package/dist/core.d.ts +1 -1
- package/dist/hooks/auth/use-authenticate.d.ts +30 -6
- package/dist/hooks/auth/use-authenticate.js +22 -27
- package/dist/hooks/auth/use-is-username-available.d.ts +20 -0
- package/dist/hooks/auth/use-is-username-available.js +13 -0
- package/dist/hooks/auth/use-request-password-reset.d.ts +12 -17
- package/dist/hooks/auth/use-request-password-reset.js +12 -13
- package/dist/hooks/auth/use-reset-password.d.ts +14 -31
- package/dist/hooks/auth/use-reset-password.js +12 -12
- package/dist/hooks/auth/use-send-verification-email.d.ts +11 -16
- package/dist/hooks/auth/use-send-verification-email.js +12 -12
- package/dist/hooks/auth/use-session.d.ts +31 -5
- package/dist/hooks/auth/use-session.js +15 -17
- package/dist/hooks/auth/use-sign-in-email.d.ts +12 -39
- package/dist/hooks/auth/use-sign-in-email.js +16 -24
- package/dist/hooks/auth/use-sign-in-magic-link.d.ts +15 -20
- package/dist/hooks/auth/use-sign-in-magic-link.js +12 -12
- package/dist/hooks/auth/use-sign-in-passkey.d.ts +13 -50
- package/dist/hooks/auth/use-sign-in-passkey.js +16 -24
- package/dist/hooks/auth/use-sign-in-social.d.ts +32 -62
- package/dist/hooks/auth/use-sign-in-social.js +12 -12
- package/dist/hooks/auth/use-sign-in-username.d.ts +25 -0
- package/dist/hooks/auth/use-sign-in-username.js +17 -0
- package/dist/hooks/auth/use-sign-out.d.ts +11 -12
- package/dist/hooks/auth/use-sign-out.js +15 -23
- package/dist/hooks/auth/use-sign-up-email.d.ts +178 -262
- package/dist/hooks/auth/use-sign-up-email.js +16 -24
- package/dist/hooks/auth/use-user.d.ts +63 -61
- package/dist/hooks/auth/use-user.js +10 -13
- package/dist/hooks/settings/use-account-info.d.ts +12 -12
- package/dist/hooks/settings/use-account-info.js +17 -24
- package/dist/hooks/settings/use-add-passkey.d.ts +11 -33
- package/dist/hooks/settings/use-add-passkey.js +16 -23
- package/dist/hooks/settings/use-change-email.d.ts +12 -15
- package/dist/hooks/settings/use-change-email.js +16 -22
- package/dist/hooks/settings/use-change-password.d.ts +12 -45
- package/dist/hooks/settings/use-change-password.js +12 -10
- package/dist/hooks/settings/use-delete-passkey.d.ts +11 -13
- package/dist/hooks/settings/use-delete-passkey.js +16 -23
- package/dist/hooks/settings/use-delete-user.d.ts +14 -32
- package/dist/hooks/settings/use-delete-user.js +12 -10
- package/dist/hooks/settings/use-link-social.d.ts +23 -26
- package/dist/hooks/settings/use-link-social.js +12 -9
- package/dist/hooks/settings/use-list-accounts.d.ts +10 -8
- package/dist/hooks/settings/use-list-accounts.js +14 -22
- package/dist/hooks/settings/use-list-device-sessions.d.ts +30 -7
- package/dist/hooks/settings/use-list-device-sessions.js +14 -21
- package/dist/hooks/settings/use-list-sessions.d.ts +10 -7
- package/dist/hooks/settings/use-list-sessions.js +14 -21
- package/dist/hooks/settings/use-list-user-passkeys.d.ts +9 -6
- package/dist/hooks/settings/use-list-user-passkeys.js +14 -21
- package/dist/hooks/settings/use-revoke-multi-session.d.ts +12 -12
- package/dist/hooks/settings/use-revoke-multi-session.js +16 -19
- package/dist/hooks/settings/use-revoke-session.d.ts +12 -12
- package/dist/hooks/settings/use-revoke-session.js +16 -20
- package/dist/hooks/settings/use-set-active-session.d.ts +13 -30
- package/dist/hooks/settings/use-set-active-session.js +19 -27
- package/dist/hooks/settings/use-unlink-account.d.ts +13 -13
- package/dist/hooks/settings/use-unlink-account.js +16 -20
- package/dist/hooks/settings/use-update-user.d.ts +1179 -5
- package/dist/hooks/settings/use-update-user.js +23 -28
- 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 +40 -36
- package/dist/index.js +84 -36
- package/dist/lib/auth-client.d.ts +1254 -1254
- package/dist/lib/auth-client.js +11 -11
- package/dist/lib/auth-config.d.ts +3 -3
- package/dist/lib/auth-context.d.ts +2 -2
- package/dist/lib/auth-context.js +5 -2
- package/dist/lib/provider-icons.d.ts +2 -2
- package/dist/lib/provider-icons.js +75 -47
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +7 -4
- 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 +11 -11
- package/src/components/auth/auth-provider.tsx +4 -6
- package/src/hooks/auth/use-authenticate.ts +8 -9
- package/src/hooks/auth/use-is-username-available.ts +31 -0
- package/src/hooks/auth/use-request-password-reset.ts +20 -11
- package/src/hooks/auth/use-reset-password.ts +20 -12
- package/src/hooks/auth/use-send-verification-email.ts +19 -11
- package/src/hooks/auth/use-session.ts +22 -17
- package/src/hooks/auth/use-sign-in-email.ts +24 -19
- package/src/hooks/auth/use-sign-in-magic-link.ts +19 -13
- package/src/hooks/auth/use-sign-in-passkey.ts +24 -18
- package/src/hooks/auth/use-sign-in-social.ts +19 -11
- package/src/hooks/auth/use-sign-in-username.ts +40 -0
- package/src/hooks/auth/use-sign-out.ts +20 -20
- package/src/hooks/auth/use-sign-up-email.ts +25 -21
- package/src/hooks/auth/use-user.ts +7 -9
- package/src/hooks/settings/use-account-info.ts +31 -21
- package/src/hooks/settings/use-add-passkey.ts +22 -17
- package/src/hooks/settings/use-change-email.ts +24 -20
- package/src/hooks/settings/use-change-password.ts +19 -11
- package/src/hooks/settings/use-delete-passkey.ts +21 -16
- package/src/hooks/settings/use-delete-user.ts +19 -11
- package/src/hooks/settings/use-link-social.ts +20 -10
- package/src/hooks/settings/use-list-accounts.ts +28 -16
- package/src/hooks/settings/use-list-device-sessions.ts +29 -22
- package/src/hooks/settings/use-list-sessions.ts +28 -15
- package/src/hooks/settings/use-list-user-passkeys.ts +28 -17
- package/src/hooks/settings/use-revoke-multi-session.ts +28 -19
- package/src/hooks/settings/use-revoke-session.ts +26 -18
- package/src/hooks/settings/use-set-active-session.ts +40 -28
- package/src/hooks/settings/use-unlink-account.ts +23 -17
- package/src/hooks/settings/use-update-user.ts +33 -27
- package/src/hooks/use-auth-mutation.ts +29 -0
- package/src/hooks/use-auth-query.ts +36 -0
- package/src/index.ts +4 -0
- package/src/lib/auth-config.ts +1 -1
- 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 -10
- package/dist/hooks/auth/use-auth-query.d.ts +0 -24
- package/dist/hooks/auth/use-auth-query.js +0 -10
- package/dist/lib/auth-config.js +0 -1
- package/src/hooks/auth/use-auth-mutation.ts +0 -56
- package/src/hooks/auth/use-auth-query.ts +0 -50
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createAuthClient } from
|
|
2
|
-
import
|
|
3
|
-
export type { PathToObject } from
|
|
1
|
+
import { createAuthClient } from 'better-auth/react';
|
|
2
|
+
import { AuthConfig } from './auth-config';
|
|
3
|
+
export type { PathToObject } from 'better-auth/client';
|
|
4
4
|
/**
|
|
5
5
|
* Type representing any auth client created with `createAuthClient`.
|
|
6
6
|
*
|
|
@@ -10,193 +10,56 @@ export type { PathToObject } from "better-auth/client";
|
|
|
10
10
|
export type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, "signUp">;
|
|
11
11
|
declare const authClient: {
|
|
12
12
|
useListPasskeys: () => {
|
|
13
|
-
data: import(
|
|
14
|
-
error: null | import(
|
|
13
|
+
data: import('@better-auth/passkey/client').Passkey[] | null;
|
|
14
|
+
error: null | import('better-auth/client').BetterFetchError;
|
|
15
15
|
isPending: boolean;
|
|
16
16
|
isRefetching: boolean;
|
|
17
17
|
refetch: (queryParams?: {
|
|
18
|
-
query?: import(
|
|
18
|
+
query?: import('better-auth').SessionQueryParams;
|
|
19
19
|
} | undefined) => Promise<void>;
|
|
20
20
|
};
|
|
21
|
-
} & {
|
|
22
|
-
deleteUser: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
23
|
-
callbackURL?: string | undefined;
|
|
24
|
-
password?: string | undefined;
|
|
25
|
-
token?: string | undefined;
|
|
26
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
27
|
-
callbackURL?: string | undefined;
|
|
28
|
-
password?: string | undefined;
|
|
29
|
-
token?: string | undefined;
|
|
30
|
-
} & {
|
|
31
|
-
fetchOptions?: FetchOptions | undefined;
|
|
32
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
33
|
-
success: boolean;
|
|
34
|
-
message: string;
|
|
35
|
-
}, {
|
|
36
|
-
code?: string | undefined;
|
|
37
|
-
message?: string | undefined;
|
|
38
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
39
|
-
} & {
|
|
40
|
-
resetPassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
41
|
-
newPassword: string;
|
|
42
|
-
token?: string | undefined;
|
|
43
|
-
}> & Record<string, any>, Partial<{
|
|
44
|
-
token?: string | undefined;
|
|
45
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
46
|
-
newPassword: string;
|
|
47
|
-
token?: string | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
fetchOptions?: FetchOptions | undefined;
|
|
50
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
51
|
-
status: boolean;
|
|
52
|
-
}, {
|
|
53
|
-
code?: string | undefined;
|
|
54
|
-
message?: string | undefined;
|
|
55
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
56
|
-
} & {
|
|
57
|
-
signOut: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
58
|
-
query?: Record<string, any> | undefined;
|
|
59
|
-
fetchOptions?: FetchOptions | undefined;
|
|
60
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
61
|
-
success: boolean;
|
|
62
|
-
}, {
|
|
63
|
-
code?: string | undefined;
|
|
64
|
-
message?: string | undefined;
|
|
65
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
66
|
-
} & {
|
|
67
|
-
changeEmail: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
68
|
-
newEmail: string;
|
|
69
|
-
callbackURL?: string | undefined;
|
|
70
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
71
|
-
newEmail: string;
|
|
72
|
-
callbackURL?: string | undefined;
|
|
73
|
-
} & {
|
|
74
|
-
fetchOptions?: FetchOptions | undefined;
|
|
75
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
76
|
-
status: boolean;
|
|
77
|
-
}, {
|
|
78
|
-
code?: string | undefined;
|
|
79
|
-
message?: string | undefined;
|
|
80
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
81
|
-
} & {
|
|
82
|
-
changePassword: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
83
|
-
newPassword: string;
|
|
84
|
-
currentPassword: string;
|
|
85
|
-
revokeOtherSessions?: boolean | undefined;
|
|
86
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
87
|
-
newPassword: string;
|
|
88
|
-
currentPassword: string;
|
|
89
|
-
revokeOtherSessions?: boolean | undefined;
|
|
90
|
-
} & {
|
|
91
|
-
fetchOptions?: FetchOptions | undefined;
|
|
92
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<Omit<{
|
|
93
|
-
token: string | null;
|
|
94
|
-
user: {
|
|
95
|
-
id: string;
|
|
96
|
-
createdAt: Date;
|
|
97
|
-
updatedAt: Date;
|
|
98
|
-
email: string;
|
|
99
|
-
emailVerified: boolean;
|
|
100
|
-
name: string;
|
|
101
|
-
image?: string | null | undefined;
|
|
102
|
-
} & Record<string, any> & {
|
|
103
|
-
id: string;
|
|
104
|
-
createdAt: Date;
|
|
105
|
-
updatedAt: Date;
|
|
106
|
-
email: string;
|
|
107
|
-
emailVerified: boolean;
|
|
108
|
-
name: string;
|
|
109
|
-
image?: string | null | undefined;
|
|
110
|
-
};
|
|
111
|
-
}, "user"> & {
|
|
112
|
-
user: import("better-auth").StripEmptyObjects<{
|
|
113
|
-
id: string;
|
|
114
|
-
createdAt: Date;
|
|
115
|
-
updatedAt: Date;
|
|
116
|
-
email: string;
|
|
117
|
-
emailVerified: boolean;
|
|
118
|
-
name: string;
|
|
119
|
-
image?: string | null | undefined;
|
|
120
|
-
} & {} & {
|
|
121
|
-
username?: string | null | undefined;
|
|
122
|
-
displayUsername?: string | null | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
}, {
|
|
125
|
-
code?: string | undefined;
|
|
126
|
-
message?: string | undefined;
|
|
127
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
128
|
-
} & {
|
|
129
|
-
revokeSession: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
130
|
-
token: string;
|
|
131
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
132
|
-
token: string;
|
|
133
|
-
} & {
|
|
134
|
-
fetchOptions?: FetchOptions | undefined;
|
|
135
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
136
|
-
status: boolean;
|
|
137
|
-
}, {
|
|
138
|
-
code?: string | undefined;
|
|
139
|
-
message?: string | undefined;
|
|
140
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
141
21
|
} & {
|
|
142
22
|
signIn: {
|
|
143
|
-
|
|
144
|
-
|
|
23
|
+
magicLink: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
24
|
+
email: string;
|
|
25
|
+
name?: string | undefined;
|
|
145
26
|
callbackURL?: string | undefined;
|
|
146
27
|
newUserCallbackURL?: string | undefined;
|
|
147
28
|
errorCallbackURL?: string | undefined;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
accessToken?: string | undefined;
|
|
153
|
-
refreshToken?: string | undefined;
|
|
154
|
-
expiresAt?: number | undefined;
|
|
155
|
-
user?: {
|
|
156
|
-
name?: {
|
|
157
|
-
firstName?: string | undefined;
|
|
158
|
-
lastName?: string | undefined;
|
|
159
|
-
} | undefined;
|
|
160
|
-
email?: string | undefined;
|
|
161
|
-
} | undefined;
|
|
162
|
-
} | undefined;
|
|
163
|
-
scopes?: string[] | undefined;
|
|
164
|
-
requestSignUp?: boolean | undefined;
|
|
165
|
-
loginHint?: string | undefined;
|
|
166
|
-
additionalData?: Record<string, any> | undefined;
|
|
167
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
168
|
-
provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat" | (string & {});
|
|
29
|
+
metadata?: Record<string, any> | undefined;
|
|
30
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
31
|
+
email: string;
|
|
32
|
+
name?: string | undefined;
|
|
169
33
|
callbackURL?: string | undefined;
|
|
170
34
|
newUserCallbackURL?: string | undefined;
|
|
171
35
|
errorCallbackURL?: string | undefined;
|
|
172
|
-
|
|
173
|
-
idToken?: {
|
|
174
|
-
token: string;
|
|
175
|
-
nonce?: string | undefined;
|
|
176
|
-
accessToken?: string | undefined;
|
|
177
|
-
refreshToken?: string | undefined;
|
|
178
|
-
expiresAt?: number | undefined;
|
|
179
|
-
user?: {
|
|
180
|
-
name?: {
|
|
181
|
-
firstName?: string | undefined;
|
|
182
|
-
lastName?: string | undefined;
|
|
183
|
-
} | undefined;
|
|
184
|
-
email?: string | undefined;
|
|
185
|
-
} | undefined;
|
|
186
|
-
} | undefined;
|
|
187
|
-
scopes?: string[] | undefined;
|
|
188
|
-
requestSignUp?: boolean | undefined;
|
|
189
|
-
loginHint?: string | undefined;
|
|
190
|
-
additionalData?: Record<string, any> | undefined;
|
|
36
|
+
metadata?: Record<string, any> | undefined;
|
|
191
37
|
} & {
|
|
192
38
|
fetchOptions?: FetchOptions | undefined;
|
|
193
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
39
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
40
|
+
status: boolean;
|
|
41
|
+
}, {
|
|
42
|
+
code?: string | undefined;
|
|
43
|
+
message?: string | undefined;
|
|
44
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
45
|
+
};
|
|
46
|
+
} & {
|
|
47
|
+
magicLink: {
|
|
48
|
+
verify: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
49
|
+
token: string;
|
|
50
|
+
callbackURL?: string | undefined;
|
|
51
|
+
errorCallbackURL?: string | undefined;
|
|
52
|
+
newUserCallbackURL?: string | undefined;
|
|
53
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
54
|
+
query: {
|
|
55
|
+
token: string;
|
|
56
|
+
callbackURL?: string | undefined;
|
|
57
|
+
errorCallbackURL?: string | undefined;
|
|
58
|
+
newUserCallbackURL?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
fetchOptions?: FetchOptions | undefined;
|
|
61
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<Omit<{
|
|
198
62
|
token: string;
|
|
199
|
-
url: undefined;
|
|
200
63
|
user: {
|
|
201
64
|
id: string;
|
|
202
65
|
createdAt: Date;
|
|
@@ -204,10 +67,20 @@ declare const authClient: {
|
|
|
204
67
|
email: string;
|
|
205
68
|
emailVerified: boolean;
|
|
206
69
|
name: string;
|
|
207
|
-
image?: string | null | undefined
|
|
70
|
+
image?: string | null | undefined;
|
|
71
|
+
};
|
|
72
|
+
session: {
|
|
73
|
+
id: string;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
userId: string;
|
|
77
|
+
expiresAt: Date;
|
|
78
|
+
token: string;
|
|
79
|
+
ipAddress?: string | null | undefined;
|
|
80
|
+
userAgent?: string | null | undefined;
|
|
208
81
|
};
|
|
209
82
|
}, "user"> & {
|
|
210
|
-
user: import(
|
|
83
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
211
84
|
id: string;
|
|
212
85
|
createdAt: Date;
|
|
213
86
|
updatedAt: Date;
|
|
@@ -219,94 +92,465 @@ declare const authClient: {
|
|
|
219
92
|
username?: string | null | undefined;
|
|
220
93
|
displayUsername?: string | null | undefined;
|
|
221
94
|
}>;
|
|
222
|
-
}
|
|
95
|
+
}, "session"> & {
|
|
96
|
+
session: import('better-auth').StripEmptyObjects<{
|
|
97
|
+
id: string;
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
updatedAt: Date;
|
|
100
|
+
userId: string;
|
|
101
|
+
expiresAt: Date;
|
|
102
|
+
token: string;
|
|
103
|
+
ipAddress?: string | null | undefined;
|
|
104
|
+
userAgent?: string | null | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
}, {
|
|
223
107
|
code?: string | undefined;
|
|
224
108
|
message?: string | undefined;
|
|
225
109
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
226
110
|
};
|
|
227
111
|
} & {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
112
|
+
multiSession: {
|
|
113
|
+
listDeviceSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
114
|
+
query?: Record<string, any> | undefined;
|
|
115
|
+
fetchOptions?: FetchOptions | undefined;
|
|
116
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
117
|
+
session: {
|
|
118
|
+
id: string;
|
|
119
|
+
createdAt: Date;
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
userId: string;
|
|
122
|
+
expiresAt: Date;
|
|
123
|
+
token: string;
|
|
124
|
+
ipAddress?: string | null | undefined;
|
|
125
|
+
userAgent?: string | null | undefined;
|
|
126
|
+
};
|
|
127
|
+
user: {
|
|
128
|
+
id: string;
|
|
129
|
+
createdAt: Date;
|
|
130
|
+
updatedAt: Date;
|
|
131
|
+
email: string;
|
|
132
|
+
emailVerified: boolean;
|
|
133
|
+
name: string;
|
|
134
|
+
image?: string | null | undefined;
|
|
135
|
+
};
|
|
136
|
+
}[], {
|
|
137
|
+
code?: string | undefined;
|
|
138
|
+
message?: string | undefined;
|
|
139
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
140
|
+
};
|
|
141
|
+
} & {
|
|
142
|
+
multiSession: {
|
|
143
|
+
setActive: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
144
|
+
sessionToken: string;
|
|
145
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
146
|
+
sessionToken: string;
|
|
147
|
+
} & {
|
|
148
|
+
fetchOptions?: FetchOptions | undefined;
|
|
149
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
150
|
+
session: {
|
|
151
|
+
id: string;
|
|
152
|
+
createdAt: Date;
|
|
153
|
+
updatedAt: Date;
|
|
154
|
+
userId: string;
|
|
155
|
+
expiresAt: Date;
|
|
156
|
+
token: string;
|
|
157
|
+
ipAddress?: string | null | undefined;
|
|
158
|
+
userAgent?: string | null | undefined;
|
|
159
|
+
} & Record<string, any>;
|
|
160
|
+
user: {
|
|
161
|
+
id: string;
|
|
162
|
+
createdAt: Date;
|
|
163
|
+
updatedAt: Date;
|
|
164
|
+
email: string;
|
|
165
|
+
emailVerified: boolean;
|
|
166
|
+
name: string;
|
|
167
|
+
image?: string | null | undefined;
|
|
168
|
+
} & Record<string, any>;
|
|
169
|
+
}, {
|
|
170
|
+
code?: string | undefined;
|
|
171
|
+
message?: string | undefined;
|
|
172
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
173
|
+
};
|
|
174
|
+
} & {
|
|
175
|
+
multiSession: {
|
|
176
|
+
revoke: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
177
|
+
sessionToken: string;
|
|
178
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
179
|
+
sessionToken: string;
|
|
180
|
+
} & {
|
|
181
|
+
fetchOptions?: FetchOptions | undefined;
|
|
182
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
183
|
+
status: boolean;
|
|
184
|
+
}, {
|
|
185
|
+
code?: string | undefined;
|
|
186
|
+
message?: string | undefined;
|
|
187
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
188
|
+
};
|
|
189
|
+
} & {
|
|
190
|
+
passkey: {
|
|
191
|
+
generateRegisterOptions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
192
|
+
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
context?: string | undefined;
|
|
195
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
196
|
+
query?: {
|
|
197
|
+
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
context?: string | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
fetchOptions?: FetchOptions | undefined;
|
|
202
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON, {
|
|
203
|
+
code?: string | undefined;
|
|
204
|
+
message?: string | undefined;
|
|
205
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
206
|
+
};
|
|
207
|
+
} & {
|
|
208
|
+
passkey: {
|
|
209
|
+
generateAuthenticateOptions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
210
|
+
query?: Record<string, any> | undefined;
|
|
211
|
+
fetchOptions?: FetchOptions | undefined;
|
|
212
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON, {
|
|
213
|
+
code?: string | undefined;
|
|
214
|
+
message?: string | undefined;
|
|
215
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
216
|
+
};
|
|
217
|
+
} & {
|
|
218
|
+
passkey: {
|
|
219
|
+
verifyRegistration: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
220
|
+
response: any;
|
|
221
|
+
name?: string | undefined;
|
|
222
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
223
|
+
response: any;
|
|
224
|
+
name?: string | undefined;
|
|
225
|
+
} & {
|
|
226
|
+
fetchOptions?: FetchOptions | undefined;
|
|
227
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').Passkey, {
|
|
228
|
+
code?: string | undefined;
|
|
229
|
+
message?: string | undefined;
|
|
230
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
231
|
+
};
|
|
232
|
+
} & {
|
|
233
|
+
passkey: {
|
|
234
|
+
verifyAuthentication: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
235
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
236
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
237
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
238
|
+
} & {
|
|
239
|
+
fetchOptions?: FetchOptions | undefined;
|
|
240
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
241
|
+
session: {
|
|
242
|
+
id: string;
|
|
243
|
+
createdAt: Date;
|
|
244
|
+
updatedAt: Date;
|
|
245
|
+
userId: string;
|
|
246
|
+
expiresAt: Date;
|
|
247
|
+
token: string;
|
|
248
|
+
ipAddress?: string | null | undefined;
|
|
249
|
+
userAgent?: string | null | undefined;
|
|
250
|
+
};
|
|
251
|
+
}, {
|
|
252
|
+
code?: string | undefined;
|
|
253
|
+
message?: string | undefined;
|
|
254
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
255
|
+
};
|
|
256
|
+
} & {
|
|
257
|
+
passkey: {
|
|
258
|
+
listUserPasskeys: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
259
|
+
query?: Record<string, any> | undefined;
|
|
260
|
+
fetchOptions?: FetchOptions | undefined;
|
|
261
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('@better-auth/passkey/client').Passkey[], {
|
|
262
|
+
code?: string | undefined;
|
|
263
|
+
message?: string | undefined;
|
|
264
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
265
|
+
};
|
|
266
|
+
} & {
|
|
267
|
+
passkey: {
|
|
268
|
+
deletePasskey: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
269
|
+
id: string;
|
|
270
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
271
|
+
id: string;
|
|
272
|
+
} & {
|
|
273
|
+
fetchOptions?: FetchOptions | undefined;
|
|
274
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
275
|
+
status: boolean;
|
|
276
|
+
}, {
|
|
277
|
+
code?: string | undefined;
|
|
278
|
+
message?: string | undefined;
|
|
279
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
280
|
+
};
|
|
281
|
+
} & {
|
|
282
|
+
passkey: {
|
|
283
|
+
updatePasskey: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
284
|
+
id: string;
|
|
285
|
+
name: string;
|
|
286
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
287
|
+
id: string;
|
|
288
|
+
name: string;
|
|
289
|
+
} & {
|
|
290
|
+
fetchOptions?: FetchOptions | undefined;
|
|
291
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
292
|
+
passkey: import('@better-auth/passkey/client').Passkey;
|
|
293
|
+
}, {
|
|
294
|
+
code?: string | undefined;
|
|
295
|
+
message?: string | undefined;
|
|
296
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
297
|
+
};
|
|
298
|
+
} & {
|
|
299
|
+
signIn: {
|
|
300
|
+
username: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
301
|
+
username: string;
|
|
302
|
+
password: string;
|
|
303
|
+
rememberMe?: boolean | undefined;
|
|
304
|
+
callbackURL?: string | undefined;
|
|
305
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
306
|
+
username: string;
|
|
307
|
+
password: string;
|
|
308
|
+
rememberMe?: boolean | undefined;
|
|
309
|
+
callbackURL?: string | undefined;
|
|
310
|
+
} & {
|
|
311
|
+
fetchOptions?: FetchOptions | undefined;
|
|
312
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<{
|
|
313
|
+
token: string;
|
|
314
|
+
user: {
|
|
315
|
+
id: string;
|
|
316
|
+
createdAt: Date;
|
|
317
|
+
updatedAt: Date;
|
|
318
|
+
email: string;
|
|
319
|
+
emailVerified: boolean;
|
|
320
|
+
name: string;
|
|
321
|
+
image?: string | null | undefined;
|
|
322
|
+
} & {
|
|
323
|
+
username: string;
|
|
324
|
+
displayUsername: string;
|
|
325
|
+
};
|
|
326
|
+
}, "user"> & {
|
|
327
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
328
|
+
id: string;
|
|
329
|
+
createdAt: Date;
|
|
330
|
+
updatedAt: Date;
|
|
331
|
+
email: string;
|
|
332
|
+
emailVerified: boolean;
|
|
333
|
+
name: string;
|
|
334
|
+
image?: string | null | undefined;
|
|
335
|
+
} & {} & {
|
|
336
|
+
username?: string | null | undefined;
|
|
337
|
+
displayUsername?: string | null | undefined;
|
|
338
|
+
}>;
|
|
339
|
+
}, {
|
|
340
|
+
code?: string | undefined;
|
|
341
|
+
message?: string | undefined;
|
|
342
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
343
|
+
};
|
|
344
|
+
} & {
|
|
345
|
+
isUsernameAvailable: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
346
|
+
username: string;
|
|
347
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
348
|
+
username: string;
|
|
349
|
+
} & {
|
|
350
|
+
fetchOptions?: FetchOptions | undefined;
|
|
351
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
352
|
+
available: boolean;
|
|
353
|
+
}, {
|
|
354
|
+
code?: string | undefined;
|
|
355
|
+
message?: string | undefined;
|
|
356
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
357
|
+
} & {
|
|
358
|
+
deleteUser: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
359
|
+
callbackURL?: string | undefined;
|
|
360
|
+
password?: string | undefined;
|
|
361
|
+
token?: string | undefined;
|
|
362
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
363
|
+
callbackURL?: string | undefined;
|
|
364
|
+
password?: string | undefined;
|
|
365
|
+
token?: string | undefined;
|
|
366
|
+
} & {
|
|
367
|
+
fetchOptions?: FetchOptions | undefined;
|
|
368
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
369
|
+
success: boolean;
|
|
370
|
+
message: string;
|
|
371
|
+
}, {
|
|
372
|
+
code?: string | undefined;
|
|
373
|
+
message?: string | undefined;
|
|
374
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
375
|
+
} & {
|
|
376
|
+
signIn: {
|
|
377
|
+
social: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
378
|
+
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";
|
|
379
|
+
callbackURL?: string | undefined;
|
|
380
|
+
newUserCallbackURL?: string | undefined;
|
|
381
|
+
errorCallbackURL?: string | undefined;
|
|
382
|
+
disableRedirect?: boolean | undefined;
|
|
383
|
+
idToken?: {
|
|
384
|
+
token: string;
|
|
385
|
+
nonce?: string | undefined;
|
|
386
|
+
accessToken?: string | undefined;
|
|
387
|
+
refreshToken?: string | undefined;
|
|
388
|
+
expiresAt?: number | undefined;
|
|
389
|
+
user?: {
|
|
390
|
+
name?: {
|
|
391
|
+
firstName?: string | undefined;
|
|
392
|
+
lastName?: string | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
email?: string | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
scopes?: string[] | undefined;
|
|
398
|
+
requestSignUp?: boolean | undefined;
|
|
399
|
+
loginHint?: string | undefined;
|
|
400
|
+
additionalData?: Record<string, any> | undefined;
|
|
401
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
402
|
+
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";
|
|
403
|
+
callbackURL?: string | undefined;
|
|
404
|
+
newUserCallbackURL?: string | undefined;
|
|
405
|
+
errorCallbackURL?: string | undefined;
|
|
406
|
+
disableRedirect?: boolean | undefined;
|
|
407
|
+
idToken?: {
|
|
408
|
+
token: string;
|
|
409
|
+
nonce?: string | undefined;
|
|
410
|
+
accessToken?: string | undefined;
|
|
411
|
+
refreshToken?: string | undefined;
|
|
412
|
+
expiresAt?: number | undefined;
|
|
413
|
+
user?: {
|
|
414
|
+
name?: {
|
|
415
|
+
firstName?: string | undefined;
|
|
416
|
+
lastName?: string | undefined;
|
|
417
|
+
} | undefined;
|
|
418
|
+
email?: string | undefined;
|
|
419
|
+
} | undefined;
|
|
420
|
+
} | undefined;
|
|
421
|
+
scopes?: string[] | undefined;
|
|
422
|
+
requestSignUp?: boolean | undefined;
|
|
423
|
+
loginHint?: string | undefined;
|
|
424
|
+
additionalData?: Record<string, any> | undefined;
|
|
425
|
+
} & {
|
|
426
|
+
fetchOptions?: FetchOptions | undefined;
|
|
427
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
428
|
+
redirect: boolean;
|
|
429
|
+
url: string;
|
|
430
|
+
} | (Omit<{
|
|
431
|
+
redirect: boolean;
|
|
432
|
+
token: string;
|
|
433
|
+
url: undefined;
|
|
434
|
+
user: {
|
|
435
|
+
id: string;
|
|
436
|
+
createdAt: Date;
|
|
437
|
+
updatedAt: Date;
|
|
438
|
+
email: string;
|
|
439
|
+
emailVerified: boolean;
|
|
440
|
+
name: string;
|
|
441
|
+
image?: string | null | undefined | undefined;
|
|
442
|
+
};
|
|
443
|
+
}, "user"> & {
|
|
444
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
445
|
+
id: string;
|
|
446
|
+
createdAt: Date;
|
|
447
|
+
updatedAt: Date;
|
|
448
|
+
email: string;
|
|
449
|
+
emailVerified: boolean;
|
|
450
|
+
name: string;
|
|
451
|
+
image?: string | null | undefined;
|
|
452
|
+
} & {} & {
|
|
453
|
+
username?: string | null | undefined;
|
|
454
|
+
displayUsername?: string | null | undefined;
|
|
455
|
+
}>;
|
|
456
|
+
}), {
|
|
457
|
+
code?: string | undefined;
|
|
458
|
+
message?: string | undefined;
|
|
459
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
460
|
+
};
|
|
461
|
+
} & {
|
|
462
|
+
signOut: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
463
|
+
query?: Record<string, any> | undefined;
|
|
464
|
+
fetchOptions?: FetchOptions | undefined;
|
|
465
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
466
|
+
success: boolean;
|
|
467
|
+
}, {
|
|
468
|
+
code?: string | undefined;
|
|
469
|
+
message?: string | undefined;
|
|
470
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
471
|
+
} & {
|
|
472
|
+
signUp: {
|
|
473
|
+
email: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
474
|
+
name: string;
|
|
475
|
+
email: string;
|
|
476
|
+
password: string;
|
|
477
|
+
image?: string | undefined;
|
|
478
|
+
callbackURL?: string | undefined;
|
|
479
|
+
rememberMe?: boolean | undefined;
|
|
480
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<import('better-auth/client').InferSignUpEmailCtx<{
|
|
481
|
+
plugins: ({
|
|
482
|
+
id: "magic-link";
|
|
483
|
+
version: string;
|
|
484
|
+
$InferServerPlugin: ReturnType<(options: import('better-auth/plugins/magic-link').MagicLinkOptions) => {
|
|
485
|
+
id: "magic-link";
|
|
486
|
+
version: string;
|
|
487
|
+
endpoints: {
|
|
488
|
+
signInMagicLink: import('better-auth').StrictEndpoint<"/sign-in/magic-link", {
|
|
489
|
+
method: "POST";
|
|
490
|
+
requireHeaders: true;
|
|
491
|
+
body: import('zod').ZodObject<{
|
|
492
|
+
email: import('zod').ZodEmail;
|
|
493
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
494
|
+
callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
495
|
+
newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
496
|
+
errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
497
|
+
metadata: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodAny>>;
|
|
498
|
+
}, import('zod/v4/core').$strip>;
|
|
499
|
+
metadata: {
|
|
500
|
+
openapi: {
|
|
501
|
+
operationId: string;
|
|
502
|
+
description: string;
|
|
503
|
+
responses: {
|
|
504
|
+
200: {
|
|
505
|
+
description: string;
|
|
506
|
+
content: {
|
|
507
|
+
"application/json": {
|
|
508
|
+
schema: {
|
|
509
|
+
type: "object";
|
|
510
|
+
properties: {
|
|
511
|
+
status: {
|
|
512
|
+
type: string;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
}, {
|
|
523
|
+
status: boolean;
|
|
524
|
+
}>;
|
|
525
|
+
magicLinkVerify: import('better-auth').StrictEndpoint<"/magic-link/verify", {
|
|
526
|
+
method: "GET";
|
|
527
|
+
query: import('zod').ZodObject<{
|
|
528
|
+
token: import('zod').ZodString;
|
|
529
|
+
callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
530
|
+
errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
531
|
+
newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
532
|
+
}, import('zod/v4/core').$strip>;
|
|
533
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>)[];
|
|
534
|
+
requireHeaders: true;
|
|
535
|
+
metadata: {
|
|
536
|
+
openapi: {
|
|
537
|
+
operationId: string;
|
|
538
|
+
description: string;
|
|
539
|
+
responses: {
|
|
540
|
+
200: {
|
|
541
|
+
description: string;
|
|
542
|
+
content: {
|
|
543
|
+
"application/json": {
|
|
544
|
+
schema: {
|
|
545
|
+
type: "object";
|
|
546
|
+
properties: {
|
|
547
|
+
session: {
|
|
548
|
+
$ref: string;
|
|
549
|
+
};
|
|
550
|
+
user: {
|
|
551
|
+
$ref: string;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
310
554
|
};
|
|
311
555
|
};
|
|
312
556
|
};
|
|
@@ -342,16 +586,16 @@ declare const authClient: {
|
|
|
342
586
|
window: number;
|
|
343
587
|
max: number;
|
|
344
588
|
}[];
|
|
345
|
-
options: import(
|
|
589
|
+
options: import('better-auth/plugins/magic-link').MagicLinkOptions;
|
|
346
590
|
}>;
|
|
347
591
|
} | {
|
|
348
592
|
id: "multi-session";
|
|
349
593
|
version: string;
|
|
350
|
-
$InferServerPlugin: ReturnType<(options?: import(
|
|
594
|
+
$InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined) => {
|
|
351
595
|
id: "multi-session";
|
|
352
596
|
version: string;
|
|
353
597
|
endpoints: {
|
|
354
|
-
listDeviceSessions: import(
|
|
598
|
+
listDeviceSessions: import('better-auth').StrictEndpoint<"/multi-session/list-device-sessions", {
|
|
355
599
|
method: "GET";
|
|
356
600
|
requireHeaders: true;
|
|
357
601
|
}, {
|
|
@@ -375,11 +619,11 @@ declare const authClient: {
|
|
|
375
619
|
image?: string | null | undefined;
|
|
376
620
|
};
|
|
377
621
|
}[]>;
|
|
378
|
-
setActiveSession: import(
|
|
622
|
+
setActiveSession: import('better-auth').StrictEndpoint<"/multi-session/set-active", {
|
|
379
623
|
method: "POST";
|
|
380
|
-
body: import(
|
|
381
|
-
sessionToken: import(
|
|
382
|
-
}, import(
|
|
624
|
+
body: import('zod').ZodObject<{
|
|
625
|
+
sessionToken: import('zod').ZodString;
|
|
626
|
+
}, import('zod/v4/core').$strip>;
|
|
383
627
|
requireHeaders: true;
|
|
384
628
|
metadata: {
|
|
385
629
|
openapi: {
|
|
@@ -424,13 +668,13 @@ declare const authClient: {
|
|
|
424
668
|
image?: string | null | undefined;
|
|
425
669
|
} & Record<string, any>;
|
|
426
670
|
}>;
|
|
427
|
-
revokeDeviceSession: import(
|
|
671
|
+
revokeDeviceSession: import('better-auth').StrictEndpoint<"/multi-session/revoke", {
|
|
428
672
|
method: "POST";
|
|
429
|
-
body: import(
|
|
430
|
-
sessionToken: import(
|
|
431
|
-
}, import(
|
|
673
|
+
body: import('zod').ZodObject<{
|
|
674
|
+
sessionToken: import('zod').ZodString;
|
|
675
|
+
}, import('zod/v4/core').$strip>;
|
|
432
676
|
requireHeaders: true;
|
|
433
|
-
use: ((inputContext: import(
|
|
677
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
434
678
|
session: {
|
|
435
679
|
session: Record<string, any> & {
|
|
436
680
|
id: string;
|
|
@@ -481,13 +725,13 @@ declare const authClient: {
|
|
|
481
725
|
};
|
|
482
726
|
hooks: {
|
|
483
727
|
after: {
|
|
484
|
-
matcher: (context: import(
|
|
485
|
-
handler: (inputContext: import(
|
|
728
|
+
matcher: (context: import('better-auth').HookEndpointContext) => boolean;
|
|
729
|
+
handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
|
|
486
730
|
}[];
|
|
487
731
|
};
|
|
488
|
-
options: import(
|
|
732
|
+
options: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined;
|
|
489
733
|
$ERROR_CODES: {
|
|
490
|
-
INVALID_SESSION_TOKEN: import(
|
|
734
|
+
INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
|
|
491
735
|
};
|
|
492
736
|
}>;
|
|
493
737
|
atomListeners: {
|
|
@@ -495,18 +739,18 @@ declare const authClient: {
|
|
|
495
739
|
signal: "$sessionSignal";
|
|
496
740
|
}[];
|
|
497
741
|
$ERROR_CODES: {
|
|
498
|
-
INVALID_SESSION_TOKEN: import(
|
|
742
|
+
INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
|
|
499
743
|
};
|
|
500
744
|
} | {
|
|
501
745
|
id: "passkey";
|
|
502
746
|
version: string;
|
|
503
|
-
$InferServerPlugin: ReturnType<(options?: import(
|
|
747
|
+
$InferServerPlugin: ReturnType<(options?: import('@better-auth/passkey/client').PasskeyOptions | undefined) => {
|
|
504
748
|
id: "passkey";
|
|
505
749
|
version: string;
|
|
506
750
|
endpoints: {
|
|
507
|
-
generatePasskeyRegistrationOptions: import(
|
|
751
|
+
generatePasskeyRegistrationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-register-options", {
|
|
508
752
|
method: "GET";
|
|
509
|
-
use: ((inputContext: import(
|
|
753
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
510
754
|
session: {
|
|
511
755
|
session: Record<string, any> & {
|
|
512
756
|
id: string;
|
|
@@ -529,14 +773,14 @@ declare const authClient: {
|
|
|
529
773
|
};
|
|
530
774
|
};
|
|
531
775
|
}>)[] | undefined;
|
|
532
|
-
query: import(
|
|
533
|
-
authenticatorAttachment: import(
|
|
776
|
+
query: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
777
|
+
authenticatorAttachment: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
534
778
|
platform: "platform";
|
|
535
779
|
"cross-platform": "cross-platform";
|
|
536
780
|
}>>;
|
|
537
|
-
name: import(
|
|
538
|
-
context: import(
|
|
539
|
-
}, import(
|
|
781
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
782
|
+
context: import('zod').ZodOptional<import('zod').ZodString>;
|
|
783
|
+
}, import('zod/v4/core').$strip>>;
|
|
540
784
|
metadata: {
|
|
541
785
|
openapi: {
|
|
542
786
|
operationId: string;
|
|
@@ -658,8 +902,8 @@ declare const authClient: {
|
|
|
658
902
|
};
|
|
659
903
|
};
|
|
660
904
|
};
|
|
661
|
-
}, import(
|
|
662
|
-
generatePasskeyAuthenticationOptions: import(
|
|
905
|
+
}, import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON>;
|
|
906
|
+
generatePasskeyAuthenticationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
663
907
|
method: "GET";
|
|
664
908
|
metadata: {
|
|
665
909
|
openapi: {
|
|
@@ -752,14 +996,14 @@ declare const authClient: {
|
|
|
752
996
|
};
|
|
753
997
|
};
|
|
754
998
|
};
|
|
755
|
-
}, import(
|
|
756
|
-
verifyPasskeyRegistration: import(
|
|
999
|
+
}, import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON>;
|
|
1000
|
+
verifyPasskeyRegistration: import('better-auth').StrictEndpoint<"/passkey/verify-registration", {
|
|
757
1001
|
method: "POST";
|
|
758
|
-
body: import(
|
|
759
|
-
response: import(
|
|
760
|
-
name: import(
|
|
761
|
-
}, import(
|
|
762
|
-
use: ((inputContext: import(
|
|
1002
|
+
body: import('zod').ZodObject<{
|
|
1003
|
+
response: import('zod').ZodAny;
|
|
1004
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1005
|
+
}, import('zod/v4/core').$strip>;
|
|
1006
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
763
1007
|
session: {
|
|
764
1008
|
session: Record<string, any> & {
|
|
765
1009
|
id: string;
|
|
@@ -803,12 +1047,12 @@ declare const authClient: {
|
|
|
803
1047
|
};
|
|
804
1048
|
};
|
|
805
1049
|
};
|
|
806
|
-
}, import(
|
|
807
|
-
verifyPasskeyAuthentication: import(
|
|
1050
|
+
}, import('@better-auth/passkey/client').Passkey>;
|
|
1051
|
+
verifyPasskeyAuthentication: import('better-auth').StrictEndpoint<"/passkey/verify-authentication", {
|
|
808
1052
|
method: "POST";
|
|
809
|
-
body: import(
|
|
810
|
-
response: import(
|
|
811
|
-
}, import(
|
|
1053
|
+
body: import('zod').ZodObject<{
|
|
1054
|
+
response: import('zod').ZodRecord<import('zod').ZodAny, import('zod').ZodAny>;
|
|
1055
|
+
}, import('zod/v4/core').$strip>;
|
|
812
1056
|
metadata: {
|
|
813
1057
|
openapi: {
|
|
814
1058
|
operationId: string;
|
|
@@ -836,7 +1080,7 @@ declare const authClient: {
|
|
|
836
1080
|
};
|
|
837
1081
|
$Infer: {
|
|
838
1082
|
body: {
|
|
839
|
-
response: import(
|
|
1083
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
840
1084
|
};
|
|
841
1085
|
};
|
|
842
1086
|
};
|
|
@@ -852,9 +1096,9 @@ declare const authClient: {
|
|
|
852
1096
|
userAgent?: string | null | undefined;
|
|
853
1097
|
};
|
|
854
1098
|
}>;
|
|
855
|
-
listPasskeys: import(
|
|
1099
|
+
listPasskeys: import('better-auth').StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
856
1100
|
method: "GET";
|
|
857
|
-
use: ((inputContext: import(
|
|
1101
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
858
1102
|
session: {
|
|
859
1103
|
session: Record<string, any> & {
|
|
860
1104
|
id: string;
|
|
@@ -899,13 +1143,13 @@ declare const authClient: {
|
|
|
899
1143
|
};
|
|
900
1144
|
};
|
|
901
1145
|
};
|
|
902
|
-
}, import(
|
|
903
|
-
deletePasskey: import(
|
|
1146
|
+
}, import('@better-auth/passkey/client').Passkey[]>;
|
|
1147
|
+
deletePasskey: import('better-auth').StrictEndpoint<"/passkey/delete-passkey", {
|
|
904
1148
|
method: "POST";
|
|
905
|
-
body: import(
|
|
906
|
-
id: import(
|
|
907
|
-
}, import(
|
|
908
|
-
use: (((inputContext: import(
|
|
1149
|
+
body: import('zod').ZodObject<{
|
|
1150
|
+
id: import('zod').ZodString;
|
|
1151
|
+
}, import('zod/v4/core').$strip>;
|
|
1152
|
+
use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
909
1153
|
session: {
|
|
910
1154
|
session: Record<string, any> & {
|
|
911
1155
|
id: string;
|
|
@@ -927,7 +1171,7 @@ declare const authClient: {
|
|
|
927
1171
|
image?: string | null | undefined;
|
|
928
1172
|
};
|
|
929
1173
|
};
|
|
930
|
-
}>) | ((inputContext: import(
|
|
1174
|
+
}>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
931
1175
|
verifiedResource: {};
|
|
932
1176
|
}>))[];
|
|
933
1177
|
metadata: {
|
|
@@ -957,13 +1201,13 @@ declare const authClient: {
|
|
|
957
1201
|
}, {
|
|
958
1202
|
status: boolean;
|
|
959
1203
|
}>;
|
|
960
|
-
updatePasskey: import(
|
|
1204
|
+
updatePasskey: import('better-auth').StrictEndpoint<"/passkey/update-passkey", {
|
|
961
1205
|
method: "POST";
|
|
962
|
-
body: import(
|
|
963
|
-
id: import(
|
|
964
|
-
name: import(
|
|
965
|
-
}, import(
|
|
966
|
-
use: (((inputContext: import(
|
|
1206
|
+
body: import('zod').ZodObject<{
|
|
1207
|
+
id: import('zod').ZodString;
|
|
1208
|
+
name: import('zod').ZodString;
|
|
1209
|
+
}, import('zod/v4/core').$strip>;
|
|
1210
|
+
use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
967
1211
|
session: {
|
|
968
1212
|
session: Record<string, any> & {
|
|
969
1213
|
id: string;
|
|
@@ -985,7 +1229,7 @@ declare const authClient: {
|
|
|
985
1229
|
image?: string | null | undefined;
|
|
986
1230
|
};
|
|
987
1231
|
};
|
|
988
|
-
}>) | ((inputContext: import(
|
|
1232
|
+
}>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
989
1233
|
verifiedResource: {};
|
|
990
1234
|
}>))[];
|
|
991
1235
|
metadata: {
|
|
@@ -1012,7 +1256,7 @@ declare const authClient: {
|
|
|
1012
1256
|
};
|
|
1013
1257
|
};
|
|
1014
1258
|
}, {
|
|
1015
|
-
passkey: import(
|
|
1259
|
+
passkey: import('@better-auth/passkey/client').Passkey;
|
|
1016
1260
|
}>;
|
|
1017
1261
|
};
|
|
1018
1262
|
schema: {
|
|
@@ -1068,31 +1312,31 @@ declare const authClient: {
|
|
|
1068
1312
|
};
|
|
1069
1313
|
};
|
|
1070
1314
|
$ERROR_CODES: {
|
|
1071
|
-
CHALLENGE_NOT_FOUND: import(
|
|
1072
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import(
|
|
1073
|
-
FAILED_TO_VERIFY_REGISTRATION: import(
|
|
1074
|
-
PASSKEY_NOT_FOUND: import(
|
|
1075
|
-
AUTHENTICATION_FAILED: import(
|
|
1076
|
-
UNABLE_TO_CREATE_SESSION: import(
|
|
1077
|
-
FAILED_TO_UPDATE_PASSKEY: import(
|
|
1078
|
-
PREVIOUSLY_REGISTERED: import(
|
|
1079
|
-
REGISTRATION_CANCELLED: import(
|
|
1080
|
-
AUTH_CANCELLED: import(
|
|
1081
|
-
UNKNOWN_ERROR: import(
|
|
1082
|
-
SESSION_REQUIRED: import(
|
|
1083
|
-
RESOLVE_USER_REQUIRED: import(
|
|
1084
|
-
RESOLVED_USER_INVALID: import(
|
|
1315
|
+
CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
|
|
1316
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
1317
|
+
FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
1318
|
+
PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
|
|
1319
|
+
AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
|
|
1320
|
+
UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
1321
|
+
FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
1322
|
+
PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
|
|
1323
|
+
REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
|
|
1324
|
+
AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
|
|
1325
|
+
UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
|
|
1326
|
+
SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
|
|
1327
|
+
RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
|
|
1328
|
+
RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
|
|
1085
1329
|
};
|
|
1086
|
-
options: import(
|
|
1330
|
+
options: import('@better-auth/passkey/client').PasskeyOptions | undefined;
|
|
1087
1331
|
}>;
|
|
1088
|
-
getActions: ($fetch: import(
|
|
1332
|
+
getActions: ($fetch: import('better-auth/client').BetterFetch, $store: import('better-auth').ClientStore) => {
|
|
1089
1333
|
signIn: {
|
|
1090
1334
|
passkey: (opts?: {
|
|
1091
1335
|
autoFill?: boolean;
|
|
1092
|
-
extensions?: import(
|
|
1336
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
1093
1337
|
returnWebAuthnResponse?: boolean;
|
|
1094
|
-
fetchOptions?: import(
|
|
1095
|
-
} | undefined, options?: import(
|
|
1338
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
1339
|
+
} | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
|
|
1096
1340
|
data: null;
|
|
1097
1341
|
error: {
|
|
1098
1342
|
message?: string | undefined;
|
|
@@ -1124,8 +1368,8 @@ declare const authClient: {
|
|
|
1124
1368
|
error: null;
|
|
1125
1369
|
} | {
|
|
1126
1370
|
webauthn: {
|
|
1127
|
-
response: import(
|
|
1128
|
-
clientExtensionResults: import(
|
|
1371
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
1372
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
1129
1373
|
};
|
|
1130
1374
|
data: null;
|
|
1131
1375
|
error: {
|
|
@@ -1135,8 +1379,8 @@ declare const authClient: {
|
|
|
1135
1379
|
};
|
|
1136
1380
|
} | {
|
|
1137
1381
|
webauthn: {
|
|
1138
|
-
response: import(
|
|
1139
|
-
clientExtensionResults: import(
|
|
1382
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
1383
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
1140
1384
|
};
|
|
1141
1385
|
data: {
|
|
1142
1386
|
session: {
|
|
@@ -1172,14 +1416,14 @@ declare const authClient: {
|
|
|
1172
1416
|
};
|
|
1173
1417
|
passkey: {
|
|
1174
1418
|
addPasskey: (opts?: {
|
|
1175
|
-
fetchOptions?: import(
|
|
1419
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
1176
1420
|
name?: string;
|
|
1177
1421
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
1178
1422
|
context?: string | null;
|
|
1179
|
-
extensions?: import(
|
|
1423
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
1180
1424
|
useAutoRegister?: boolean;
|
|
1181
1425
|
returnWebAuthnResponse?: boolean;
|
|
1182
|
-
} | undefined, fetchOpts?: import(
|
|
1426
|
+
} | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
|
|
1183
1427
|
data: null;
|
|
1184
1428
|
error: {
|
|
1185
1429
|
message?: string | undefined;
|
|
@@ -1187,14 +1431,14 @@ declare const authClient: {
|
|
|
1187
1431
|
statusText: string;
|
|
1188
1432
|
};
|
|
1189
1433
|
} | {
|
|
1190
|
-
data: import(
|
|
1434
|
+
data: import('@better-auth/passkey/client').Passkey;
|
|
1191
1435
|
error: null;
|
|
1192
1436
|
} | {
|
|
1193
1437
|
webauthn: {
|
|
1194
|
-
response: import(
|
|
1195
|
-
clientExtensionResults: import(
|
|
1438
|
+
response: import('@better-auth/passkey/client').RegistrationResponseJSON;
|
|
1439
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
1196
1440
|
};
|
|
1197
|
-
data: import(
|
|
1441
|
+
data: import('@better-auth/passkey/client').Passkey;
|
|
1198
1442
|
error: null;
|
|
1199
1443
|
} | {
|
|
1200
1444
|
data: null;
|
|
@@ -1207,12 +1451,12 @@ declare const authClient: {
|
|
|
1207
1451
|
}>;
|
|
1208
1452
|
};
|
|
1209
1453
|
$Infer: {
|
|
1210
|
-
Passkey: import(
|
|
1454
|
+
Passkey: import('@better-auth/passkey/client').Passkey;
|
|
1211
1455
|
};
|
|
1212
1456
|
};
|
|
1213
|
-
getAtoms($fetch: import(
|
|
1214
|
-
listPasskeys: import(
|
|
1215
|
-
$listPasskeys: import(
|
|
1457
|
+
getAtoms($fetch: import('better-auth/client').BetterFetch): {
|
|
1458
|
+
listPasskeys: import('better-auth/client').AuthQueryAtom<import('@better-auth/passkey/client').Passkey[]>;
|
|
1459
|
+
$listPasskeys: import('better-auth/client').PreinitializedWritableAtom<any> & object;
|
|
1216
1460
|
};
|
|
1217
1461
|
pathMethods: {
|
|
1218
1462
|
"/passkey/register": "POST";
|
|
@@ -1226,28 +1470,28 @@ declare const authClient: {
|
|
|
1226
1470
|
signal: "$sessionSignal";
|
|
1227
1471
|
})[];
|
|
1228
1472
|
$ERROR_CODES: {
|
|
1229
|
-
CHALLENGE_NOT_FOUND: import(
|
|
1230
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import(
|
|
1231
|
-
FAILED_TO_VERIFY_REGISTRATION: import(
|
|
1232
|
-
PASSKEY_NOT_FOUND: import(
|
|
1233
|
-
AUTHENTICATION_FAILED: import(
|
|
1234
|
-
UNABLE_TO_CREATE_SESSION: import(
|
|
1235
|
-
FAILED_TO_UPDATE_PASSKEY: import(
|
|
1236
|
-
PREVIOUSLY_REGISTERED: import(
|
|
1237
|
-
REGISTRATION_CANCELLED: import(
|
|
1238
|
-
AUTH_CANCELLED: import(
|
|
1239
|
-
UNKNOWN_ERROR: import(
|
|
1240
|
-
SESSION_REQUIRED: import(
|
|
1241
|
-
RESOLVE_USER_REQUIRED: import(
|
|
1242
|
-
RESOLVED_USER_INVALID: import(
|
|
1473
|
+
CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
|
|
1474
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
1475
|
+
FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
1476
|
+
PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
|
|
1477
|
+
AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
|
|
1478
|
+
UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
1479
|
+
FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
1480
|
+
PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
|
|
1481
|
+
REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
|
|
1482
|
+
AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
|
|
1483
|
+
UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
|
|
1484
|
+
SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
|
|
1485
|
+
RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
|
|
1486
|
+
RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
|
|
1243
1487
|
};
|
|
1244
1488
|
} | {
|
|
1245
1489
|
id: "username";
|
|
1246
1490
|
version: string;
|
|
1247
|
-
$InferServerPlugin: ReturnType<(options?: import(
|
|
1491
|
+
$InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/username').UsernameOptions | undefined) => {
|
|
1248
1492
|
id: "username";
|
|
1249
1493
|
version: string;
|
|
1250
|
-
init(ctx: import(
|
|
1494
|
+
init(ctx: import('better-auth').AuthContext): {
|
|
1251
1495
|
options: {
|
|
1252
1496
|
databaseHooks: {
|
|
1253
1497
|
user: {
|
|
@@ -1260,7 +1504,7 @@ declare const authClient: {
|
|
|
1260
1504
|
emailVerified: boolean;
|
|
1261
1505
|
name: string;
|
|
1262
1506
|
image?: string | null | undefined;
|
|
1263
|
-
} & Record<string, unknown>, context: import(
|
|
1507
|
+
} & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
|
|
1264
1508
|
data: {
|
|
1265
1509
|
displayUsername?: string | undefined;
|
|
1266
1510
|
username?: string | undefined;
|
|
@@ -1283,7 +1527,7 @@ declare const authClient: {
|
|
|
1283
1527
|
emailVerified: boolean;
|
|
1284
1528
|
name: string;
|
|
1285
1529
|
image?: string | null | undefined;
|
|
1286
|
-
}> & Record<string, unknown>, context: import(
|
|
1530
|
+
}> & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
|
|
1287
1531
|
data: {
|
|
1288
1532
|
displayUsername?: string | undefined;
|
|
1289
1533
|
username?: string | undefined;
|
|
@@ -1302,14 +1546,14 @@ declare const authClient: {
|
|
|
1302
1546
|
};
|
|
1303
1547
|
};
|
|
1304
1548
|
endpoints: {
|
|
1305
|
-
signInUsername: import(
|
|
1549
|
+
signInUsername: import('better-auth').StrictEndpoint<"/sign-in/username", {
|
|
1306
1550
|
method: "POST";
|
|
1307
|
-
body: import(
|
|
1308
|
-
username: import(
|
|
1309
|
-
password: import(
|
|
1310
|
-
rememberMe: import(
|
|
1311
|
-
callbackURL: import(
|
|
1312
|
-
}, import(
|
|
1551
|
+
body: import('zod').ZodObject<{
|
|
1552
|
+
username: import('zod').ZodString;
|
|
1553
|
+
password: import('zod').ZodString;
|
|
1554
|
+
rememberMe: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
1555
|
+
callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1556
|
+
}, import('zod/v4/core').$strip>;
|
|
1313
1557
|
metadata: {
|
|
1314
1558
|
openapi: {
|
|
1315
1559
|
summary: string;
|
|
@@ -1368,11 +1612,11 @@ declare const authClient: {
|
|
|
1368
1612
|
displayUsername: string;
|
|
1369
1613
|
};
|
|
1370
1614
|
}>;
|
|
1371
|
-
isUsernameAvailable: import(
|
|
1615
|
+
isUsernameAvailable: import('better-auth').StrictEndpoint<"/is-username-available", {
|
|
1372
1616
|
method: "POST";
|
|
1373
|
-
body: import(
|
|
1374
|
-
username: import(
|
|
1375
|
-
}, import(
|
|
1617
|
+
body: import('zod').ZodObject<{
|
|
1618
|
+
username: import('zod').ZodString;
|
|
1619
|
+
}, import('zod/v4/core').$strip>;
|
|
1376
1620
|
}, {
|
|
1377
1621
|
available: boolean;
|
|
1378
1622
|
}>;
|
|
@@ -1387,14 +1631,14 @@ declare const authClient: {
|
|
|
1387
1631
|
unique: true;
|
|
1388
1632
|
returned: true;
|
|
1389
1633
|
transform: {
|
|
1390
|
-
input(value: import(
|
|
1634
|
+
input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
|
|
1391
1635
|
};
|
|
1392
1636
|
};
|
|
1393
1637
|
displayUsername: {
|
|
1394
1638
|
type: "string";
|
|
1395
1639
|
required: false;
|
|
1396
1640
|
transform: {
|
|
1397
|
-
input(value: import(
|
|
1641
|
+
input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
|
|
1398
1642
|
};
|
|
1399
1643
|
};
|
|
1400
1644
|
};
|
|
@@ -1402,20 +1646,20 @@ declare const authClient: {
|
|
|
1402
1646
|
};
|
|
1403
1647
|
hooks: {
|
|
1404
1648
|
before: {
|
|
1405
|
-
matcher(context: import(
|
|
1406
|
-
handler: (inputContext: import(
|
|
1649
|
+
matcher(context: import('better-auth').HookEndpointContext): boolean;
|
|
1650
|
+
handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
|
|
1407
1651
|
}[];
|
|
1408
1652
|
};
|
|
1409
|
-
options: import(
|
|
1653
|
+
options: import('better-auth/plugins/username').UsernameOptions | undefined;
|
|
1410
1654
|
$ERROR_CODES: {
|
|
1411
|
-
EMAIL_NOT_VERIFIED: import(
|
|
1412
|
-
UNEXPECTED_ERROR: import(
|
|
1413
|
-
INVALID_USERNAME_OR_PASSWORD: import(
|
|
1414
|
-
USERNAME_IS_ALREADY_TAKEN: import(
|
|
1415
|
-
USERNAME_TOO_SHORT: import(
|
|
1416
|
-
USERNAME_TOO_LONG: import(
|
|
1417
|
-
INVALID_USERNAME: import(
|
|
1418
|
-
INVALID_DISPLAY_USERNAME: import(
|
|
1655
|
+
EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
|
|
1656
|
+
UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
|
|
1657
|
+
INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
|
|
1658
|
+
USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
|
|
1659
|
+
USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
|
|
1660
|
+
USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
|
|
1661
|
+
INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
|
|
1662
|
+
INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
|
|
1419
1663
|
};
|
|
1420
1664
|
}>;
|
|
1421
1665
|
atomListeners: {
|
|
@@ -1423,17 +1667,17 @@ declare const authClient: {
|
|
|
1423
1667
|
signal: "$sessionSignal";
|
|
1424
1668
|
}[];
|
|
1425
1669
|
$ERROR_CODES: {
|
|
1426
|
-
EMAIL_NOT_VERIFIED: import(
|
|
1427
|
-
UNEXPECTED_ERROR: import(
|
|
1428
|
-
INVALID_USERNAME_OR_PASSWORD: import(
|
|
1429
|
-
USERNAME_IS_ALREADY_TAKEN: import(
|
|
1430
|
-
USERNAME_TOO_SHORT: import(
|
|
1431
|
-
USERNAME_TOO_LONG: import(
|
|
1432
|
-
INVALID_USERNAME: import(
|
|
1433
|
-
INVALID_DISPLAY_USERNAME: import(
|
|
1670
|
+
EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
|
|
1671
|
+
UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
|
|
1672
|
+
INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
|
|
1673
|
+
USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
|
|
1674
|
+
USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
|
|
1675
|
+
USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
|
|
1676
|
+
INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
|
|
1677
|
+
INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
|
|
1434
1678
|
};
|
|
1435
1679
|
})[];
|
|
1436
|
-
}, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import(
|
|
1680
|
+
}, FetchOptions>>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<(Omit<{
|
|
1437
1681
|
token: null;
|
|
1438
1682
|
user: {
|
|
1439
1683
|
id: string;
|
|
@@ -1445,7 +1689,7 @@ declare const authClient: {
|
|
|
1445
1689
|
image?: string | null | undefined | undefined;
|
|
1446
1690
|
};
|
|
1447
1691
|
}, "user"> & {
|
|
1448
|
-
user: import(
|
|
1692
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
1449
1693
|
id: string;
|
|
1450
1694
|
createdAt: Date;
|
|
1451
1695
|
updatedAt: Date;
|
|
@@ -1469,7 +1713,7 @@ declare const authClient: {
|
|
|
1469
1713
|
image?: string | null | undefined | undefined;
|
|
1470
1714
|
};
|
|
1471
1715
|
}, "user"> & {
|
|
1472
|
-
user: import(
|
|
1716
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
1473
1717
|
id: string;
|
|
1474
1718
|
createdAt: Date;
|
|
1475
1719
|
updatedAt: Date;
|
|
@@ -1488,19 +1732,19 @@ declare const authClient: {
|
|
|
1488
1732
|
};
|
|
1489
1733
|
} & {
|
|
1490
1734
|
signIn: {
|
|
1491
|
-
email: <FetchOptions extends import(
|
|
1735
|
+
email: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
1492
1736
|
email: string;
|
|
1493
1737
|
password: string;
|
|
1494
1738
|
callbackURL?: string | undefined;
|
|
1495
1739
|
rememberMe?: boolean | undefined;
|
|
1496
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import(
|
|
1740
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
1497
1741
|
email: string;
|
|
1498
1742
|
password: string;
|
|
1499
1743
|
callbackURL?: string | undefined;
|
|
1500
1744
|
rememberMe?: boolean | undefined;
|
|
1501
1745
|
} & {
|
|
1502
1746
|
fetchOptions?: FetchOptions | undefined;
|
|
1503
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import(
|
|
1747
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<{
|
|
1504
1748
|
redirect: boolean;
|
|
1505
1749
|
token: string;
|
|
1506
1750
|
url?: string | undefined;
|
|
@@ -1514,7 +1758,7 @@ declare const authClient: {
|
|
|
1514
1758
|
image?: string | null | undefined | undefined;
|
|
1515
1759
|
};
|
|
1516
1760
|
}, "user"> & {
|
|
1517
|
-
user: import(
|
|
1761
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
1518
1762
|
id: string;
|
|
1519
1763
|
createdAt: Date;
|
|
1520
1764
|
updatedAt: Date;
|
|
@@ -1532,40 +1776,119 @@ declare const authClient: {
|
|
|
1532
1776
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1533
1777
|
};
|
|
1534
1778
|
} & {
|
|
1535
|
-
|
|
1779
|
+
resetPassword: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
1780
|
+
newPassword: string;
|
|
1781
|
+
token?: string | undefined;
|
|
1782
|
+
}> & Record<string, any>, Partial<{
|
|
1783
|
+
token?: string | undefined;
|
|
1784
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
1785
|
+
newPassword: string;
|
|
1786
|
+
token?: string | undefined;
|
|
1787
|
+
} & {
|
|
1788
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1789
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
1790
|
+
status: boolean;
|
|
1791
|
+
}, {
|
|
1792
|
+
code?: string | undefined;
|
|
1793
|
+
message?: string | undefined;
|
|
1794
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1795
|
+
} & {
|
|
1796
|
+
verifyEmail: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
1536
1797
|
token: string;
|
|
1537
1798
|
callbackURL?: string | undefined;
|
|
1538
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import(
|
|
1799
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
1539
1800
|
query: {
|
|
1540
1801
|
token: string;
|
|
1541
1802
|
callbackURL?: string | undefined;
|
|
1542
1803
|
};
|
|
1543
1804
|
fetchOptions?: FetchOptions | undefined;
|
|
1544
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import(
|
|
1805
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<NonNullable<void | {
|
|
1545
1806
|
status: boolean;
|
|
1546
1807
|
}>, {
|
|
1547
1808
|
code?: string | undefined;
|
|
1548
1809
|
message?: string | undefined;
|
|
1549
1810
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1550
1811
|
} & {
|
|
1551
|
-
sendVerificationEmail: <FetchOptions extends import(
|
|
1812
|
+
sendVerificationEmail: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
1552
1813
|
email: string;
|
|
1553
1814
|
callbackURL?: string | undefined;
|
|
1554
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import(
|
|
1815
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
1555
1816
|
email: string;
|
|
1556
1817
|
callbackURL?: string | undefined;
|
|
1557
1818
|
} & {
|
|
1558
1819
|
fetchOptions?: FetchOptions | undefined;
|
|
1559
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import(
|
|
1820
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
1821
|
+
status: boolean;
|
|
1822
|
+
}, {
|
|
1823
|
+
code?: string | undefined;
|
|
1824
|
+
message?: string | undefined;
|
|
1825
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1826
|
+
} & {
|
|
1827
|
+
changeEmail: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
1828
|
+
newEmail: string;
|
|
1829
|
+
callbackURL?: string | undefined;
|
|
1830
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
1831
|
+
newEmail: string;
|
|
1832
|
+
callbackURL?: string | undefined;
|
|
1833
|
+
} & {
|
|
1834
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1835
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
1560
1836
|
status: boolean;
|
|
1561
1837
|
}, {
|
|
1562
1838
|
code?: string | undefined;
|
|
1563
1839
|
message?: string | undefined;
|
|
1564
1840
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1565
1841
|
} & {
|
|
1566
|
-
|
|
1842
|
+
changePassword: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
1843
|
+
newPassword: string;
|
|
1844
|
+
currentPassword: string;
|
|
1845
|
+
revokeOtherSessions?: boolean | undefined;
|
|
1846
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
1847
|
+
newPassword: string;
|
|
1848
|
+
currentPassword: string;
|
|
1849
|
+
revokeOtherSessions?: boolean | undefined;
|
|
1850
|
+
} & {
|
|
1851
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1852
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<Omit<{
|
|
1853
|
+
token: string | null;
|
|
1854
|
+
user: {
|
|
1855
|
+
id: string;
|
|
1856
|
+
createdAt: Date;
|
|
1857
|
+
updatedAt: Date;
|
|
1858
|
+
email: string;
|
|
1859
|
+
emailVerified: boolean;
|
|
1860
|
+
name: string;
|
|
1861
|
+
image?: string | null | undefined;
|
|
1862
|
+
} & Record<string, any> & {
|
|
1863
|
+
id: string;
|
|
1864
|
+
createdAt: Date;
|
|
1865
|
+
updatedAt: Date;
|
|
1866
|
+
email: string;
|
|
1867
|
+
emailVerified: boolean;
|
|
1868
|
+
name: string;
|
|
1869
|
+
image?: string | null | undefined;
|
|
1870
|
+
};
|
|
1871
|
+
}, "user"> & {
|
|
1872
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
1873
|
+
id: string;
|
|
1874
|
+
createdAt: Date;
|
|
1875
|
+
updatedAt: Date;
|
|
1876
|
+
email: string;
|
|
1877
|
+
emailVerified: boolean;
|
|
1878
|
+
name: string;
|
|
1879
|
+
image?: string | null | undefined;
|
|
1880
|
+
} & {} & {
|
|
1881
|
+
username?: string | null | undefined;
|
|
1882
|
+
displayUsername?: string | null | undefined;
|
|
1883
|
+
}>;
|
|
1884
|
+
}, {
|
|
1885
|
+
code?: string | undefined;
|
|
1886
|
+
message?: string | undefined;
|
|
1887
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1888
|
+
} & {
|
|
1889
|
+
updateSession: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<Partial<{}>> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<Partial<{}> & {
|
|
1567
1890
|
fetchOptions?: FetchOptions | undefined;
|
|
1568
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import(
|
|
1891
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
1569
1892
|
session: {
|
|
1570
1893
|
id: string;
|
|
1571
1894
|
createdAt: Date;
|
|
@@ -1581,28 +1904,28 @@ declare const authClient: {
|
|
|
1581
1904
|
message?: string | undefined;
|
|
1582
1905
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1583
1906
|
} & {
|
|
1584
|
-
updateUser: <FetchOptions extends import(
|
|
1907
|
+
updateUser: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<Partial<{}> & {
|
|
1585
1908
|
name?: string | undefined;
|
|
1586
1909
|
image?: string | undefined | null;
|
|
1587
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import(
|
|
1910
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<import('better-auth/client').InferUserUpdateCtx<{
|
|
1588
1911
|
plugins: ({
|
|
1589
1912
|
id: "magic-link";
|
|
1590
1913
|
version: string;
|
|
1591
|
-
$InferServerPlugin: ReturnType<(options: import(
|
|
1914
|
+
$InferServerPlugin: ReturnType<(options: import('better-auth/plugins/magic-link').MagicLinkOptions) => {
|
|
1592
1915
|
id: "magic-link";
|
|
1593
1916
|
version: string;
|
|
1594
1917
|
endpoints: {
|
|
1595
|
-
signInMagicLink: import(
|
|
1918
|
+
signInMagicLink: import('better-auth').StrictEndpoint<"/sign-in/magic-link", {
|
|
1596
1919
|
method: "POST";
|
|
1597
1920
|
requireHeaders: true;
|
|
1598
|
-
body: import(
|
|
1599
|
-
email: import(
|
|
1600
|
-
name: import(
|
|
1601
|
-
callbackURL: import(
|
|
1602
|
-
newUserCallbackURL: import(
|
|
1603
|
-
errorCallbackURL: import(
|
|
1604
|
-
metadata: import(
|
|
1605
|
-
}, import(
|
|
1921
|
+
body: import('zod').ZodObject<{
|
|
1922
|
+
email: import('zod').ZodEmail;
|
|
1923
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1924
|
+
callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1925
|
+
newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1926
|
+
errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1927
|
+
metadata: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodAny>>;
|
|
1928
|
+
}, import('zod/v4/core').$strip>;
|
|
1606
1929
|
metadata: {
|
|
1607
1930
|
openapi: {
|
|
1608
1931
|
operationId: string;
|
|
@@ -1629,15 +1952,15 @@ declare const authClient: {
|
|
|
1629
1952
|
}, {
|
|
1630
1953
|
status: boolean;
|
|
1631
1954
|
}>;
|
|
1632
|
-
magicLinkVerify: import(
|
|
1955
|
+
magicLinkVerify: import('better-auth').StrictEndpoint<"/magic-link/verify", {
|
|
1633
1956
|
method: "GET";
|
|
1634
|
-
query: import(
|
|
1635
|
-
token: import(
|
|
1636
|
-
callbackURL: import(
|
|
1637
|
-
errorCallbackURL: import(
|
|
1638
|
-
newUserCallbackURL: import(
|
|
1639
|
-
}, import(
|
|
1640
|
-
use: ((inputContext: import(
|
|
1957
|
+
query: import('zod').ZodObject<{
|
|
1958
|
+
token: import('zod').ZodString;
|
|
1959
|
+
callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1960
|
+
errorCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1961
|
+
newUserCallbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1962
|
+
}, import('zod/v4/core').$strip>;
|
|
1963
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>)[];
|
|
1641
1964
|
requireHeaders: true;
|
|
1642
1965
|
metadata: {
|
|
1643
1966
|
openapi: {
|
|
@@ -1693,16 +2016,16 @@ declare const authClient: {
|
|
|
1693
2016
|
window: number;
|
|
1694
2017
|
max: number;
|
|
1695
2018
|
}[];
|
|
1696
|
-
options: import(
|
|
2019
|
+
options: import('better-auth/plugins/magic-link').MagicLinkOptions;
|
|
1697
2020
|
}>;
|
|
1698
2021
|
} | {
|
|
1699
2022
|
id: "multi-session";
|
|
1700
2023
|
version: string;
|
|
1701
|
-
$InferServerPlugin: ReturnType<(options?: import(
|
|
2024
|
+
$InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined) => {
|
|
1702
2025
|
id: "multi-session";
|
|
1703
2026
|
version: string;
|
|
1704
2027
|
endpoints: {
|
|
1705
|
-
listDeviceSessions: import(
|
|
2028
|
+
listDeviceSessions: import('better-auth').StrictEndpoint<"/multi-session/list-device-sessions", {
|
|
1706
2029
|
method: "GET";
|
|
1707
2030
|
requireHeaders: true;
|
|
1708
2031
|
}, {
|
|
@@ -1726,11 +2049,11 @@ declare const authClient: {
|
|
|
1726
2049
|
image?: string | null | undefined;
|
|
1727
2050
|
};
|
|
1728
2051
|
}[]>;
|
|
1729
|
-
setActiveSession: import(
|
|
2052
|
+
setActiveSession: import('better-auth').StrictEndpoint<"/multi-session/set-active", {
|
|
1730
2053
|
method: "POST";
|
|
1731
|
-
body: import(
|
|
1732
|
-
sessionToken: import(
|
|
1733
|
-
}, import(
|
|
2054
|
+
body: import('zod').ZodObject<{
|
|
2055
|
+
sessionToken: import('zod').ZodString;
|
|
2056
|
+
}, import('zod/v4/core').$strip>;
|
|
1734
2057
|
requireHeaders: true;
|
|
1735
2058
|
metadata: {
|
|
1736
2059
|
openapi: {
|
|
@@ -1775,13 +2098,13 @@ declare const authClient: {
|
|
|
1775
2098
|
image?: string | null | undefined;
|
|
1776
2099
|
} & Record<string, any>;
|
|
1777
2100
|
}>;
|
|
1778
|
-
revokeDeviceSession: import(
|
|
2101
|
+
revokeDeviceSession: import('better-auth').StrictEndpoint<"/multi-session/revoke", {
|
|
1779
2102
|
method: "POST";
|
|
1780
|
-
body: import(
|
|
1781
|
-
sessionToken: import(
|
|
1782
|
-
}, import(
|
|
2103
|
+
body: import('zod').ZodObject<{
|
|
2104
|
+
sessionToken: import('zod').ZodString;
|
|
2105
|
+
}, import('zod/v4/core').$strip>;
|
|
1783
2106
|
requireHeaders: true;
|
|
1784
|
-
use: ((inputContext: import(
|
|
2107
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
1785
2108
|
session: {
|
|
1786
2109
|
session: Record<string, any> & {
|
|
1787
2110
|
id: string;
|
|
@@ -1832,13 +2155,13 @@ declare const authClient: {
|
|
|
1832
2155
|
};
|
|
1833
2156
|
hooks: {
|
|
1834
2157
|
after: {
|
|
1835
|
-
matcher: (context: import(
|
|
1836
|
-
handler: (inputContext: import(
|
|
2158
|
+
matcher: (context: import('better-auth').HookEndpointContext) => boolean;
|
|
2159
|
+
handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
|
|
1837
2160
|
}[];
|
|
1838
2161
|
};
|
|
1839
|
-
options: import(
|
|
2162
|
+
options: import('better-auth/plugins/multi-session').MultiSessionConfig | undefined;
|
|
1840
2163
|
$ERROR_CODES: {
|
|
1841
|
-
INVALID_SESSION_TOKEN: import(
|
|
2164
|
+
INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
|
|
1842
2165
|
};
|
|
1843
2166
|
}>;
|
|
1844
2167
|
atomListeners: {
|
|
@@ -1846,18 +2169,18 @@ declare const authClient: {
|
|
|
1846
2169
|
signal: "$sessionSignal";
|
|
1847
2170
|
}[];
|
|
1848
2171
|
$ERROR_CODES: {
|
|
1849
|
-
INVALID_SESSION_TOKEN: import(
|
|
2172
|
+
INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
|
|
1850
2173
|
};
|
|
1851
2174
|
} | {
|
|
1852
2175
|
id: "passkey";
|
|
1853
2176
|
version: string;
|
|
1854
|
-
$InferServerPlugin: ReturnType<(options?: import(
|
|
2177
|
+
$InferServerPlugin: ReturnType<(options?: import('@better-auth/passkey/client').PasskeyOptions | undefined) => {
|
|
1855
2178
|
id: "passkey";
|
|
1856
2179
|
version: string;
|
|
1857
2180
|
endpoints: {
|
|
1858
|
-
generatePasskeyRegistrationOptions: import(
|
|
2181
|
+
generatePasskeyRegistrationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-register-options", {
|
|
1859
2182
|
method: "GET";
|
|
1860
|
-
use: ((inputContext: import(
|
|
2183
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
1861
2184
|
session: {
|
|
1862
2185
|
session: Record<string, any> & {
|
|
1863
2186
|
id: string;
|
|
@@ -1880,14 +2203,14 @@ declare const authClient: {
|
|
|
1880
2203
|
};
|
|
1881
2204
|
};
|
|
1882
2205
|
}>)[] | undefined;
|
|
1883
|
-
query: import(
|
|
1884
|
-
authenticatorAttachment: import(
|
|
2206
|
+
query: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
2207
|
+
authenticatorAttachment: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
1885
2208
|
platform: "platform";
|
|
1886
2209
|
"cross-platform": "cross-platform";
|
|
1887
2210
|
}>>;
|
|
1888
|
-
name: import(
|
|
1889
|
-
context: import(
|
|
1890
|
-
}, import(
|
|
2211
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2212
|
+
context: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2213
|
+
}, import('zod/v4/core').$strip>>;
|
|
1891
2214
|
metadata: {
|
|
1892
2215
|
openapi: {
|
|
1893
2216
|
operationId: string;
|
|
@@ -2009,8 +2332,8 @@ declare const authClient: {
|
|
|
2009
2332
|
};
|
|
2010
2333
|
};
|
|
2011
2334
|
};
|
|
2012
|
-
}, import(
|
|
2013
|
-
generatePasskeyAuthenticationOptions: import(
|
|
2335
|
+
}, import('@better-auth/passkey/client').PublicKeyCredentialCreationOptionsJSON>;
|
|
2336
|
+
generatePasskeyAuthenticationOptions: import('better-auth').StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
2014
2337
|
method: "GET";
|
|
2015
2338
|
metadata: {
|
|
2016
2339
|
openapi: {
|
|
@@ -2103,14 +2426,14 @@ declare const authClient: {
|
|
|
2103
2426
|
};
|
|
2104
2427
|
};
|
|
2105
2428
|
};
|
|
2106
|
-
}, import(
|
|
2107
|
-
verifyPasskeyRegistration: import(
|
|
2429
|
+
}, import('@better-auth/passkey/client').PublicKeyCredentialRequestOptionsJSON>;
|
|
2430
|
+
verifyPasskeyRegistration: import('better-auth').StrictEndpoint<"/passkey/verify-registration", {
|
|
2108
2431
|
method: "POST";
|
|
2109
|
-
body: import(
|
|
2110
|
-
response: import(
|
|
2111
|
-
name: import(
|
|
2112
|
-
}, import(
|
|
2113
|
-
use: ((inputContext: import(
|
|
2432
|
+
body: import('zod').ZodObject<{
|
|
2433
|
+
response: import('zod').ZodAny;
|
|
2434
|
+
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2435
|
+
}, import('zod/v4/core').$strip>;
|
|
2436
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
2114
2437
|
session: {
|
|
2115
2438
|
session: Record<string, any> & {
|
|
2116
2439
|
id: string;
|
|
@@ -2154,12 +2477,12 @@ declare const authClient: {
|
|
|
2154
2477
|
};
|
|
2155
2478
|
};
|
|
2156
2479
|
};
|
|
2157
|
-
}, import(
|
|
2158
|
-
verifyPasskeyAuthentication: import(
|
|
2480
|
+
}, import('@better-auth/passkey/client').Passkey>;
|
|
2481
|
+
verifyPasskeyAuthentication: import('better-auth').StrictEndpoint<"/passkey/verify-authentication", {
|
|
2159
2482
|
method: "POST";
|
|
2160
|
-
body: import(
|
|
2161
|
-
response: import(
|
|
2162
|
-
}, import(
|
|
2483
|
+
body: import('zod').ZodObject<{
|
|
2484
|
+
response: import('zod').ZodRecord<import('zod').ZodAny, import('zod').ZodAny>;
|
|
2485
|
+
}, import('zod/v4/core').$strip>;
|
|
2163
2486
|
metadata: {
|
|
2164
2487
|
openapi: {
|
|
2165
2488
|
operationId: string;
|
|
@@ -2187,7 +2510,7 @@ declare const authClient: {
|
|
|
2187
2510
|
};
|
|
2188
2511
|
$Infer: {
|
|
2189
2512
|
body: {
|
|
2190
|
-
response: import(
|
|
2513
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
2191
2514
|
};
|
|
2192
2515
|
};
|
|
2193
2516
|
};
|
|
@@ -2203,9 +2526,9 @@ declare const authClient: {
|
|
|
2203
2526
|
userAgent?: string | null | undefined;
|
|
2204
2527
|
};
|
|
2205
2528
|
}>;
|
|
2206
|
-
listPasskeys: import(
|
|
2529
|
+
listPasskeys: import('better-auth').StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
2207
2530
|
method: "GET";
|
|
2208
|
-
use: ((inputContext: import(
|
|
2531
|
+
use: ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
2209
2532
|
session: {
|
|
2210
2533
|
session: Record<string, any> & {
|
|
2211
2534
|
id: string;
|
|
@@ -2250,13 +2573,13 @@ declare const authClient: {
|
|
|
2250
2573
|
};
|
|
2251
2574
|
};
|
|
2252
2575
|
};
|
|
2253
|
-
}, import(
|
|
2254
|
-
deletePasskey: import(
|
|
2576
|
+
}, import('@better-auth/passkey/client').Passkey[]>;
|
|
2577
|
+
deletePasskey: import('better-auth').StrictEndpoint<"/passkey/delete-passkey", {
|
|
2255
2578
|
method: "POST";
|
|
2256
|
-
body: import(
|
|
2257
|
-
id: import(
|
|
2258
|
-
}, import(
|
|
2259
|
-
use: (((inputContext: import(
|
|
2579
|
+
body: import('zod').ZodObject<{
|
|
2580
|
+
id: import('zod').ZodString;
|
|
2581
|
+
}, import('zod/v4/core').$strip>;
|
|
2582
|
+
use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
2260
2583
|
session: {
|
|
2261
2584
|
session: Record<string, any> & {
|
|
2262
2585
|
id: string;
|
|
@@ -2278,7 +2601,7 @@ declare const authClient: {
|
|
|
2278
2601
|
image?: string | null | undefined;
|
|
2279
2602
|
};
|
|
2280
2603
|
};
|
|
2281
|
-
}>) | ((inputContext: import(
|
|
2604
|
+
}>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
2282
2605
|
verifiedResource: {};
|
|
2283
2606
|
}>))[];
|
|
2284
2607
|
metadata: {
|
|
@@ -2308,13 +2631,13 @@ declare const authClient: {
|
|
|
2308
2631
|
}, {
|
|
2309
2632
|
status: boolean;
|
|
2310
2633
|
}>;
|
|
2311
|
-
updatePasskey: import(
|
|
2634
|
+
updatePasskey: import('better-auth').StrictEndpoint<"/passkey/update-passkey", {
|
|
2312
2635
|
method: "POST";
|
|
2313
|
-
body: import(
|
|
2314
|
-
id: import(
|
|
2315
|
-
name: import(
|
|
2316
|
-
}, import(
|
|
2317
|
-
use: (((inputContext: import(
|
|
2636
|
+
body: import('zod').ZodObject<{
|
|
2637
|
+
id: import('zod').ZodString;
|
|
2638
|
+
name: import('zod').ZodString;
|
|
2639
|
+
}, import('zod/v4/core').$strip>;
|
|
2640
|
+
use: (((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
2318
2641
|
session: {
|
|
2319
2642
|
session: Record<string, any> & {
|
|
2320
2643
|
id: string;
|
|
@@ -2336,7 +2659,7 @@ declare const authClient: {
|
|
|
2336
2659
|
image?: string | null | undefined;
|
|
2337
2660
|
};
|
|
2338
2661
|
};
|
|
2339
|
-
}>) | ((inputContext: import(
|
|
2662
|
+
}>) | ((inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<{
|
|
2340
2663
|
verifiedResource: {};
|
|
2341
2664
|
}>))[];
|
|
2342
2665
|
metadata: {
|
|
@@ -2363,7 +2686,7 @@ declare const authClient: {
|
|
|
2363
2686
|
};
|
|
2364
2687
|
};
|
|
2365
2688
|
}, {
|
|
2366
|
-
passkey: import(
|
|
2689
|
+
passkey: import('@better-auth/passkey/client').Passkey;
|
|
2367
2690
|
}>;
|
|
2368
2691
|
};
|
|
2369
2692
|
schema: {
|
|
@@ -2419,31 +2742,31 @@ declare const authClient: {
|
|
|
2419
2742
|
};
|
|
2420
2743
|
};
|
|
2421
2744
|
$ERROR_CODES: {
|
|
2422
|
-
CHALLENGE_NOT_FOUND: import(
|
|
2423
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import(
|
|
2424
|
-
FAILED_TO_VERIFY_REGISTRATION: import(
|
|
2425
|
-
PASSKEY_NOT_FOUND: import(
|
|
2426
|
-
AUTHENTICATION_FAILED: import(
|
|
2427
|
-
UNABLE_TO_CREATE_SESSION: import(
|
|
2428
|
-
FAILED_TO_UPDATE_PASSKEY: import(
|
|
2429
|
-
PREVIOUSLY_REGISTERED: import(
|
|
2430
|
-
REGISTRATION_CANCELLED: import(
|
|
2431
|
-
AUTH_CANCELLED: import(
|
|
2432
|
-
UNKNOWN_ERROR: import(
|
|
2433
|
-
SESSION_REQUIRED: import(
|
|
2434
|
-
RESOLVE_USER_REQUIRED: import(
|
|
2435
|
-
RESOLVED_USER_INVALID: import(
|
|
2745
|
+
CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
|
|
2746
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
2747
|
+
FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
2748
|
+
PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
|
|
2749
|
+
AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
|
|
2750
|
+
UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
2751
|
+
FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
2752
|
+
PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
|
|
2753
|
+
REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
|
|
2754
|
+
AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
|
|
2755
|
+
UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
|
|
2756
|
+
SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
|
|
2757
|
+
RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
|
|
2758
|
+
RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
|
|
2436
2759
|
};
|
|
2437
|
-
options: import(
|
|
2760
|
+
options: import('@better-auth/passkey/client').PasskeyOptions | undefined;
|
|
2438
2761
|
}>;
|
|
2439
|
-
getActions: ($fetch: import(
|
|
2762
|
+
getActions: ($fetch: import('better-auth/client').BetterFetch, $store: import('better-auth').ClientStore) => {
|
|
2440
2763
|
signIn: {
|
|
2441
2764
|
passkey: (opts?: {
|
|
2442
2765
|
autoFill?: boolean;
|
|
2443
|
-
extensions?: import(
|
|
2766
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
2444
2767
|
returnWebAuthnResponse?: boolean;
|
|
2445
|
-
fetchOptions?: import(
|
|
2446
|
-
} | undefined, options?: import(
|
|
2768
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
2769
|
+
} | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
|
|
2447
2770
|
data: null;
|
|
2448
2771
|
error: {
|
|
2449
2772
|
message?: string | undefined;
|
|
@@ -2475,8 +2798,8 @@ declare const authClient: {
|
|
|
2475
2798
|
error: null;
|
|
2476
2799
|
} | {
|
|
2477
2800
|
webauthn: {
|
|
2478
|
-
response: import(
|
|
2479
|
-
clientExtensionResults: import(
|
|
2801
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
2802
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
2480
2803
|
};
|
|
2481
2804
|
data: null;
|
|
2482
2805
|
error: {
|
|
@@ -2486,8 +2809,8 @@ declare const authClient: {
|
|
|
2486
2809
|
};
|
|
2487
2810
|
} | {
|
|
2488
2811
|
webauthn: {
|
|
2489
|
-
response: import(
|
|
2490
|
-
clientExtensionResults: import(
|
|
2812
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
2813
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
2491
2814
|
};
|
|
2492
2815
|
data: {
|
|
2493
2816
|
session: {
|
|
@@ -2523,14 +2846,14 @@ declare const authClient: {
|
|
|
2523
2846
|
};
|
|
2524
2847
|
passkey: {
|
|
2525
2848
|
addPasskey: (opts?: {
|
|
2526
|
-
fetchOptions?: import(
|
|
2849
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
2527
2850
|
name?: string;
|
|
2528
2851
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
2529
2852
|
context?: string | null;
|
|
2530
|
-
extensions?: import(
|
|
2853
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
2531
2854
|
useAutoRegister?: boolean;
|
|
2532
2855
|
returnWebAuthnResponse?: boolean;
|
|
2533
|
-
} | undefined, fetchOpts?: import(
|
|
2856
|
+
} | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
|
|
2534
2857
|
data: null;
|
|
2535
2858
|
error: {
|
|
2536
2859
|
message?: string | undefined;
|
|
@@ -2538,14 +2861,14 @@ declare const authClient: {
|
|
|
2538
2861
|
statusText: string;
|
|
2539
2862
|
};
|
|
2540
2863
|
} | {
|
|
2541
|
-
data: import(
|
|
2864
|
+
data: import('@better-auth/passkey/client').Passkey;
|
|
2542
2865
|
error: null;
|
|
2543
2866
|
} | {
|
|
2544
2867
|
webauthn: {
|
|
2545
|
-
response: import(
|
|
2546
|
-
clientExtensionResults: import(
|
|
2868
|
+
response: import('@better-auth/passkey/client').RegistrationResponseJSON;
|
|
2869
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
2547
2870
|
};
|
|
2548
|
-
data: import(
|
|
2871
|
+
data: import('@better-auth/passkey/client').Passkey;
|
|
2549
2872
|
error: null;
|
|
2550
2873
|
} | {
|
|
2551
2874
|
data: null;
|
|
@@ -2558,12 +2881,12 @@ declare const authClient: {
|
|
|
2558
2881
|
}>;
|
|
2559
2882
|
};
|
|
2560
2883
|
$Infer: {
|
|
2561
|
-
Passkey: import(
|
|
2884
|
+
Passkey: import('@better-auth/passkey/client').Passkey;
|
|
2562
2885
|
};
|
|
2563
2886
|
};
|
|
2564
|
-
getAtoms($fetch: import(
|
|
2565
|
-
listPasskeys: import(
|
|
2566
|
-
$listPasskeys: import(
|
|
2887
|
+
getAtoms($fetch: import('better-auth/client').BetterFetch): {
|
|
2888
|
+
listPasskeys: import('better-auth/client').AuthQueryAtom<import('@better-auth/passkey/client').Passkey[]>;
|
|
2889
|
+
$listPasskeys: import('better-auth/client').PreinitializedWritableAtom<any> & object;
|
|
2567
2890
|
};
|
|
2568
2891
|
pathMethods: {
|
|
2569
2892
|
"/passkey/register": "POST";
|
|
@@ -2577,28 +2900,28 @@ declare const authClient: {
|
|
|
2577
2900
|
signal: "$sessionSignal";
|
|
2578
2901
|
})[];
|
|
2579
2902
|
$ERROR_CODES: {
|
|
2580
|
-
CHALLENGE_NOT_FOUND: import(
|
|
2581
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import(
|
|
2582
|
-
FAILED_TO_VERIFY_REGISTRATION: import(
|
|
2583
|
-
PASSKEY_NOT_FOUND: import(
|
|
2584
|
-
AUTHENTICATION_FAILED: import(
|
|
2585
|
-
UNABLE_TO_CREATE_SESSION: import(
|
|
2586
|
-
FAILED_TO_UPDATE_PASSKEY: import(
|
|
2587
|
-
PREVIOUSLY_REGISTERED: import(
|
|
2588
|
-
REGISTRATION_CANCELLED: import(
|
|
2589
|
-
AUTH_CANCELLED: import(
|
|
2590
|
-
UNKNOWN_ERROR: import(
|
|
2591
|
-
SESSION_REQUIRED: import(
|
|
2592
|
-
RESOLVE_USER_REQUIRED: import(
|
|
2593
|
-
RESOLVED_USER_INVALID: import(
|
|
2903
|
+
CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
|
|
2904
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
2905
|
+
FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
2906
|
+
PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
|
|
2907
|
+
AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
|
|
2908
|
+
UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
2909
|
+
FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
2910
|
+
PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
|
|
2911
|
+
REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
|
|
2912
|
+
AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
|
|
2913
|
+
UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
|
|
2914
|
+
SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
|
|
2915
|
+
RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
|
|
2916
|
+
RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
|
|
2594
2917
|
};
|
|
2595
2918
|
} | {
|
|
2596
2919
|
id: "username";
|
|
2597
2920
|
version: string;
|
|
2598
|
-
$InferServerPlugin: ReturnType<(options?: import(
|
|
2921
|
+
$InferServerPlugin: ReturnType<(options?: import('better-auth/plugins/username').UsernameOptions | undefined) => {
|
|
2599
2922
|
id: "username";
|
|
2600
2923
|
version: string;
|
|
2601
|
-
init(ctx: import(
|
|
2924
|
+
init(ctx: import('better-auth').AuthContext): {
|
|
2602
2925
|
options: {
|
|
2603
2926
|
databaseHooks: {
|
|
2604
2927
|
user: {
|
|
@@ -2611,7 +2934,7 @@ declare const authClient: {
|
|
|
2611
2934
|
emailVerified: boolean;
|
|
2612
2935
|
name: string;
|
|
2613
2936
|
image?: string | null | undefined;
|
|
2614
|
-
} & Record<string, unknown>, context: import(
|
|
2937
|
+
} & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
|
|
2615
2938
|
data: {
|
|
2616
2939
|
displayUsername?: string | undefined;
|
|
2617
2940
|
username?: string | undefined;
|
|
@@ -2634,7 +2957,7 @@ declare const authClient: {
|
|
|
2634
2957
|
emailVerified: boolean;
|
|
2635
2958
|
name: string;
|
|
2636
2959
|
image?: string | null | undefined;
|
|
2637
|
-
}> & Record<string, unknown>, context: import(
|
|
2960
|
+
}> & Record<string, unknown>, context: import('better-auth').GenericEndpointContext | null): Promise<{
|
|
2638
2961
|
data: {
|
|
2639
2962
|
displayUsername?: string | undefined;
|
|
2640
2963
|
username?: string | undefined;
|
|
@@ -2653,14 +2976,14 @@ declare const authClient: {
|
|
|
2653
2976
|
};
|
|
2654
2977
|
};
|
|
2655
2978
|
endpoints: {
|
|
2656
|
-
signInUsername: import(
|
|
2979
|
+
signInUsername: import('better-auth').StrictEndpoint<"/sign-in/username", {
|
|
2657
2980
|
method: "POST";
|
|
2658
|
-
body: import(
|
|
2659
|
-
username: import(
|
|
2660
|
-
password: import(
|
|
2661
|
-
rememberMe: import(
|
|
2662
|
-
callbackURL: import(
|
|
2663
|
-
}, import(
|
|
2981
|
+
body: import('zod').ZodObject<{
|
|
2982
|
+
username: import('zod').ZodString;
|
|
2983
|
+
password: import('zod').ZodString;
|
|
2984
|
+
rememberMe: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
2985
|
+
callbackURL: import('zod').ZodOptional<import('zod').ZodString>;
|
|
2986
|
+
}, import('zod/v4/core').$strip>;
|
|
2664
2987
|
metadata: {
|
|
2665
2988
|
openapi: {
|
|
2666
2989
|
summary: string;
|
|
@@ -2719,11 +3042,11 @@ declare const authClient: {
|
|
|
2719
3042
|
displayUsername: string;
|
|
2720
3043
|
};
|
|
2721
3044
|
}>;
|
|
2722
|
-
isUsernameAvailable: import(
|
|
3045
|
+
isUsernameAvailable: import('better-auth').StrictEndpoint<"/is-username-available", {
|
|
2723
3046
|
method: "POST";
|
|
2724
|
-
body: import(
|
|
2725
|
-
username: import(
|
|
2726
|
-
}, import(
|
|
3047
|
+
body: import('zod').ZodObject<{
|
|
3048
|
+
username: import('zod').ZodString;
|
|
3049
|
+
}, import('zod/v4/core').$strip>;
|
|
2727
3050
|
}, {
|
|
2728
3051
|
available: boolean;
|
|
2729
3052
|
}>;
|
|
@@ -2738,14 +3061,14 @@ declare const authClient: {
|
|
|
2738
3061
|
unique: true;
|
|
2739
3062
|
returned: true;
|
|
2740
3063
|
transform: {
|
|
2741
|
-
input(value: import(
|
|
3064
|
+
input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
|
|
2742
3065
|
};
|
|
2743
3066
|
};
|
|
2744
3067
|
displayUsername: {
|
|
2745
3068
|
type: "string";
|
|
2746
3069
|
required: false;
|
|
2747
3070
|
transform: {
|
|
2748
|
-
input(value: import(
|
|
3071
|
+
input(value: import('better-auth').DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
|
|
2749
3072
|
};
|
|
2750
3073
|
};
|
|
2751
3074
|
};
|
|
@@ -2753,20 +3076,20 @@ declare const authClient: {
|
|
|
2753
3076
|
};
|
|
2754
3077
|
hooks: {
|
|
2755
3078
|
before: {
|
|
2756
|
-
matcher(context: import(
|
|
2757
|
-
handler: (inputContext: import(
|
|
3079
|
+
matcher(context: import('better-auth').HookEndpointContext): boolean;
|
|
3080
|
+
handler: (inputContext: import('better-auth').MiddlewareInputContext<import('better-auth').MiddlewareOptions>) => Promise<void>;
|
|
2758
3081
|
}[];
|
|
2759
3082
|
};
|
|
2760
|
-
options: import(
|
|
3083
|
+
options: import('better-auth/plugins/username').UsernameOptions | undefined;
|
|
2761
3084
|
$ERROR_CODES: {
|
|
2762
|
-
EMAIL_NOT_VERIFIED: import(
|
|
2763
|
-
UNEXPECTED_ERROR: import(
|
|
2764
|
-
INVALID_USERNAME_OR_PASSWORD: import(
|
|
2765
|
-
USERNAME_IS_ALREADY_TAKEN: import(
|
|
2766
|
-
USERNAME_TOO_SHORT: import(
|
|
2767
|
-
USERNAME_TOO_LONG: import(
|
|
2768
|
-
INVALID_USERNAME: import(
|
|
2769
|
-
INVALID_DISPLAY_USERNAME: import(
|
|
3085
|
+
EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
|
|
3086
|
+
UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
|
|
3087
|
+
INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
|
|
3088
|
+
USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
|
|
3089
|
+
USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
|
|
3090
|
+
USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
|
|
3091
|
+
INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
|
|
3092
|
+
INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
|
|
2770
3093
|
};
|
|
2771
3094
|
}>;
|
|
2772
3095
|
atomListeners: {
|
|
@@ -2774,621 +3097,298 @@ declare const authClient: {
|
|
|
2774
3097
|
signal: "$sessionSignal";
|
|
2775
3098
|
}[];
|
|
2776
3099
|
$ERROR_CODES: {
|
|
2777
|
-
EMAIL_NOT_VERIFIED: import(
|
|
2778
|
-
UNEXPECTED_ERROR: import(
|
|
2779
|
-
INVALID_USERNAME_OR_PASSWORD: import(
|
|
2780
|
-
USERNAME_IS_ALREADY_TAKEN: import(
|
|
2781
|
-
USERNAME_TOO_SHORT: import(
|
|
2782
|
-
USERNAME_TOO_LONG: import(
|
|
2783
|
-
INVALID_USERNAME: import(
|
|
2784
|
-
INVALID_DISPLAY_USERNAME: import(
|
|
2785
|
-
};
|
|
2786
|
-
})[];
|
|
2787
|
-
}, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import(
|
|
2788
|
-
status: boolean;
|
|
2789
|
-
}, {
|
|
2790
|
-
code?: string | undefined;
|
|
2791
|
-
message?: string | undefined;
|
|
2792
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2793
|
-
} & {
|
|
2794
|
-
requestPasswordReset: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2795
|
-
email: string;
|
|
2796
|
-
redirectTo?: string | undefined;
|
|
2797
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2798
|
-
email: string;
|
|
2799
|
-
redirectTo?: string | undefined;
|
|
2800
|
-
} & {
|
|
2801
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2802
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2803
|
-
status: boolean;
|
|
2804
|
-
message: string;
|
|
2805
|
-
}, {
|
|
2806
|
-
code?: string | undefined;
|
|
2807
|
-
message?: string | undefined;
|
|
2808
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2809
|
-
} & {
|
|
2810
|
-
resetPassword: {
|
|
2811
|
-
":token": <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2812
|
-
callbackURL: string;
|
|
2813
|
-
}> & Record<string, any>, {
|
|
2814
|
-
token: string;
|
|
2815
|
-
}>>(data_0: import("better-auth").Prettify<{
|
|
2816
|
-
query: {
|
|
2817
|
-
callbackURL: string;
|
|
2818
|
-
};
|
|
2819
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2820
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<never, {
|
|
2821
|
-
code?: string | undefined;
|
|
2822
|
-
message?: string | undefined;
|
|
2823
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2824
|
-
};
|
|
2825
|
-
} & {
|
|
2826
|
-
listSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2827
|
-
query?: Record<string, any> | undefined;
|
|
2828
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2829
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<import("better-auth").Prettify<{
|
|
2830
|
-
id: string;
|
|
2831
|
-
createdAt: Date;
|
|
2832
|
-
updatedAt: Date;
|
|
2833
|
-
userId: string;
|
|
2834
|
-
expiresAt: Date;
|
|
2835
|
-
token: string;
|
|
2836
|
-
ipAddress?: string | null | undefined | undefined;
|
|
2837
|
-
userAgent?: string | null | undefined | undefined;
|
|
2838
|
-
}>[], {
|
|
2839
|
-
code?: string | undefined;
|
|
2840
|
-
message?: string | undefined;
|
|
2841
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2842
|
-
} & {
|
|
2843
|
-
revokeSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2844
|
-
query?: Record<string, any> | undefined;
|
|
2845
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2846
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2847
|
-
status: boolean;
|
|
2848
|
-
}, {
|
|
2849
|
-
code?: string | undefined;
|
|
2850
|
-
message?: string | undefined;
|
|
2851
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2852
|
-
} & {
|
|
2853
|
-
revokeOtherSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2854
|
-
query?: Record<string, any> | undefined;
|
|
2855
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2856
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2857
|
-
status: boolean;
|
|
2858
|
-
}, {
|
|
2859
|
-
code?: string | undefined;
|
|
2860
|
-
message?: string | undefined;
|
|
2861
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2862
|
-
} & {
|
|
2863
|
-
linkSocial: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2864
|
-
provider: unknown;
|
|
2865
|
-
callbackURL?: string | undefined;
|
|
2866
|
-
idToken?: {
|
|
2867
|
-
token: string;
|
|
2868
|
-
nonce?: string | undefined;
|
|
2869
|
-
accessToken?: string | undefined;
|
|
2870
|
-
refreshToken?: string | undefined;
|
|
2871
|
-
scopes?: string[] | undefined;
|
|
2872
|
-
} | undefined;
|
|
2873
|
-
requestSignUp?: boolean | undefined;
|
|
2874
|
-
scopes?: string[] | undefined;
|
|
2875
|
-
errorCallbackURL?: string | undefined;
|
|
2876
|
-
disableRedirect?: boolean | undefined;
|
|
2877
|
-
additionalData?: Record<string, any> | undefined;
|
|
2878
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2879
|
-
provider: unknown;
|
|
2880
|
-
callbackURL?: string | undefined;
|
|
2881
|
-
idToken?: {
|
|
2882
|
-
token: string;
|
|
2883
|
-
nonce?: string | undefined;
|
|
2884
|
-
accessToken?: string | undefined;
|
|
2885
|
-
refreshToken?: string | undefined;
|
|
2886
|
-
scopes?: string[] | undefined;
|
|
2887
|
-
} | undefined;
|
|
2888
|
-
requestSignUp?: boolean | undefined;
|
|
2889
|
-
scopes?: string[] | undefined;
|
|
2890
|
-
errorCallbackURL?: string | undefined;
|
|
2891
|
-
disableRedirect?: boolean | undefined;
|
|
2892
|
-
additionalData?: Record<string, any> | undefined;
|
|
2893
|
-
} & {
|
|
2894
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2895
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2896
|
-
url: string;
|
|
2897
|
-
redirect: boolean;
|
|
2898
|
-
}, {
|
|
2899
|
-
code?: string | undefined;
|
|
2900
|
-
message?: string | undefined;
|
|
2901
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2902
|
-
} & {
|
|
2903
|
-
listAccounts: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
2904
|
-
query?: Record<string, any> | undefined;
|
|
2905
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2906
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2907
|
-
scopes: string[];
|
|
2908
|
-
id: string;
|
|
2909
|
-
createdAt: Date;
|
|
2910
|
-
updatedAt: Date;
|
|
2911
|
-
userId: string;
|
|
2912
|
-
providerId: string;
|
|
2913
|
-
accountId: string;
|
|
2914
|
-
}[], {
|
|
2915
|
-
code?: string | undefined;
|
|
2916
|
-
message?: string | undefined;
|
|
2917
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2918
|
-
} & {
|
|
2919
|
-
deleteUser: {
|
|
2920
|
-
callback: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
2921
|
-
token: string;
|
|
2922
|
-
callbackURL?: string | undefined;
|
|
2923
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2924
|
-
query: {
|
|
2925
|
-
token: string;
|
|
2926
|
-
callbackURL?: string | undefined;
|
|
2927
|
-
};
|
|
2928
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2929
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2930
|
-
success: boolean;
|
|
2931
|
-
message: string;
|
|
2932
|
-
}, {
|
|
2933
|
-
code?: string | undefined;
|
|
2934
|
-
message?: string | undefined;
|
|
2935
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2936
|
-
};
|
|
2937
|
-
} & {
|
|
2938
|
-
unlinkAccount: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2939
|
-
providerId: string;
|
|
2940
|
-
accountId?: string | undefined;
|
|
2941
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2942
|
-
providerId: string;
|
|
2943
|
-
accountId?: string | undefined;
|
|
2944
|
-
} & {
|
|
2945
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2946
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2947
|
-
status: boolean;
|
|
2948
|
-
}, {
|
|
2949
|
-
code?: string | undefined;
|
|
2950
|
-
message?: string | undefined;
|
|
2951
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2952
|
-
} & {
|
|
2953
|
-
refreshToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2954
|
-
providerId: string;
|
|
2955
|
-
accountId?: string | undefined;
|
|
2956
|
-
userId?: string | undefined;
|
|
2957
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2958
|
-
providerId: string;
|
|
2959
|
-
accountId?: string | undefined;
|
|
2960
|
-
userId?: string | undefined;
|
|
2961
|
-
} & {
|
|
2962
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2963
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2964
|
-
accessToken: string | undefined;
|
|
2965
|
-
refreshToken: string;
|
|
2966
|
-
accessTokenExpiresAt: Date | undefined;
|
|
2967
|
-
refreshTokenExpiresAt: Date | null | undefined;
|
|
2968
|
-
scope: string | null | undefined;
|
|
2969
|
-
idToken: string | null | undefined;
|
|
2970
|
-
providerId: string;
|
|
2971
|
-
accountId: string;
|
|
2972
|
-
}, {
|
|
2973
|
-
code?: string | undefined;
|
|
2974
|
-
message?: string | undefined;
|
|
2975
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2976
|
-
} & {
|
|
2977
|
-
getAccessToken: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
2978
|
-
providerId: string;
|
|
2979
|
-
accountId?: string | undefined;
|
|
2980
|
-
userId?: string | undefined;
|
|
2981
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
2982
|
-
providerId: string;
|
|
2983
|
-
accountId?: string | undefined;
|
|
2984
|
-
userId?: string | undefined;
|
|
2985
|
-
} & {
|
|
2986
|
-
fetchOptions?: FetchOptions | undefined;
|
|
2987
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
2988
|
-
accessToken: string;
|
|
2989
|
-
accessTokenExpiresAt: Date | undefined;
|
|
2990
|
-
scopes: string[];
|
|
2991
|
-
idToken: string | undefined;
|
|
3100
|
+
EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
|
|
3101
|
+
UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
|
|
3102
|
+
INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
|
|
3103
|
+
USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
|
|
3104
|
+
USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
|
|
3105
|
+
USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
|
|
3106
|
+
INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
|
|
3107
|
+
INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
|
|
3108
|
+
};
|
|
3109
|
+
})[];
|
|
3110
|
+
}, FetchOptions>> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3111
|
+
status: boolean;
|
|
2992
3112
|
}, {
|
|
2993
3113
|
code?: string | undefined;
|
|
2994
3114
|
message?: string | undefined;
|
|
2995
3115
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2996
3116
|
} & {
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3117
|
+
requestPasswordReset: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
3118
|
+
email: string;
|
|
3119
|
+
redirectTo?: string | undefined;
|
|
3120
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3121
|
+
email: string;
|
|
3122
|
+
redirectTo?: string | undefined;
|
|
3123
|
+
} & {
|
|
3003
3124
|
fetchOptions?: FetchOptions | undefined;
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
|
|
3125
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3126
|
+
status: boolean;
|
|
3127
|
+
message: string;
|
|
3007
3128
|
}, {
|
|
3008
|
-
code?: string | undefined;
|
|
3009
|
-
message?: string | undefined;
|
|
3010
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3011
|
-
} & {
|
|
3012
|
-
getSession: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
3013
|
-
disableCookieCache?: unknown;
|
|
3014
|
-
disableRefresh?: unknown;
|
|
3015
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
3016
|
-
query?: {
|
|
3017
|
-
disableCookieCache?: unknown;
|
|
3018
|
-
disableRefresh?: unknown;
|
|
3019
|
-
} | undefined;
|
|
3020
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3021
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3022
|
-
user: import("better-auth").StripEmptyObjects<{
|
|
3023
|
-
id: string;
|
|
3024
|
-
createdAt: Date;
|
|
3025
|
-
updatedAt: Date;
|
|
3026
|
-
email: string;
|
|
3027
|
-
emailVerified: boolean;
|
|
3028
|
-
name: string;
|
|
3029
|
-
image?: string | null | undefined;
|
|
3030
|
-
} & {} & {
|
|
3031
|
-
username?: string | null | undefined;
|
|
3032
|
-
displayUsername?: string | null | undefined;
|
|
3033
|
-
}>;
|
|
3034
|
-
session: import("better-auth").StripEmptyObjects<{
|
|
3035
|
-
id: string;
|
|
3036
|
-
createdAt: Date;
|
|
3037
|
-
updatedAt: Date;
|
|
3038
|
-
userId: string;
|
|
3039
|
-
expiresAt: Date;
|
|
3040
|
-
token: string;
|
|
3041
|
-
ipAddress?: string | null | undefined;
|
|
3042
|
-
userAgent?: string | null | undefined;
|
|
3043
|
-
}>;
|
|
3044
|
-
} | null, {
|
|
3045
|
-
code?: string | undefined;
|
|
3046
|
-
message?: string | undefined;
|
|
3047
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3048
|
-
} & {
|
|
3049
|
-
signIn: {
|
|
3050
|
-
magicLink: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
3051
|
-
email: string;
|
|
3052
|
-
name?: string | undefined;
|
|
3053
|
-
callbackURL?: string | undefined;
|
|
3054
|
-
newUserCallbackURL?: string | undefined;
|
|
3055
|
-
errorCallbackURL?: string | undefined;
|
|
3056
|
-
metadata?: Record<string, any> | undefined;
|
|
3057
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
3058
|
-
email: string;
|
|
3059
|
-
name?: string | undefined;
|
|
3060
|
-
callbackURL?: string | undefined;
|
|
3061
|
-
newUserCallbackURL?: string | undefined;
|
|
3062
|
-
errorCallbackURL?: string | undefined;
|
|
3063
|
-
metadata?: Record<string, any> | undefined;
|
|
3064
|
-
} & {
|
|
3065
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3066
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3067
|
-
status: boolean;
|
|
3068
|
-
}, {
|
|
3069
|
-
code?: string | undefined;
|
|
3070
|
-
message?: string | undefined;
|
|
3071
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3072
|
-
};
|
|
3073
|
-
} & {
|
|
3074
|
-
magicLink: {
|
|
3075
|
-
verify: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
3076
|
-
token: string;
|
|
3077
|
-
callbackURL?: string | undefined;
|
|
3078
|
-
errorCallbackURL?: string | undefined;
|
|
3079
|
-
newUserCallbackURL?: string | undefined;
|
|
3080
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
3081
|
-
query: {
|
|
3082
|
-
token: string;
|
|
3083
|
-
callbackURL?: string | undefined;
|
|
3084
|
-
errorCallbackURL?: string | undefined;
|
|
3085
|
-
newUserCallbackURL?: string | undefined;
|
|
3086
|
-
};
|
|
3087
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3088
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<Omit<Omit<{
|
|
3089
|
-
token: string;
|
|
3090
|
-
user: {
|
|
3091
|
-
id: string;
|
|
3092
|
-
createdAt: Date;
|
|
3093
|
-
updatedAt: Date;
|
|
3094
|
-
email: string;
|
|
3095
|
-
emailVerified: boolean;
|
|
3096
|
-
name: string;
|
|
3097
|
-
image?: string | null | undefined;
|
|
3098
|
-
};
|
|
3099
|
-
session: {
|
|
3100
|
-
id: string;
|
|
3101
|
-
createdAt: Date;
|
|
3102
|
-
updatedAt: Date;
|
|
3103
|
-
userId: string;
|
|
3104
|
-
expiresAt: Date;
|
|
3105
|
-
token: string;
|
|
3106
|
-
ipAddress?: string | null | undefined;
|
|
3107
|
-
userAgent?: string | null | undefined;
|
|
3108
|
-
};
|
|
3109
|
-
}, "user"> & {
|
|
3110
|
-
user: import("better-auth").StripEmptyObjects<{
|
|
3111
|
-
id: string;
|
|
3112
|
-
createdAt: Date;
|
|
3113
|
-
updatedAt: Date;
|
|
3114
|
-
email: string;
|
|
3115
|
-
emailVerified: boolean;
|
|
3116
|
-
name: string;
|
|
3117
|
-
image?: string | null | undefined;
|
|
3118
|
-
} & {} & {
|
|
3119
|
-
username?: string | null | undefined;
|
|
3120
|
-
displayUsername?: string | null | undefined;
|
|
3121
|
-
}>;
|
|
3122
|
-
}, "session"> & {
|
|
3123
|
-
session: import("better-auth").StripEmptyObjects<{
|
|
3124
|
-
id: string;
|
|
3125
|
-
createdAt: Date;
|
|
3126
|
-
updatedAt: Date;
|
|
3127
|
-
userId: string;
|
|
3128
|
-
expiresAt: Date;
|
|
3129
|
-
token: string;
|
|
3130
|
-
ipAddress?: string | null | undefined;
|
|
3131
|
-
userAgent?: string | null | undefined;
|
|
3132
|
-
}>;
|
|
3133
|
-
}, {
|
|
3134
|
-
code?: string | undefined;
|
|
3135
|
-
message?: string | undefined;
|
|
3136
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3137
|
-
};
|
|
3138
|
-
} & {
|
|
3139
|
-
multiSession: {
|
|
3140
|
-
listDeviceSessions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
3141
|
-
query?: Record<string, any> | undefined;
|
|
3142
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3143
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3144
|
-
session: {
|
|
3145
|
-
id: string;
|
|
3146
|
-
createdAt: Date;
|
|
3147
|
-
updatedAt: Date;
|
|
3148
|
-
userId: string;
|
|
3149
|
-
expiresAt: Date;
|
|
3150
|
-
token: string;
|
|
3151
|
-
ipAddress?: string | null | undefined;
|
|
3152
|
-
userAgent?: string | null | undefined;
|
|
3153
|
-
};
|
|
3154
|
-
user: {
|
|
3155
|
-
id: string;
|
|
3156
|
-
createdAt: Date;
|
|
3157
|
-
updatedAt: Date;
|
|
3158
|
-
email: string;
|
|
3159
|
-
emailVerified: boolean;
|
|
3160
|
-
name: string;
|
|
3161
|
-
image?: string | null | undefined;
|
|
3162
|
-
};
|
|
3163
|
-
}[], {
|
|
3164
|
-
code?: string | undefined;
|
|
3165
|
-
message?: string | undefined;
|
|
3166
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3167
|
-
};
|
|
3168
|
-
} & {
|
|
3169
|
-
multiSession: {
|
|
3170
|
-
setActive: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
3171
|
-
sessionToken: string;
|
|
3172
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
3173
|
-
sessionToken: string;
|
|
3174
|
-
} & {
|
|
3175
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3176
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3177
|
-
session: {
|
|
3178
|
-
id: string;
|
|
3179
|
-
createdAt: Date;
|
|
3180
|
-
updatedAt: Date;
|
|
3181
|
-
userId: string;
|
|
3182
|
-
expiresAt: Date;
|
|
3183
|
-
token: string;
|
|
3184
|
-
ipAddress?: string | null | undefined;
|
|
3185
|
-
userAgent?: string | null | undefined;
|
|
3186
|
-
} & Record<string, any>;
|
|
3187
|
-
user: {
|
|
3188
|
-
id: string;
|
|
3189
|
-
createdAt: Date;
|
|
3190
|
-
updatedAt: Date;
|
|
3191
|
-
email: string;
|
|
3192
|
-
emailVerified: boolean;
|
|
3193
|
-
name: string;
|
|
3194
|
-
image?: string | null | undefined;
|
|
3195
|
-
} & Record<string, any>;
|
|
3196
|
-
}, {
|
|
3197
|
-
code?: string | undefined;
|
|
3198
|
-
message?: string | undefined;
|
|
3199
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3200
|
-
};
|
|
3201
|
-
} & {
|
|
3202
|
-
multiSession: {
|
|
3203
|
-
revoke: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
3204
|
-
sessionToken: string;
|
|
3205
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
3206
|
-
sessionToken: string;
|
|
3207
|
-
} & {
|
|
3208
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3209
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3210
|
-
status: boolean;
|
|
3211
|
-
}, {
|
|
3212
|
-
code?: string | undefined;
|
|
3213
|
-
message?: string | undefined;
|
|
3214
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3215
|
-
};
|
|
3216
|
-
} & {
|
|
3217
|
-
passkey: {
|
|
3218
|
-
generateRegisterOptions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<{
|
|
3219
|
-
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
3220
|
-
name?: string | undefined;
|
|
3221
|
-
context?: string | undefined;
|
|
3222
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
3223
|
-
query?: {
|
|
3224
|
-
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
|
|
3225
|
-
name?: string | undefined;
|
|
3226
|
-
context?: string | undefined;
|
|
3227
|
-
} | undefined;
|
|
3228
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3229
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<import("@better-auth/passkey/client").PublicKeyCredentialCreationOptionsJSON, {
|
|
3230
|
-
code?: string | undefined;
|
|
3231
|
-
message?: string | undefined;
|
|
3232
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3233
|
-
};
|
|
3234
|
-
} & {
|
|
3235
|
-
passkey: {
|
|
3236
|
-
generateAuthenticateOptions: <FetchOptions extends import("better-auth").ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import("better-auth").Prettify<{
|
|
3237
|
-
query?: Record<string, any> | undefined;
|
|
3238
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3239
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<import("@better-auth/passkey/client").PublicKeyCredentialRequestOptionsJSON, {
|
|
3240
|
-
code?: string | undefined;
|
|
3241
|
-
message?: string | undefined;
|
|
3242
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3243
|
-
};
|
|
3244
|
-
} & {
|
|
3245
|
-
passkey: {
|
|
3246
|
-
verifyRegistration: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
3247
|
-
response: any;
|
|
3248
|
-
name?: string | undefined;
|
|
3249
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
3250
|
-
response: any;
|
|
3251
|
-
name?: string | undefined;
|
|
3252
|
-
} & {
|
|
3253
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3254
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<import("@better-auth/passkey/client").Passkey, {
|
|
3255
|
-
code?: string | undefined;
|
|
3256
|
-
message?: string | undefined;
|
|
3257
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3258
|
-
};
|
|
3259
|
-
} & {
|
|
3260
|
-
passkey: {
|
|
3261
|
-
verifyAuthentication: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
3262
|
-
response: import("@better-auth/passkey/client").AuthenticationResponseJSON;
|
|
3263
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import("better-auth").Prettify<{
|
|
3264
|
-
response: import("@better-auth/passkey/client").AuthenticationResponseJSON;
|
|
3265
|
-
} & {
|
|
3266
|
-
fetchOptions?: FetchOptions | undefined;
|
|
3267
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
|
|
3268
|
-
session: {
|
|
3269
|
-
id: string;
|
|
3270
|
-
createdAt: Date;
|
|
3271
|
-
updatedAt: Date;
|
|
3272
|
-
userId: string;
|
|
3273
|
-
expiresAt: Date;
|
|
3274
|
-
token: string;
|
|
3275
|
-
ipAddress?: string | null | undefined;
|
|
3276
|
-
userAgent?: string | null | undefined;
|
|
3277
|
-
};
|
|
3278
|
-
}, {
|
|
3279
|
-
code?: string | undefined;
|
|
3280
|
-
message?: string | undefined;
|
|
3281
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3282
|
-
};
|
|
3129
|
+
code?: string | undefined;
|
|
3130
|
+
message?: string | undefined;
|
|
3131
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3283
3132
|
} & {
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3133
|
+
resetPassword: {
|
|
3134
|
+
":token": <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
3135
|
+
callbackURL: string;
|
|
3136
|
+
}> & Record<string, any>, {
|
|
3137
|
+
token: string;
|
|
3138
|
+
}>>(data_0: import('better-auth').Prettify<{
|
|
3139
|
+
query: {
|
|
3140
|
+
callbackURL: string;
|
|
3141
|
+
};
|
|
3287
3142
|
fetchOptions?: FetchOptions | undefined;
|
|
3288
|
-
}
|
|
3143
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<never, {
|
|
3289
3144
|
code?: string | undefined;
|
|
3290
3145
|
message?: string | undefined;
|
|
3291
3146
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3292
3147
|
};
|
|
3293
3148
|
} & {
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3149
|
+
listSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
3150
|
+
query?: Record<string, any> | undefined;
|
|
3151
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3152
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<import('better-auth').Prettify<{
|
|
3153
|
+
id: string;
|
|
3154
|
+
createdAt: Date;
|
|
3155
|
+
updatedAt: Date;
|
|
3156
|
+
userId: string;
|
|
3157
|
+
expiresAt: Date;
|
|
3158
|
+
token: string;
|
|
3159
|
+
ipAddress?: string | null | undefined | undefined;
|
|
3160
|
+
userAgent?: string | null | undefined | undefined;
|
|
3161
|
+
}>[], {
|
|
3162
|
+
code?: string | undefined;
|
|
3163
|
+
message?: string | undefined;
|
|
3164
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3308
3165
|
} & {
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
code?: string | undefined;
|
|
3322
|
-
message?: string | undefined;
|
|
3323
|
-
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3324
|
-
};
|
|
3166
|
+
revokeSession: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
3167
|
+
token: string;
|
|
3168
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3169
|
+
token: string;
|
|
3170
|
+
} & {
|
|
3171
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3172
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3173
|
+
status: boolean;
|
|
3174
|
+
}, {
|
|
3175
|
+
code?: string | undefined;
|
|
3176
|
+
message?: string | undefined;
|
|
3177
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3325
3178
|
} & {
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3179
|
+
revokeSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
3180
|
+
query?: Record<string, any> | undefined;
|
|
3181
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3182
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3183
|
+
status: boolean;
|
|
3184
|
+
}, {
|
|
3185
|
+
code?: string | undefined;
|
|
3186
|
+
message?: string | undefined;
|
|
3187
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3188
|
+
} & {
|
|
3189
|
+
revokeOtherSessions: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
3190
|
+
query?: Record<string, any> | undefined;
|
|
3191
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3192
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3193
|
+
status: boolean;
|
|
3194
|
+
}, {
|
|
3195
|
+
code?: string | undefined;
|
|
3196
|
+
message?: string | undefined;
|
|
3197
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3198
|
+
} & {
|
|
3199
|
+
linkSocial: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
3200
|
+
provider: unknown;
|
|
3201
|
+
callbackURL?: string | undefined;
|
|
3202
|
+
idToken?: {
|
|
3340
3203
|
token: string;
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3204
|
+
nonce?: string | undefined;
|
|
3205
|
+
accessToken?: string | undefined;
|
|
3206
|
+
refreshToken?: string | undefined;
|
|
3207
|
+
scopes?: string[] | undefined;
|
|
3208
|
+
} | undefined;
|
|
3209
|
+
requestSignUp?: boolean | undefined;
|
|
3210
|
+
scopes?: string[] | undefined;
|
|
3211
|
+
errorCallbackURL?: string | undefined;
|
|
3212
|
+
disableRedirect?: boolean | undefined;
|
|
3213
|
+
additionalData?: Record<string, any> | undefined;
|
|
3214
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3215
|
+
provider: unknown;
|
|
3216
|
+
callbackURL?: string | undefined;
|
|
3217
|
+
idToken?: {
|
|
3218
|
+
token: string;
|
|
3219
|
+
nonce?: string | undefined;
|
|
3220
|
+
accessToken?: string | undefined;
|
|
3221
|
+
refreshToken?: string | undefined;
|
|
3222
|
+
scopes?: string[] | undefined;
|
|
3223
|
+
} | undefined;
|
|
3224
|
+
requestSignUp?: boolean | undefined;
|
|
3225
|
+
scopes?: string[] | undefined;
|
|
3226
|
+
errorCallbackURL?: string | undefined;
|
|
3227
|
+
disableRedirect?: boolean | undefined;
|
|
3228
|
+
additionalData?: Record<string, any> | undefined;
|
|
3229
|
+
} & {
|
|
3230
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3231
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3232
|
+
url: string;
|
|
3233
|
+
redirect: boolean;
|
|
3234
|
+
}, {
|
|
3235
|
+
code?: string | undefined;
|
|
3236
|
+
message?: string | undefined;
|
|
3237
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3238
|
+
} & {
|
|
3239
|
+
listAccounts: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
3240
|
+
query?: Record<string, any> | undefined;
|
|
3241
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3242
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3243
|
+
scopes: string[];
|
|
3244
|
+
id: string;
|
|
3245
|
+
createdAt: Date;
|
|
3246
|
+
updatedAt: Date;
|
|
3247
|
+
userId: string;
|
|
3248
|
+
providerId: string;
|
|
3249
|
+
accountId: string;
|
|
3250
|
+
}[], {
|
|
3251
|
+
code?: string | undefined;
|
|
3252
|
+
message?: string | undefined;
|
|
3253
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3254
|
+
} & {
|
|
3255
|
+
deleteUser: {
|
|
3256
|
+
callback: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
3257
|
+
token: string;
|
|
3258
|
+
callbackURL?: string | undefined;
|
|
3259
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3260
|
+
query: {
|
|
3261
|
+
token: string;
|
|
3262
|
+
callbackURL?: string | undefined;
|
|
3352
3263
|
};
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
updatedAt: Date;
|
|
3358
|
-
email: string;
|
|
3359
|
-
emailVerified: boolean;
|
|
3360
|
-
name: string;
|
|
3361
|
-
image?: string | null | undefined;
|
|
3362
|
-
} & {} & {
|
|
3363
|
-
username?: string | null | undefined;
|
|
3364
|
-
displayUsername?: string | null | undefined;
|
|
3365
|
-
}>;
|
|
3264
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3265
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3266
|
+
success: boolean;
|
|
3267
|
+
message: string;
|
|
3366
3268
|
}, {
|
|
3367
3269
|
code?: string | undefined;
|
|
3368
3270
|
message?: string | undefined;
|
|
3369
3271
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3370
3272
|
};
|
|
3371
3273
|
} & {
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3274
|
+
unlinkAccount: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
3275
|
+
providerId: string;
|
|
3276
|
+
accountId?: string | undefined;
|
|
3277
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3278
|
+
providerId: string;
|
|
3279
|
+
accountId?: string | undefined;
|
|
3376
3280
|
} & {
|
|
3377
3281
|
fetchOptions?: FetchOptions | undefined;
|
|
3378
|
-
}>, data_1?: FetchOptions | undefined) => Promise<import(
|
|
3379
|
-
|
|
3282
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3283
|
+
status: boolean;
|
|
3284
|
+
}, {
|
|
3285
|
+
code?: string | undefined;
|
|
3286
|
+
message?: string | undefined;
|
|
3287
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3288
|
+
} & {
|
|
3289
|
+
refreshToken: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
3290
|
+
providerId: string;
|
|
3291
|
+
accountId?: string | undefined;
|
|
3292
|
+
userId?: string | undefined;
|
|
3293
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3294
|
+
providerId: string;
|
|
3295
|
+
accountId?: string | undefined;
|
|
3296
|
+
userId?: string | undefined;
|
|
3297
|
+
} & {
|
|
3298
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3299
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3300
|
+
accessToken: string | undefined;
|
|
3301
|
+
refreshToken: string;
|
|
3302
|
+
accessTokenExpiresAt: Date | undefined;
|
|
3303
|
+
refreshTokenExpiresAt: Date | null | undefined;
|
|
3304
|
+
scope: string | null | undefined;
|
|
3305
|
+
idToken: string | null | undefined;
|
|
3306
|
+
providerId: string;
|
|
3307
|
+
accountId: string;
|
|
3308
|
+
}, {
|
|
3309
|
+
code?: string | undefined;
|
|
3310
|
+
message?: string | undefined;
|
|
3311
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3312
|
+
} & {
|
|
3313
|
+
getAccessToken: <FetchOptions extends import('better-auth').ClientFetchOption<Partial<{
|
|
3314
|
+
providerId: string;
|
|
3315
|
+
accountId?: string | undefined;
|
|
3316
|
+
userId?: string | undefined;
|
|
3317
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: import('better-auth').Prettify<{
|
|
3318
|
+
providerId: string;
|
|
3319
|
+
accountId?: string | undefined;
|
|
3320
|
+
userId?: string | undefined;
|
|
3321
|
+
} & {
|
|
3322
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3323
|
+
}>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3324
|
+
accessToken: string;
|
|
3325
|
+
accessTokenExpiresAt: Date | undefined;
|
|
3326
|
+
scopes: string[];
|
|
3327
|
+
idToken: string | undefined;
|
|
3328
|
+
}, {
|
|
3329
|
+
code?: string | undefined;
|
|
3330
|
+
message?: string | undefined;
|
|
3331
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3332
|
+
} & {
|
|
3333
|
+
accountInfo: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
3334
|
+
accountId?: string | undefined;
|
|
3335
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
3336
|
+
query?: {
|
|
3337
|
+
accountId?: string | undefined;
|
|
3338
|
+
} | undefined;
|
|
3339
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3340
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3341
|
+
user: import('better-auth').OAuth2UserInfo;
|
|
3342
|
+
data: Record<string, any>;
|
|
3380
3343
|
}, {
|
|
3381
3344
|
code?: string | undefined;
|
|
3382
3345
|
message?: string | undefined;
|
|
3383
3346
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3347
|
+
} & {
|
|
3348
|
+
getSession: <FetchOptions extends import('better-auth').ClientFetchOption<never, Partial<{
|
|
3349
|
+
disableCookieCache?: unknown;
|
|
3350
|
+
disableRefresh?: unknown;
|
|
3351
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: import('better-auth').Prettify<{
|
|
3352
|
+
query?: {
|
|
3353
|
+
disableCookieCache?: unknown;
|
|
3354
|
+
disableRefresh?: unknown;
|
|
3355
|
+
} | undefined;
|
|
3356
|
+
fetchOptions?: FetchOptions | undefined;
|
|
3357
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
|
|
3358
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
3359
|
+
id: string;
|
|
3360
|
+
createdAt: Date;
|
|
3361
|
+
updatedAt: Date;
|
|
3362
|
+
email: string;
|
|
3363
|
+
emailVerified: boolean;
|
|
3364
|
+
name: string;
|
|
3365
|
+
image?: string | null | undefined;
|
|
3366
|
+
} & {} & {
|
|
3367
|
+
username?: string | null | undefined;
|
|
3368
|
+
displayUsername?: string | null | undefined;
|
|
3369
|
+
}>;
|
|
3370
|
+
session: import('better-auth').StripEmptyObjects<{
|
|
3371
|
+
id: string;
|
|
3372
|
+
createdAt: Date;
|
|
3373
|
+
updatedAt: Date;
|
|
3374
|
+
userId: string;
|
|
3375
|
+
expiresAt: Date;
|
|
3376
|
+
token: string;
|
|
3377
|
+
ipAddress?: string | null | undefined;
|
|
3378
|
+
userAgent?: string | null | undefined;
|
|
3379
|
+
}>;
|
|
3380
|
+
} | null, {
|
|
3381
|
+
code?: string | undefined;
|
|
3382
|
+
message?: string | undefined;
|
|
3383
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3384
3384
|
} & {
|
|
3385
3385
|
signIn: {
|
|
3386
3386
|
passkey: (opts?: {
|
|
3387
3387
|
autoFill?: boolean;
|
|
3388
|
-
extensions?: import(
|
|
3388
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
3389
3389
|
returnWebAuthnResponse?: boolean;
|
|
3390
|
-
fetchOptions?: import(
|
|
3391
|
-
} | undefined, options?: import(
|
|
3390
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
3391
|
+
} | undefined, options?: import('better-auth').ClientFetchOption | undefined) => Promise<{
|
|
3392
3392
|
data: null;
|
|
3393
3393
|
error: {
|
|
3394
3394
|
message?: string | undefined;
|
|
@@ -3397,14 +3397,14 @@ declare const authClient: {
|
|
|
3397
3397
|
};
|
|
3398
3398
|
} | {
|
|
3399
3399
|
data: {
|
|
3400
|
-
session: import(
|
|
3401
|
-
user: import(
|
|
3400
|
+
session: import('better-auth').Session;
|
|
3401
|
+
user: import('better-auth').User;
|
|
3402
3402
|
};
|
|
3403
3403
|
error: null;
|
|
3404
3404
|
} | {
|
|
3405
3405
|
webauthn: {
|
|
3406
|
-
response: import(
|
|
3407
|
-
clientExtensionResults: import(
|
|
3406
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
3407
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
3408
3408
|
};
|
|
3409
3409
|
data: null;
|
|
3410
3410
|
error: {
|
|
@@ -3414,12 +3414,12 @@ declare const authClient: {
|
|
|
3414
3414
|
};
|
|
3415
3415
|
} | {
|
|
3416
3416
|
webauthn: {
|
|
3417
|
-
response: import(
|
|
3418
|
-
clientExtensionResults: import(
|
|
3417
|
+
response: import('@better-auth/passkey/client').AuthenticationResponseJSON;
|
|
3418
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
3419
3419
|
};
|
|
3420
3420
|
data: {
|
|
3421
|
-
session: import(
|
|
3422
|
-
user: import(
|
|
3421
|
+
session: import('better-auth').Session;
|
|
3422
|
+
user: import('better-auth').User;
|
|
3423
3423
|
};
|
|
3424
3424
|
error: null;
|
|
3425
3425
|
} | {
|
|
@@ -3434,14 +3434,14 @@ declare const authClient: {
|
|
|
3434
3434
|
};
|
|
3435
3435
|
passkey: {
|
|
3436
3436
|
addPasskey: (opts?: {
|
|
3437
|
-
fetchOptions?: import(
|
|
3437
|
+
fetchOptions?: import('better-auth').ClientFetchOption;
|
|
3438
3438
|
name?: string;
|
|
3439
3439
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
3440
3440
|
context?: string | null;
|
|
3441
|
-
extensions?: import(
|
|
3441
|
+
extensions?: import('@better-auth/passkey/client').AuthenticationExtensionsClientInputs;
|
|
3442
3442
|
useAutoRegister?: boolean;
|
|
3443
3443
|
returnWebAuthnResponse?: boolean;
|
|
3444
|
-
} | undefined, fetchOpts?: import(
|
|
3444
|
+
} | undefined, fetchOpts?: import('better-auth').ClientFetchOption | undefined) => Promise<{
|
|
3445
3445
|
data: null;
|
|
3446
3446
|
error: {
|
|
3447
3447
|
message?: string | undefined;
|
|
@@ -3449,14 +3449,14 @@ declare const authClient: {
|
|
|
3449
3449
|
statusText: string;
|
|
3450
3450
|
};
|
|
3451
3451
|
} | {
|
|
3452
|
-
data: import(
|
|
3452
|
+
data: import('@better-auth/passkey/client').Passkey;
|
|
3453
3453
|
error: null;
|
|
3454
3454
|
} | {
|
|
3455
3455
|
webauthn: {
|
|
3456
|
-
response: import(
|
|
3457
|
-
clientExtensionResults: import(
|
|
3456
|
+
response: import('@better-auth/passkey/client').RegistrationResponseJSON;
|
|
3457
|
+
clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs;
|
|
3458
3458
|
};
|
|
3459
|
-
data: import(
|
|
3459
|
+
data: import('@better-auth/passkey/client').Passkey;
|
|
3460
3460
|
error: null;
|
|
3461
3461
|
} | {
|
|
3462
3462
|
data: null;
|
|
@@ -3469,12 +3469,12 @@ declare const authClient: {
|
|
|
3469
3469
|
}>;
|
|
3470
3470
|
};
|
|
3471
3471
|
$Infer: {
|
|
3472
|
-
Passkey: import(
|
|
3472
|
+
Passkey: import('@better-auth/passkey/client').Passkey;
|
|
3473
3473
|
};
|
|
3474
3474
|
} & {
|
|
3475
3475
|
useSession: () => {
|
|
3476
3476
|
data: {
|
|
3477
|
-
user: import(
|
|
3477
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
3478
3478
|
id: string;
|
|
3479
3479
|
createdAt: Date;
|
|
3480
3480
|
updatedAt: Date;
|
|
@@ -3486,7 +3486,7 @@ declare const authClient: {
|
|
|
3486
3486
|
username?: string | null | undefined;
|
|
3487
3487
|
displayUsername?: string | null | undefined;
|
|
3488
3488
|
}>;
|
|
3489
|
-
session: import(
|
|
3489
|
+
session: import('better-auth').StripEmptyObjects<{
|
|
3490
3490
|
id: string;
|
|
3491
3491
|
createdAt: Date;
|
|
3492
3492
|
updatedAt: Date;
|
|
@@ -3499,14 +3499,14 @@ declare const authClient: {
|
|
|
3499
3499
|
} | null;
|
|
3500
3500
|
isPending: boolean;
|
|
3501
3501
|
isRefetching: boolean;
|
|
3502
|
-
error: import(
|
|
3502
|
+
error: import('better-auth/client').BetterFetchError | null;
|
|
3503
3503
|
refetch: (queryParams?: {
|
|
3504
|
-
query?: import(
|
|
3504
|
+
query?: import('better-auth').SessionQueryParams;
|
|
3505
3505
|
} | undefined) => Promise<void>;
|
|
3506
3506
|
};
|
|
3507
3507
|
$Infer: {
|
|
3508
3508
|
Session: {
|
|
3509
|
-
user: import(
|
|
3509
|
+
user: import('better-auth').StripEmptyObjects<{
|
|
3510
3510
|
id: string;
|
|
3511
3511
|
createdAt: Date;
|
|
3512
3512
|
updatedAt: Date;
|
|
@@ -3518,7 +3518,7 @@ declare const authClient: {
|
|
|
3518
3518
|
username?: string | null | undefined;
|
|
3519
3519
|
displayUsername?: string | null | undefined;
|
|
3520
3520
|
}>;
|
|
3521
|
-
session: import(
|
|
3521
|
+
session: import('better-auth').StripEmptyObjects<{
|
|
3522
3522
|
id: string;
|
|
3523
3523
|
createdAt: Date;
|
|
3524
3524
|
updatedAt: Date;
|
|
@@ -3530,21 +3530,21 @@ declare const authClient: {
|
|
|
3530
3530
|
}>;
|
|
3531
3531
|
};
|
|
3532
3532
|
};
|
|
3533
|
-
$fetch: import(
|
|
3534
|
-
plugins: (import(
|
|
3533
|
+
$fetch: import('better-auth/client').BetterFetch<{
|
|
3534
|
+
plugins: (import('better-auth/client').BetterFetchPlugin<Record<string, any>> | {
|
|
3535
3535
|
id: string;
|
|
3536
3536
|
name: string;
|
|
3537
3537
|
hooks: {
|
|
3538
|
-
onSuccess(context: import(
|
|
3538
|
+
onSuccess(context: import('better-auth/client').SuccessContext<any>): void;
|
|
3539
3539
|
};
|
|
3540
3540
|
} | {
|
|
3541
3541
|
id: string;
|
|
3542
3542
|
name: string;
|
|
3543
3543
|
hooks: {
|
|
3544
|
-
onSuccess: ((context: import(
|
|
3545
|
-
onError: ((context: import(
|
|
3546
|
-
onRequest: (<T extends Record<string, any>>(context: import(
|
|
3547
|
-
onResponse: ((context: import(
|
|
3544
|
+
onSuccess: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
3545
|
+
onError: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
|
|
3546
|
+
onRequest: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
|
|
3547
|
+
onResponse: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
|
|
3548
3548
|
};
|
|
3549
3549
|
})[];
|
|
3550
3550
|
priority?: RequestPriority | undefined;
|
|
@@ -3564,12 +3564,12 @@ declare const authClient: {
|
|
|
3564
3564
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
3565
3565
|
signal?: (AbortSignal | null) | undefined;
|
|
3566
3566
|
window?: null | undefined;
|
|
3567
|
-
onRetry?: ((response: import(
|
|
3567
|
+
onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
|
|
3568
3568
|
hookOptions?: {
|
|
3569
3569
|
cloneResponse?: boolean;
|
|
3570
3570
|
} | undefined;
|
|
3571
3571
|
timeout?: number | undefined;
|
|
3572
|
-
customFetchImpl: import(
|
|
3572
|
+
customFetchImpl: import('better-auth/client').FetchEsque;
|
|
3573
3573
|
baseURL: string;
|
|
3574
3574
|
throw?: boolean | undefined;
|
|
3575
3575
|
auth?: ({
|
|
@@ -3589,93 +3589,93 @@ declare const authClient: {
|
|
|
3589
3589
|
params?: any;
|
|
3590
3590
|
duplex?: "full" | "half" | undefined;
|
|
3591
3591
|
jsonParser: (text: string) => Promise<any> | any;
|
|
3592
|
-
retry?: import(
|
|
3592
|
+
retry?: import('better-auth/client').RetryOptions | undefined;
|
|
3593
3593
|
retryAttempt?: number | undefined;
|
|
3594
|
-
output?: (import(
|
|
3595
|
-
errorSchema?: import(
|
|
3594
|
+
output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
3595
|
+
errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
|
|
3596
3596
|
disableValidation?: boolean | undefined;
|
|
3597
3597
|
disableSignal?: boolean | undefined;
|
|
3598
3598
|
}, unknown, unknown, {}>;
|
|
3599
3599
|
$store: {
|
|
3600
3600
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
3601
3601
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
3602
|
-
atoms: Record<string, import(
|
|
3602
|
+
atoms: Record<string, import('better-auth/client').WritableAtom<any>>;
|
|
3603
3603
|
};
|
|
3604
3604
|
$ERROR_CODES: {
|
|
3605
|
-
INVALID_SESSION_TOKEN: import(
|
|
3605
|
+
INVALID_SESSION_TOKEN: import('better-auth').RawError<"INVALID_SESSION_TOKEN">;
|
|
3606
3606
|
} & {
|
|
3607
|
-
CHALLENGE_NOT_FOUND: import(
|
|
3608
|
-
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import(
|
|
3609
|
-
FAILED_TO_VERIFY_REGISTRATION: import(
|
|
3610
|
-
PASSKEY_NOT_FOUND: import(
|
|
3611
|
-
AUTHENTICATION_FAILED: import(
|
|
3612
|
-
UNABLE_TO_CREATE_SESSION: import(
|
|
3613
|
-
FAILED_TO_UPDATE_PASSKEY: import(
|
|
3614
|
-
PREVIOUSLY_REGISTERED: import(
|
|
3615
|
-
REGISTRATION_CANCELLED: import(
|
|
3616
|
-
AUTH_CANCELLED: import(
|
|
3617
|
-
UNKNOWN_ERROR: import(
|
|
3618
|
-
SESSION_REQUIRED: import(
|
|
3619
|
-
RESOLVE_USER_REQUIRED: import(
|
|
3620
|
-
RESOLVED_USER_INVALID: import(
|
|
3607
|
+
CHALLENGE_NOT_FOUND: import('better-auth').RawError<"CHALLENGE_NOT_FOUND">;
|
|
3608
|
+
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: import('better-auth').RawError<"YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY">;
|
|
3609
|
+
FAILED_TO_VERIFY_REGISTRATION: import('better-auth').RawError<"FAILED_TO_VERIFY_REGISTRATION">;
|
|
3610
|
+
PASSKEY_NOT_FOUND: import('better-auth').RawError<"PASSKEY_NOT_FOUND">;
|
|
3611
|
+
AUTHENTICATION_FAILED: import('better-auth').RawError<"AUTHENTICATION_FAILED">;
|
|
3612
|
+
UNABLE_TO_CREATE_SESSION: import('better-auth').RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
3613
|
+
FAILED_TO_UPDATE_PASSKEY: import('better-auth').RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
3614
|
+
PREVIOUSLY_REGISTERED: import('better-auth').RawError<"PREVIOUSLY_REGISTERED">;
|
|
3615
|
+
REGISTRATION_CANCELLED: import('better-auth').RawError<"REGISTRATION_CANCELLED">;
|
|
3616
|
+
AUTH_CANCELLED: import('better-auth').RawError<"AUTH_CANCELLED">;
|
|
3617
|
+
UNKNOWN_ERROR: import('better-auth').RawError<"UNKNOWN_ERROR">;
|
|
3618
|
+
SESSION_REQUIRED: import('better-auth').RawError<"SESSION_REQUIRED">;
|
|
3619
|
+
RESOLVE_USER_REQUIRED: import('better-auth').RawError<"RESOLVE_USER_REQUIRED">;
|
|
3620
|
+
RESOLVED_USER_INVALID: import('better-auth').RawError<"RESOLVED_USER_INVALID">;
|
|
3621
3621
|
} & {
|
|
3622
|
-
EMAIL_NOT_VERIFIED: import(
|
|
3623
|
-
UNEXPECTED_ERROR: import(
|
|
3624
|
-
INVALID_USERNAME_OR_PASSWORD: import(
|
|
3625
|
-
USERNAME_IS_ALREADY_TAKEN: import(
|
|
3626
|
-
USERNAME_TOO_SHORT: import(
|
|
3627
|
-
USERNAME_TOO_LONG: import(
|
|
3628
|
-
INVALID_USERNAME: import(
|
|
3629
|
-
INVALID_DISPLAY_USERNAME: import(
|
|
3622
|
+
EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
|
|
3623
|
+
UNEXPECTED_ERROR: import('better-auth').RawError<"UNEXPECTED_ERROR">;
|
|
3624
|
+
INVALID_USERNAME_OR_PASSWORD: import('better-auth').RawError<"INVALID_USERNAME_OR_PASSWORD">;
|
|
3625
|
+
USERNAME_IS_ALREADY_TAKEN: import('better-auth').RawError<"USERNAME_IS_ALREADY_TAKEN">;
|
|
3626
|
+
USERNAME_TOO_SHORT: import('better-auth').RawError<"USERNAME_TOO_SHORT">;
|
|
3627
|
+
USERNAME_TOO_LONG: import('better-auth').RawError<"USERNAME_TOO_LONG">;
|
|
3628
|
+
INVALID_USERNAME: import('better-auth').RawError<"INVALID_USERNAME">;
|
|
3629
|
+
INVALID_DISPLAY_USERNAME: import('better-auth').RawError<"INVALID_DISPLAY_USERNAME">;
|
|
3630
3630
|
} & {
|
|
3631
|
-
USER_NOT_FOUND: import(
|
|
3632
|
-
FAILED_TO_CREATE_USER: import(
|
|
3633
|
-
FAILED_TO_CREATE_SESSION: import(
|
|
3634
|
-
FAILED_TO_UPDATE_USER: import(
|
|
3635
|
-
FAILED_TO_GET_SESSION: import(
|
|
3636
|
-
INVALID_PASSWORD: import(
|
|
3637
|
-
INVALID_EMAIL: import(
|
|
3638
|
-
INVALID_EMAIL_OR_PASSWORD: import(
|
|
3639
|
-
INVALID_USER: import(
|
|
3640
|
-
SOCIAL_ACCOUNT_ALREADY_LINKED: import(
|
|
3641
|
-
PROVIDER_NOT_FOUND: import(
|
|
3642
|
-
INVALID_TOKEN: import(
|
|
3643
|
-
TOKEN_EXPIRED: import(
|
|
3644
|
-
ID_TOKEN_NOT_SUPPORTED: import(
|
|
3645
|
-
FAILED_TO_GET_USER_INFO: import(
|
|
3646
|
-
USER_EMAIL_NOT_FOUND: import(
|
|
3647
|
-
EMAIL_NOT_VERIFIED: import(
|
|
3648
|
-
PASSWORD_TOO_SHORT: import(
|
|
3649
|
-
PASSWORD_TOO_LONG: import(
|
|
3650
|
-
USER_ALREADY_EXISTS: import(
|
|
3651
|
-
USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: import(
|
|
3652
|
-
EMAIL_CAN_NOT_BE_UPDATED: import(
|
|
3653
|
-
CREDENTIAL_ACCOUNT_NOT_FOUND: import(
|
|
3654
|
-
ACCOUNT_NOT_FOUND: import(
|
|
3655
|
-
SESSION_EXPIRED: import(
|
|
3656
|
-
FAILED_TO_UNLINK_LAST_ACCOUNT: import(
|
|
3657
|
-
USER_ALREADY_HAS_PASSWORD: import(
|
|
3658
|
-
CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: import(
|
|
3659
|
-
VERIFICATION_EMAIL_NOT_ENABLED: import(
|
|
3660
|
-
EMAIL_ALREADY_VERIFIED: import(
|
|
3661
|
-
EMAIL_MISMATCH: import(
|
|
3662
|
-
SESSION_NOT_FRESH: import(
|
|
3663
|
-
LINKED_ACCOUNT_ALREADY_EXISTS: import(
|
|
3664
|
-
INVALID_ORIGIN: import(
|
|
3665
|
-
INVALID_CALLBACK_URL: import(
|
|
3666
|
-
INVALID_REDIRECT_URL: import(
|
|
3667
|
-
INVALID_ERROR_CALLBACK_URL: import(
|
|
3668
|
-
INVALID_NEW_USER_CALLBACK_URL: import(
|
|
3669
|
-
MISSING_OR_NULL_ORIGIN: import(
|
|
3670
|
-
CALLBACK_URL_REQUIRED: import(
|
|
3671
|
-
FAILED_TO_CREATE_VERIFICATION: import(
|
|
3672
|
-
FIELD_NOT_ALLOWED: import(
|
|
3673
|
-
ASYNC_VALIDATION_NOT_SUPPORTED: import(
|
|
3674
|
-
VALIDATION_ERROR: import(
|
|
3675
|
-
MISSING_FIELD: import(
|
|
3676
|
-
METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: import(
|
|
3677
|
-
BODY_MUST_BE_AN_OBJECT: import(
|
|
3678
|
-
PASSWORD_ALREADY_SET: import(
|
|
3631
|
+
USER_NOT_FOUND: import('better-auth').RawError<"USER_NOT_FOUND">;
|
|
3632
|
+
FAILED_TO_CREATE_USER: import('better-auth').RawError<"FAILED_TO_CREATE_USER">;
|
|
3633
|
+
FAILED_TO_CREATE_SESSION: import('better-auth').RawError<"FAILED_TO_CREATE_SESSION">;
|
|
3634
|
+
FAILED_TO_UPDATE_USER: import('better-auth').RawError<"FAILED_TO_UPDATE_USER">;
|
|
3635
|
+
FAILED_TO_GET_SESSION: import('better-auth').RawError<"FAILED_TO_GET_SESSION">;
|
|
3636
|
+
INVALID_PASSWORD: import('better-auth').RawError<"INVALID_PASSWORD">;
|
|
3637
|
+
INVALID_EMAIL: import('better-auth').RawError<"INVALID_EMAIL">;
|
|
3638
|
+
INVALID_EMAIL_OR_PASSWORD: import('better-auth').RawError<"INVALID_EMAIL_OR_PASSWORD">;
|
|
3639
|
+
INVALID_USER: import('better-auth').RawError<"INVALID_USER">;
|
|
3640
|
+
SOCIAL_ACCOUNT_ALREADY_LINKED: import('better-auth').RawError<"SOCIAL_ACCOUNT_ALREADY_LINKED">;
|
|
3641
|
+
PROVIDER_NOT_FOUND: import('better-auth').RawError<"PROVIDER_NOT_FOUND">;
|
|
3642
|
+
INVALID_TOKEN: import('better-auth').RawError<"INVALID_TOKEN">;
|
|
3643
|
+
TOKEN_EXPIRED: import('better-auth').RawError<"TOKEN_EXPIRED">;
|
|
3644
|
+
ID_TOKEN_NOT_SUPPORTED: import('better-auth').RawError<"ID_TOKEN_NOT_SUPPORTED">;
|
|
3645
|
+
FAILED_TO_GET_USER_INFO: import('better-auth').RawError<"FAILED_TO_GET_USER_INFO">;
|
|
3646
|
+
USER_EMAIL_NOT_FOUND: import('better-auth').RawError<"USER_EMAIL_NOT_FOUND">;
|
|
3647
|
+
EMAIL_NOT_VERIFIED: import('better-auth').RawError<"EMAIL_NOT_VERIFIED">;
|
|
3648
|
+
PASSWORD_TOO_SHORT: import('better-auth').RawError<"PASSWORD_TOO_SHORT">;
|
|
3649
|
+
PASSWORD_TOO_LONG: import('better-auth').RawError<"PASSWORD_TOO_LONG">;
|
|
3650
|
+
USER_ALREADY_EXISTS: import('better-auth').RawError<"USER_ALREADY_EXISTS">;
|
|
3651
|
+
USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: import('better-auth').RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
|
|
3652
|
+
EMAIL_CAN_NOT_BE_UPDATED: import('better-auth').RawError<"EMAIL_CAN_NOT_BE_UPDATED">;
|
|
3653
|
+
CREDENTIAL_ACCOUNT_NOT_FOUND: import('better-auth').RawError<"CREDENTIAL_ACCOUNT_NOT_FOUND">;
|
|
3654
|
+
ACCOUNT_NOT_FOUND: import('better-auth').RawError<"ACCOUNT_NOT_FOUND">;
|
|
3655
|
+
SESSION_EXPIRED: import('better-auth').RawError<"SESSION_EXPIRED">;
|
|
3656
|
+
FAILED_TO_UNLINK_LAST_ACCOUNT: import('better-auth').RawError<"FAILED_TO_UNLINK_LAST_ACCOUNT">;
|
|
3657
|
+
USER_ALREADY_HAS_PASSWORD: import('better-auth').RawError<"USER_ALREADY_HAS_PASSWORD">;
|
|
3658
|
+
CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: import('better-auth').RawError<"CROSS_SITE_NAVIGATION_LOGIN_BLOCKED">;
|
|
3659
|
+
VERIFICATION_EMAIL_NOT_ENABLED: import('better-auth').RawError<"VERIFICATION_EMAIL_NOT_ENABLED">;
|
|
3660
|
+
EMAIL_ALREADY_VERIFIED: import('better-auth').RawError<"EMAIL_ALREADY_VERIFIED">;
|
|
3661
|
+
EMAIL_MISMATCH: import('better-auth').RawError<"EMAIL_MISMATCH">;
|
|
3662
|
+
SESSION_NOT_FRESH: import('better-auth').RawError<"SESSION_NOT_FRESH">;
|
|
3663
|
+
LINKED_ACCOUNT_ALREADY_EXISTS: import('better-auth').RawError<"LINKED_ACCOUNT_ALREADY_EXISTS">;
|
|
3664
|
+
INVALID_ORIGIN: import('better-auth').RawError<"INVALID_ORIGIN">;
|
|
3665
|
+
INVALID_CALLBACK_URL: import('better-auth').RawError<"INVALID_CALLBACK_URL">;
|
|
3666
|
+
INVALID_REDIRECT_URL: import('better-auth').RawError<"INVALID_REDIRECT_URL">;
|
|
3667
|
+
INVALID_ERROR_CALLBACK_URL: import('better-auth').RawError<"INVALID_ERROR_CALLBACK_URL">;
|
|
3668
|
+
INVALID_NEW_USER_CALLBACK_URL: import('better-auth').RawError<"INVALID_NEW_USER_CALLBACK_URL">;
|
|
3669
|
+
MISSING_OR_NULL_ORIGIN: import('better-auth').RawError<"MISSING_OR_NULL_ORIGIN">;
|
|
3670
|
+
CALLBACK_URL_REQUIRED: import('better-auth').RawError<"CALLBACK_URL_REQUIRED">;
|
|
3671
|
+
FAILED_TO_CREATE_VERIFICATION: import('better-auth').RawError<"FAILED_TO_CREATE_VERIFICATION">;
|
|
3672
|
+
FIELD_NOT_ALLOWED: import('better-auth').RawError<"FIELD_NOT_ALLOWED">;
|
|
3673
|
+
ASYNC_VALIDATION_NOT_SUPPORTED: import('better-auth').RawError<"ASYNC_VALIDATION_NOT_SUPPORTED">;
|
|
3674
|
+
VALIDATION_ERROR: import('better-auth').RawError<"VALIDATION_ERROR">;
|
|
3675
|
+
MISSING_FIELD: import('better-auth').RawError<"MISSING_FIELD">;
|
|
3676
|
+
METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: import('better-auth').RawError<"METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED">;
|
|
3677
|
+
BODY_MUST_BE_AN_OBJECT: import('better-auth').RawError<"BODY_MUST_BE_AN_OBJECT">;
|
|
3678
|
+
PASSWORD_ALREADY_SET: import('better-auth').RawError<"PASSWORD_ALREADY_SET">;
|
|
3679
3679
|
};
|
|
3680
3680
|
};
|
|
3681
3681
|
/**
|