website icon indicating copy to clipboard operation
website copied to clipboard

Issue with Database Queries in Authenticated Django API Calls Despite JWT Verification

Open anusreesoumya opened this issue 1 year ago • 0 comments

Hello, community! I've encountered an unexpected behavior in my Django project. Each time an authorized API call is made using a bearer token (specifically a simple JWT), a database query is executed to retrieve user details, even though JWT Authentication is supposed to eliminate the need for database validation. Could someone help me understand the reason behind these database queries and suggest a solution to avoid them while still ensuring proper authentication through JWT? Your insights would be greatly appreciated!

anusreesoumya avatar Nov 13 '23 15:11 anusreesoumya