Layer 227
AuthFinishPasskeyLogin
Complete login with a passkey over an unauthenticated connection, see here for more info.
method
Users
auth.finishPasskeyLogin#9857ad07 flags:# credential:InputPasskeyCredential from_dc_id:flags.0?int from_auth_key_id:flags.0?long = auth.Authorization;
Parameters
| Name | Type | Description |
|---|---|---|
| Credential | InputPasskeyCredential | Passkey assertion result. |
| FromDcId | flags .0? int | DC ID used for the initial auth. init Passkey Login request; set only if the user's DC is different from the DC used for the initial auth. init Passkey Login. |
| FromAuthKeyId | flags .0? long | Auth key ID for the connection to from_dc_id (use the permanent auth key ID if PFS is enabled); set only if the user's DC is different from the DC used for the initial auth. init Passkey Login. |
Returns
auth.AuthorizationGogram Example
// AuthFinishPasskeyLogin - positional arguments result, err := client.AuthFinishPasskeyLogin(&tg.InputPasskeyCredential{}, nil, nil) if err != nil { // handle error } // result is *tg.AuthAuthorization
Possible Errors
| Code | Type | Description |
|---|---|---|
| 500 | AUTH_RESTART | Restart the authorization process. |
| 400 | CREDENTIAL_INVALID | The specified credential is invalid. |
| 500 | PASSKEY_AUTH_RESTART | |
| 400 | PASSKEY_ORIGIN_MISMATCH | Third-party clients currently don't support passkeys even when changing the origin. |