mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 18:36:34 -05:00
docs: update email otp api
This commit is contained in:
@@ -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
|
||||
})
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user