Auth Service
============

.. _AccessTokenData: 

AccessTokenData
---------------

Auth-token and refresh-token data.

After first authorization, the returned value contains an access token and refresh-token (app only).

Additionally, there is also information about the servers.

.. code-block:: json

 message AccessTokenData {
  string access_token = 1;
  string token_type = 2;
  uint64 expires = 3;
  string refresh_token = 4;
  string scope = 5;
  string server_version = 6;
  string server_commit_hash = 7;
  string json_api_version = 8;
  string json_api_commit_hash = 9;
 }

.. list-table::
   :widths: 20 25 55
   :header-rows: 1

   * - Field
     - Type
     - Description
   * - ``access_token``
     - ``string``
     -
   * - ``token_type``
     - ``string``
     -
   * - ``expires``
     - ``uint64``
     -
   * - ``refresh_token``
     - ``string``
     -
   * - ``scope``
     - ``string``
     -
   * - ``server_version``
     - ``string``
     -
   * - ``server_commit_hash``
     - ``string``
     -
   * - ``json_api_version``
     - ``string``
     -
   * - ``json_api_commit_hash``
     - ``string``
     -

.. _DeactivatedAccountInfo:

DeactivatedAccountInfo
----------------------

Info about deactivated accounts.

.. code-block:: json

 message DeactivatedAccountInfo {
  bool is_account_deactivated = 1;
  repeated string enterprise_admins = 2;
  string product = 3;
 }

.. list-table::
   :widths: 20 25 55
   :header-rows: 1

   * - Field
     - Type
     - Description
   * - ``is_account_deactivated``
     - ``boolean``
     -
   * - ``enterprise_admins``
     - ``array of string``
     - 
   * - ``product``
     - ``string``
     -