From d5b8206d8bc433ebd21c01e0b67ff090500a4a0f Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Fri, 27 Dec 2024 07:38:14 +0300 Subject: [PATCH] docs: update email otp api --- docs/content/docs/plugins/email-otp.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }) ] })