@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
28 lines (27 loc) • 1.43 kB
TypeScript
/**
* Mutation keys contributed by the two-factor plugin.
*
* The three verification keys live under the shared
* `["auth", "signIn", ...]` namespace because they are what actually creates
* the session — sign-in isn't finished until the second factor succeeds, so
* `useIsMutating({ mutationKey: ["auth", "signIn"] })` should still match.
* Enrollment and management keys sit under `["auth", "twoFactor", ...]`.
*/
export declare const twoFactorMutationKeys: {
/** Key for `twoFactor.enable`. */
readonly enable: readonly ["auth", "twoFactor", "enable"];
/** Key for `twoFactor.disable`. */
readonly disable: readonly ["auth", "twoFactor", "disable"];
/** Key for `twoFactor.getTotpUri`. */
readonly getTotpUri: readonly ["auth", "twoFactor", "getTotpUri"];
/** Key for `twoFactor.generateBackupCodes`. */
readonly generateBackupCodes: readonly ["auth", "twoFactor", "generateBackupCodes"];
/** Key for `twoFactor.sendOtp`. */
readonly sendOtp: readonly ["auth", "twoFactor", "sendOtp"];
/** Key for `twoFactor.verifyTotp`. */
readonly verifyTotp: readonly ["auth", "signIn", "twoFactor", "verifyTotp"];
/** Key for `twoFactor.verifyOtp`. */
readonly verifyOtp: readonly ["auth", "signIn", "twoFactor", "verifyOtp"];
/** Key for `twoFactor.verifyBackupCode`. */
readonly verifyBackupCode: readonly ["auth", "signIn", "twoFactor", "verifyBackupCode"];
};