auth.requestPasswordRecovery
Request recovery code of a 2FA password, only for accounts with a recovery email configured.
func (c *Client) AuthRequestPasswordRecovery(ctx context.Context) (*AuthPasswordRecovery, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AuthRequestPasswordRecovery(ctx)
if err != nil {
return err
}
_ = res // *AuthPasswordRecovery
return nil
})
Parameters
This method takes no parameters.
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PASSWORD_EMPTY | The provided password is empty. |
| 400 | PASSWORD_RECOVERY_NA | No email was set, can't recover password via email. |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.requestPasswordRecovery#d897bc66