net.token
=========

.. py:module:: net.token


Functions
---------

.. autoapisummary::

   net.token.get_payload
   net.token.is_valid


Module Contents
---------------

.. py:function:: get_payload(token: str) -> dict

   Get payload from a JSON Web Token.

   :param token: token
   :return: decoded payload


.. py:function:: is_valid(token: str) -> bool

   Return true if the token is still valid, false otherwise.

   :param token: full token
   :return: return true if the token is still valid, false otherwise


