Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update authentication.js from the AppSec Hack Pod #981

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JesseKagumu
Copy link

Consistent Response Format: Changed res.send(true) to res.status(200).json({ authenticated: true }) for better structure and extensibility.

HTTP Status Code: Explicitly added status(200) to make sure the response is properly handled by clients expecting HTTP status codes.

Maintained the Principle of Least Privilege

Consistent Response Format: Changed res.send(true) to res.status(200).json({ authenticated: true }) for better structure and extensibility.

HTTP Status Code: Explicitly added status(200) to make sure the response is properly handled by clients expecting HTTP status codes.

Maintained the Principle of Least Privilege
Copy link

emote

Copy link

Hello there, thanks for opening your first Pull Request. Someone will review it soon.

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

Successfully merging this pull request may close these issues.

1 participant