--- title: checkChangePhoneNumberCode description: Checks authentication code sent to change user's phone number. Returns authStateOk on success image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: checkChangePhoneNumberCode [Back to methods index](index.md) YOU CANNOT USE THIS METHOD IN MADELINEPROTO Checks authentication code sent to change user's phone number. Returns authStateOk on success ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| |code|[string](../types/string.md) | Verification code from SMS, phone call or flash call | Yes| ### Return type: [AuthState](../types/AuthState.md)