def load_cfg(path):
    from flask import json, current_app

    f = open(path, 'r')
    data = json.load(f)

    current_app.config["MAP"] = data["Map"]
    current_app.config["DATABASE"] = data["Database"]
    for cfg_name in data["Flask"]:
        current_app.config[cfg_name] = data["Flask"][cfg_name]

@@ -52,16 +52,61 @@
 rent_app
+%0A    from datetime import datetime, timedelta
 %0A%0A    f 
@@ -281,16 +281,270 @@
 lask%22%5D:%0A
+        if cfg_name == %22token_life%22:%0A            t = datetime.strptime(data%5B%22Flask%22%5D%5Bcfg_name%5D,%22%25H:%25M:%25S%22)%0A            delta = timedelta(hours=t.hour, minutes=t.minute, seconds=t.second)%0A            current_app.config%5Bcfg_name%5D = delta%0A        else:%0A    
         

Add token lifetime in global config