Skip to content

Commit

Permalink
Removed jwt_optional import from jwt_extended
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedmujtabaraza committed Aug 31, 2021
1 parent 084f713 commit c82a8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/resources/dashboard.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit c82a8d7

Please sign in to comment.