mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
docs(basic-usage): use twoFactor.verifyTotp instead of verifyTOTP (#11794)
This commit is contained in:
@@ -491,7 +491,7 @@ Below is an example of how to add two factor authentication using two factor plu
|
||||
}
|
||||
|
||||
const verifyTOTP = async() => {
|
||||
const data = await authClient.twoFactor.verifyTOTP({
|
||||
const data = await authClient.twoFactor.verifyTotp({
|
||||
code: "123456", // the code entered by the user
|
||||
/**
|
||||
* If the device is trusted, the user won't
|
||||
|
||||
Reference in New Issue
Block a user