curl--location--request POST 'http://localhost:3000/graphql' \
--header'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldjEiLCJ1c2VySWQiOjQsInVzZXJfYXNzaWdubWVudCI6ImFkbWluIiwiaWF0IjoxNzI3MzYxMDk0LCJleHAiOjE3MjczNjQ2OTR9.Zckr61S0kHq7ZogL6aI7FTeF45rSMqZM74YQ1_MAqoA'
Responses
🟢200Success
application/json
Body
Example
{"errors":[{"message":"Invalid credentials","locations":[{"line":2,"column":3}],"path":["login"],"extensions":{"code":"UNAUTHENTICATED","stacktrace":["UnauthorizedException: Invalid credentials"," at AuthService.login (/home/siddharth/drive/Intern_2024_Logic_Legends/src/modules/auth/auth.service.ts:52:13)"," at processTicksAndRejections (node:internal/process/task_queues:105:5)"," at AuthResolver.login (/home/siddharth/drive/Intern_2024_Logic_Legends/src/modules/auth/auth.resolver.ts:21:30)"," at target (/home/siddharth/drive/Intern_2024_Logic_Legends/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)"," at Object.login (/home/siddharth/drive/Intern_2024_Logic_Legends/node_modules/@nestjs/core/helpers/external-proxy.js:9:24)"],"originalError":{"message":"Invalid credentials","error":"Unauthorized","statusCode":401}}}],"data":null}