save track logs to logged in user

+ rewrite migration collection
+ prevent logging invalid track logs
+ add jsoni
This commit is contained in:
cwilvx
2024-05-18 17:16:07 +03:00
parent f8f07c2116
commit 30768dd5d6
10 changed files with 160 additions and 42 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ def create_api():
app.config["JWT_TOKEN_LOCATION"] = ["cookies"]
app.config["JWT_COOKIE_CSRF_PROTECT"] = False
app.config["JWT_SESSION_COOKIE"] = False
app.config["JWT_ACCESS_TOKEN_EXPIRES"] = int(datetime.timedelta(days=30).total_seconds())
jwt_expiry = int(datetime.timedelta(days=30).total_seconds())
app.config["JWT_ACCESS_TOKEN_EXPIRES"] = jwt_expiry
# CORS
CORS(app, origins="*", supports_credentials=True)