manito42 / backend

42 Manito Backend Repository
https://42manito.com
3 stars 2 forks source link

[BUG] 로그인시 500 에러 #114

Open JuneParkCode opened 1 year ago

JuneParkCode commented 1 year ago

Describe the bug 불특정 상황에서 로그인 시 500 에러 발생

{
  "code": "invalid_grant",
  "context": "PrismaClientExceptionFilter",
  "error": {
    "code": "invalid_grant",
    "message": "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
    "name": "TokenError",
    "status": 500
  },
  "level": "error",
  "message": "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
  "stack": [
    "TokenError: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.\n    at FtStrategy.OAuth2Strategy.parseErrorResponse (/home/ubuntu/node_modules/passport-oauth2/lib/strategy.js:373:12)\n    at FtStrategy.OAuth2Strategy._createOAuthError (/home/ubuntu/node_modules/passport-oauth2/lib/strategy.js:420:16)\n    at /home/ubuntu/node_modules/passport-oauth2/lib/strategy.js:177:45\n    at /home/ubuntu/node_modules/oauth/lib/oauth2.js:191:18\n    at passBackControl (/home/ubuntu/node_modules/oauth/lib/oauth2.js:132:9)\n    at IncomingMessage.<anonymous> (/home/ubuntu/node_modules/oauth/lib/oauth2.js:157:7)\n    at IncomingMessage.emit (node:events:525:35)\n    at IncomingMessage.emit (node:domain:489:12)\n    at endReadableNT (node:internal/streams/readable:1359:12)\n    at processTicksAndRejections (node:internal/process/task_queues:82:21)"
  ],
  "status": 500,
  "timestamp": "2023-09-25T07:54:03.595Z"
}

To Reproduce

Expected behavior