We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084f713 commit c82a8d7Copy full SHA for c82a8d7
backend/src/resources/dashboard.py
@@ -1,12 +1,12 @@
1
from flask_restful import Resource
2
-from flask_jwt_extended import jwt_optional, get_jwt_identity
+from flask_jwt_extended import jwt_required, get_jwt_identity
3
4
from src.libs.strings import gettext
5
6
7
class Dashboard(Resource):
8
@classmethod
9
- @jwt_optional
+ @jwt_required(optional=True)
10
def get(cls):
11
user_id = get_jwt_identity()
12
if user_id:
0 commit comments