update simple_jwt

This commit is contained in:
MacRimi
2026-03-15 20:00:10 +01:00
parent 513774bb7b
commit b7203b8219
5 changed files with 162 additions and 4 deletions

View File

@@ -29,7 +29,12 @@ from datetime import datetime, timedelta
from functools import wraps
from pathlib import Path
import jwt
# Try PyJWT first, fall back to our simple implementation (no cryptography dependency)
try:
import jwt
except ImportError:
import simple_jwt as jwt
import psutil
from flask import Flask, jsonify, request, send_file, send_from_directory, Response
from flask_cors import CORS