@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
30 lines (29 loc) • 1.33 kB
TypeScript
/**
* Mutation keys contributed by the email-OTP plugin.
*
* `signIn` stays under the shared `["auth", "signIn", ...]` namespace as the
* built-in sign-in keys so consumers can match the whole sign-in surface with
* `useIsMutating({ mutationKey: ["auth", "signIn"] })` regardless of which
* strategy is in flight.
*
* @example
* ```ts
* useIsMutating({ mutationKey: emailOtpMutationKeys.signIn })
* ```
*/
export declare const emailOtpMutationKeys: {
/** Key for `signIn.emailOtp`. */
readonly signIn: readonly ["auth", "signIn", "emailOtp"];
/** Key for `emailOtp.sendVerificationOtp`. */
readonly sendVerificationOtp: readonly ["auth", "emailOtp", "sendVerificationOtp"];
/** Key for `emailOtp.verifyEmail`. */
readonly verifyEmail: readonly ["auth", "emailOtp", "verifyEmail"];
/** Key for `emailOtp.requestPasswordReset`. */
readonly requestPasswordReset: readonly ["auth", "emailOtp", "requestPasswordReset"];
/** Key for `emailOtp.resetPassword`. */
readonly resetPassword: readonly ["auth", "emailOtp", "resetPassword"];
/** Key for `emailOtp.requestEmailChange`. */
readonly requestEmailChange: readonly ["auth", "emailOtp", "requestEmailChange"];
/** Key for `emailOtp.changeEmail`. */
readonly changeEmail: readonly ["auth", "emailOtp", "changeEmail"];
};