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

Sholakush360 branch #987

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Sholakush360 branch #987

wants to merge 4 commits into from

Conversation

sholakush360
Copy link

  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

Copy link

emote

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