OpenSourceFellows / amplify

Open Source Fellow Sandbox
https://amplify-app-production.herokuapp.com/
MIT License
88 stars 63 forks source link

Update authentication.js from the AppSec Hack Pod #981

Open JesseKagumu opened 1 month ago

JesseKagumu commented 1 month ago

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

github-actions[bot] commented 1 month ago

emote

github-actions[bot] commented 1 month ago

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