def set_reserved_attribute(self, token, attribute, value):
        if attribute in self.RESERVED_NAMES and value:
            # if user define "exp" or "nbf" argument, than calculate timestamp
            if attribute in ['exp', 'nbf']:
                current_time_in_seconds = int(time.time())
                expired_timestamp = current_time_in_seconds + value
                token.update({attribute: expired_timestamp})
            # for any other JSON Web Token attributes just set value
            else:
                token[attribute] = value
Returns a dictionary of all errors within a document
dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/token/managers.py/JSONWebTokenManager.set_reserved_attribute--crossover with--dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/errors.py/ValidationError.to_dict