How to configure JWT to work with cookies?

I have a Django application that functions as an API. Currently, it can generate access and refresh JWT tokens and save these tokens as cookies. My problem arises when verifying these tokens in other endpoints. Even though they are being sent correctly, authentication fails. It would be too much information to explain here, but I customized the user class and configured it to use JWT. I appreciate any help, as I'm not sure what to do. When I try to access an endpoint that requires authentication with a token, I receive the message 'Authentication credentials were not provided' and get a 401 error in the response. I believe it could be an issue with the parent class, maybe a method that wasn't overridden but should have been. Here's the repository of the project, which is a small-scale study/test project: https://github.com/MasterTJ123/servant_rpg_back

Вернуться на верх