Skip to content

setAuthPhoneNumber

Sahri Riza Umami edited this page Sep 17, 2017 · 2 revisions

Sets user's phone number and sends authentication code to the user.
Works only when getAuthState returns authStateWaitPhoneNumber.
If phone number is not recognized or another error has happened, returns an error.
Otherwise returns authStateWaitCode.

setAuthPhoneNumber(phone_number, allow_flash_call, is_current_phone_number)
Field Type Description
phone_number string User's phone number in any reasonable format
allow_flash_call Bool Pass True, if code can be sent via flash call to the specified phone number
is_current_phone_number Bool Pass true, if the phone number is used on the current device. Ignored if allow_flash_call is False

Frequently Asked Questions
The Functions

Clone this wiki locally