client.auth.resetPassword
Send a password reset email.
Signature
class Client {
auth: {
resetPassword(email: string): Promise<void>
}
}
Parameters
| Name | Type | Required | Notes |
|---|---|---|---|
| string | yes | Registered email |
Examples
await bf.auth.resetPassword('alice@example.com')
Throws
| Error | Condition |
|---|---|
| API request failed |
| Network issue |
Pitfalls
- No error on unknown email — returns successfully even if the email is not registered (to prevent enumeration), though no email is sent
- Rate limited — one reset email per 60 seconds per address
See also
{auto-injected}
Tested against
{auto-injected}