auth.requestFirebaseSms #

Request an SMS code via Firebase.

Layer 223

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;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
phone_numberstringPhone number
phone_code_hashstringPhone code hash returned by auth.sendCode
safety_net_tokenflags.0?stringOn Android, a JWS object obtained as described in the auth documentation »
play_integrity_tokenflags.2?stringOn Android, an object obtained as described in the auth documentation »
ios_push_secretflags.1?stringSecret token received via an apple push notification

Result #

Bool

Only users can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
400PHONE_CODE_EMPTYphone_code is missing.
400PHONE_NUMBER_INVALIDThe phone number is invalid.

auth.sendCode #

Send the verification code for login

User Authorization #

How to register a user's phone to start using the API.