docs: update email otp api

This commit is contained in:
Bereket Engida
2024-12-27 07:38:14 +03:00
parent 3efa62c954
commit d5b8206d8b

View File

@@ -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
})
]
})