docs(fix): removed random s letter. (#763)

This commit is contained in:
Multinite
2024-12-05 03:57:52 +10:00
committed by GitHub
parent 690feed88a
commit 3d971f41ba

View File

@@ -159,7 +159,7 @@ const response = await auth.api.signInEmail({
asResponse: true
})
```
s
### TOTP
TOTP (Time-Based One-Time Password) is an algorithm that generates a unique password for each login attempt using time as a counter. Every fixed interval (Better Auth defaults to 30 seconds), a new password is generated. This addresses several issues with traditional passwords: they can be forgotten, stolen, or guessed. OTPs solve some of these problems, but their delivery via SMS or email can be unreliable (or even risky, considering it opens new attack vectors).
@@ -438,4 +438,4 @@ const authClient = createAuthClient({
**Options**
`onTwoFactorRedirect`: A callback that will be called when the user needs to verify their 2FA code. This can be used to redirect the user to the 2FA page.
`onTwoFactorRedirect`: A callback that will be called when the user needs to verify their 2FA code. This can be used to redirect the user to the 2FA page.