OpenSourceFellows / amplify

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

Sholakush360 branch #987

Open sholakush360 opened 1 month ago

sholakush360 commented 1 month ago
  1. Limit Environment Variable Exposure: Loading Twilio credentials only when needed (inside the sendSMS function) will reduce unnecessary exposure, as they are not globally available.

  2. Scoped Access: Adding a middleware function like roleCheck ensures that only users with specific roles (e.g., admin) can send SMS, restricting unauthorized access.

These changes improve both security and role-based functionality in the app

github-actions[bot] commented 1 month ago

emote