Mutations
signInEmailOtpOptions
Complete passwordless sign-in with an emailed code.
Requires the Better Auth email-OTP plugin. If TypeScript cannot infer the plugin methods from your client, type or cast authClient as EmailOtpAuthClient from @better-auth-ui/solid.
Refetches the session on success. Send the code with sendVerificationOtpOptions first.
Options factory
import { signInEmailOtpOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const signIn = createMutation(() => signInEmailOtpOptions(authClient))
signIn.mutate({ email: "[email protected]", otp: "123456" })Params
Prop
Type
Last updated on