From c82a8d75375069b15e0b827608209bfacb67cde7 Mon Sep 17 00:00:00 2001 From: mdmujtabaraza <45493966+mdmujtabaraza@users.noreply.github.com> Date: Tue, 31 Aug 2021 18:35:22 +0530 Subject: [PATCH] Removed jwt_optional import from jwt_extended --- backend/src/resources/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/resources/dashboard.py b/backend/src/resources/dashboard.py index 12903c0..1b932d8 100644 --- a/backend/src/resources/dashboard.py +++ b/backend/src/resources/dashboard.py @@ -1,12 +1,12 @@ from flask_restful import Resource -from flask_jwt_extended import jwt_optional, get_jwt_identity +from flask_jwt_extended import jwt_required, get_jwt_identity from src.libs.strings import gettext class Dashboard(Resource): @classmethod - @jwt_optional + @jwt_required(optional=True) def get(cls): user_id = get_jwt_identity() if user_id: