Skip to content

Conversation

@beetles-ai
Copy link

@beetles-ai beetles-ai bot commented Oct 4, 2025

The catch block now sends a 500 status code with a JSON response indicating that authentication has failed. This provides the client with feedback about the authentication status.Changes made:

  • Replaced: } catch (error) { console.log(error); }
  • With: } catch (error) { console.error(error); return res.status(500).json({ success: false, message: "Auth...

Closes: #72

File: middlewares/auth.js
Branch: fix/1759582615789-zjcvrnmain

@vercel
Copy link

vercel bot commented Oct 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
question-bank-api Ready Ready Preview Comment Oct 4, 2025 0:57am

@coderabbitai
Copy link

coderabbitai bot commented Oct 4, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant