diff --git a/docs/content/docs/plugins/email-otp.mdx b/docs/content/docs/plugins/email-otp.mdx index b618d89206..5962720718 100644 --- a/docs/content/docs/plugins/email-otp.mdx +++ b/docs/content/docs/plugins/email-otp.mdx @@ -129,7 +129,7 @@ export const auth = betterAuth({ ``` - `otpLength`: The length of the OTP. Defaults to `6`. -- `otpExpiry`: The expiry time of the OTP in seconds. Defaults to `300` seconds. +- `expiresIn`: The expiry time of the OTP in seconds. Defaults to `300` seconds. ```ts title="auth.ts" import { betterAuth } from "better-auth" @@ -138,7 +138,7 @@ export const auth = betterAuth({ plugins: [ emailOTP({ otpLength: 8, - otpExpiry: 600 + expiresIn: 600 }) ] })