diff --git a/Server/app/__init__.py b/Server/app/__init__.py index 29a42c5..e5203dc 100644 --- a/Server/app/__init__.py +++ b/Server/app/__init__.py @@ -1,7 +1,6 @@ from flask import Flask, jsonify from jwt.exceptions import PyJWTError from flask_jwt_extended.exceptions import JWTExtendedException -from app.exception import DMSException from config import config diff --git a/Server/config.py b/Server/config.py index 2045241..a5236c9 100644 --- a/Server/config.py +++ b/Server/config.py @@ -39,6 +39,7 @@ class Config: JWT_ACCESS_TOKEN_EXPIRES = timedelta(minutes=10) JWT_REFRESH_TOKEN_EXPIRES = timedelta(weeks=2) + JWT_HEADER_NAME = "Authorization" PROPAGATE_EXCEPTIONS = True