Hi, I'm new to Django. When I try to generate a login token, I receive
these errors:
json
CopyEdit
{"detail": "Authentication credentials were not provided."} {"error_short":
"Module is not Assigned", "status": "failed"}
Any help resolving these issues would be appreciated. Thanks!
On Saturda
while working inside the project I getting the error for generating the
token. the error was shown {
"detail": "Authentication credentials were not provided."
}
how to fix this error to get the token from the login api of the website
--
You received this message because you are subscribed t
Hi Balaji,
Make sure you are correctly sending credentials (e.g., username and
password) to the login endpoint. Typically, the request should be something
like:
curl -X POST "https://yourapi.com/api/login/"; \
-H "Content-Type: application/json" \
-d '{"username": "username", "password":