2018-04-01 13:19:25 +02:00
---
title: recoverAuthPassword
description: Recovers password with recovery code sent to email. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
## Method: recoverAuthPassword
[Back to methods index ](index.md )
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Recovers password with recovery code sent to email. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success
### Parameters:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|recovery\_code|[string](../types/string.md) | Yes|Recovery code to check|
### Return type: [AuthState](../types/AuthState.md)