79806175

Date: 2025-10-31 20:11:52
Score: 3
Natty:
Report link

The core issue with your JWT decorator is the missing essential @ symbol. You are using jwt_required instead of @jwt_required() with a leading @ and following parentheses. Note that in class-based views or if you want to have more control over the authentication flow, it is recommended to use verify_jwt_in_request because it supports better error handling and ensures get_jwt_identity will never return None since it validates the token before it tries to extract its identity.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @jwt_required
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raghav Thakur