Skip to main content

auth.sentCodeTypeFirebaseSms

An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation ».

type tg.AuthSentCodeTypeFirebaseSMS struct { /* ... */ }

Implements auth.SentCodeType.

Fields​

NameTypeRequiredDescription
Nonce[]byte—On Android, the nonce to be used as described in the auth documentation »
PlayIntegrityProjectIDint64—Google Play Integrity project ID
PlayIntegrityNonce[]byte—Play Integrity API nonce
Receiptstring—On iOS, must be compared with the receipt extracted from the received push notification.
PushTimeoutint—On iOS: if a push notification with the ios_push_secret isn't received within push_timeout seconds, the next_type authentication method must be used, with auth resendCode.
LengthintyesLength of the code that will be delivered.

References​