🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Support PyJWT 2.10
TECdac76148c084
diff --git a/backend/auth_utils.py b/backend/auth_utils.pyindex 02a75e1..421bc4c 100644--- a/backend/auth_utils.py+++ b/backend/auth_utils.py@@ -16,7 +16,7 @@ def generate_token(user_id):payload = {'exp': datetime.utcnow() + current_app.config['JWT_EXPIRATION_DELTA'],'iat': datetime.utcnow(),- 'sub': user_id+ 'sub': str(user_id)}return jwt.encode(payload, current_app.config['SECRET_KEY'], algorithm='HS256')