Request an SMS code via Firebase.
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
auth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
phone_number | string | Phone number |
phone_code_hash | string | Phone code hash returned by auth.sendCode |
safety_net_token | flags.0?string | On Android, a JWS object obtained as described in the auth documentation » |
play_integrity_token | flags.2?string | On Android, an object obtained as described in the auth documentation » |
ios_push_secret | flags.1?string | Secret token received via an apple push notification |
Code | Type | Description |
---|---|---|
400 | PHONE_CODE_EMPTY | phone_code is missing. |
400 | PHONE_NUMBER_INVALID | The phone number is invalid. |
Send the verification code for login
How to register a user's phone to start using the API.