def _encode_data(self, data):
        data = json.dumps(data).encode('utf-8')
        return b64encode(data).decode('utf-8')
Encode passed data to base64.
dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/token/managers.py/JSONWebTokenManager._encode_data