@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
18 lines (17 loc) • 557 B
text/typescript
/**
* Mutation keys contributed by the magic-link plugin.
*
* Kept under the shared `["auth", "signIn", ...]` namespace as the built-in
* sign-in mutation 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: magicLinkMutationKeys.signIn })
* ```
*/
export const magicLinkMutationKeys = {
/** Key for `signIn.magicLink`. */
signIn: ["auth", "signIn", "magicLink"] as const
} as const