79267458

Date: 2024-12-10 08:16:33
Score: 2
Natty:
Report link

Using request.auth.get("FieldName") is indeed a cleaner and better approach if you're using a framework like Django REST Framework (DRF) with a JWT authentication package, such as SimpleJWT.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: F.Tamy