FinishPasskeyLoginRequest
Both users and bots may be able to use this request. See code examples.
---functions--- auth.finishPasskeyLogin#9857ad07 flags:# credential:InputPasskeyCredential from_dc_id:flags.0?int from_auth_key_id:flags.0?long = auth.Authorization
Returns
| auth.Authorization |
This type can be an instance of either:
| Authorization | AuthorizationSignUpRequired |
Parameters
| credential | InputPasskeyCredential | |
| from_dc_id | int | This argument defaults to None and can be omitted. |
| from_auth_key_id | long | This argument defaults to None and can be omitted. |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.auth.FinishPasskeyLoginRequest(
credential=types.InputPasskeyCredentialPublicKey(
id='some string here',
raw_id='some string here',
response=types.InputPasskeyResponseRegister(
client_data=types.DataJSON(
data='some string here'
),
attestation_data=b'arbitrary\x7f data \xfa here'
)
),
from_dc_id=42,
from_auth_key_id=-12398745604826
))
print(result.stringify())