Cant find twoFactor property in authClient

const { data, error } = await authClient.twoFactor.sendOtp()
const { data, error } = await authClient.twoFactor.sendOtp()
I am getting a type error Property 'twoFactor' does not exist on type.
import { createAuthClient } from "better-auth/react"
export const authClient = createAuthClient()
import { createAuthClient } from "better-auth/react"
export const authClient = createAuthClient()
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?