:py:mod:`net.token` =================== .. py:module:: net.token .. autoapi-nested-parse:: JSON Web Token utilities. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: net.token.get_payload net.token.is_valid Attributes ~~~~~~~~~~ .. autoapisummary:: net.token.JWT_PARTS_COUNT .. py:data:: JWT_PARTS_COUNT :value: 2 .. 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