--- title: checkAuthPassword description: Checks password for correctness. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success --- ## Method: checkAuthPassword [Back to methods index](index.md) YOU CANNOT USE THIS METHOD IN MADELINEPROTO Checks password for correctness. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success ### Params: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |password|[string](../types/string.md) | Yes|Password to check| ### Return type: [AuthState](../types/AuthState.md)