Machine-readable version of this page: /method/auth.importAuthorization.md.
Logs in a user using a key transmitted from his native data-center.
auth.authorization#f6b673a4 expires:int user:User = auth.Authorization;
---functions---
auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization;
| Name | Type | Description |
|---|---|---|
| id | long | User ID |
| bytes | bytes | Authorization key |
| Code | Type | Description |
|---|---|---|
| 400 | AUTH_BYTES_INVALID | The provided authorization is invalid. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |