api.recoverPassword()
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up
Parameters
RecoverPasswordParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
recoveryCode | string | Recovery code to check |
newPassword | string | New password of the user; may be empty to remove the password |
newHint | string | New password hint; may be empty |
Returns
ApiResponse interface:interface ApiResponse {
_: 'recoverPassword' | 'error'
airgram: Airgram
request: {
method: 'recoverPassword'
params: RecoverPasswordParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}