Two Factor Authentication
=========================

.. _TwoFaInfo:

TwoFaInfo
---------

   TBD

.. code-block:: json

 message TwoFaInfo {
  TwoFaType two_fa_type = 1;
  string tan = 2;
  optional string tan_id = 3;
 }

+-----------------+---------------+----------------------------------+
| Field           | Type          | Description                      |
+=================+===============+==================================+
| ``two_fa_type`` | ``TwoFaType`` | See :ref:`TwoFaType <TwoFaType>` |
+-----------------+---------------+----------------------------------+
| ``tan``         | ``string``    |                                  |
+-----------------+---------------+----------------------------------+
| ``tan_id``      | ``string``    | **Optional.**                    |
+-----------------+---------------+----------------------------------+

.. _TwoFaRequired:

TwoFaRequired
-------------

   TBD

.. code-block:: json

 message TwoFaRequired {
  bool required = 1;
  TwoFaType two_fa_type = 2;
  optional string tan_send_address = 3;
  optional string tan_id = 4;
  optional uint32 message_id = 5;
 }

+----------------------+---------------+----------------------------------+
| Field                | Type          | Description                      |
+======================+===============+==================================+
| ``required``         | ``bool``      |                                  |
+----------------------+---------------+----------------------------------+
| ``two_fa_type``      | ``TwoFaType`` | See :ref:`TwoFaType <TwoFaType>` |
+----------------------+---------------+----------------------------------+
| ``tan_send_address`` | ``string``    | **Optional.**                    |
+----------------------+---------------+----------------------------------+
| ``tan_id``           | ``string``    | **Optional.**                    |
+----------------------+---------------+----------------------------------+
| ``message_id``       | ``uint32``    | **Optional.**                    |
+----------------------+---------------+----------------------------------+