Mutations
signInEmailOptions
Email/password sign-in mutation options.
Options factory
import { signInEmailOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const signIn = createMutation(() => signInEmailOptions(authClient))
signIn.mutate({
email: "[email protected]",
password: passwordInput,
rememberMe: true
})The raw options factory does not perform React hook cache cleanup automatically. Invalidate authQueryKeys.session in your onSuccess handler when your screen needs the new session immediately.
Params
Prop
Type
Last updated on