Skip to content

Commit c82a8d7

Browse files
Removed jwt_optional import from jwt_extended
1 parent 084f713 commit c82a8d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/src/resources/dashboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from flask_restful import Resource
2-
from flask_jwt_extended import jwt_optional, get_jwt_identity
2+
from flask_jwt_extended import jwt_required, get_jwt_identity
33

44
from src.libs.strings import gettext
55

66

77
class Dashboard(Resource):
88
@classmethod
9-
@jwt_optional
9+
@jwt_required(optional=True)
1010
def get(cls):
1111
user_id = get_jwt_identity()
1212
if user_id:

0 commit comments

Comments
 (0)