=== apFreepass SMS Connector for Twilio ===
Contributors: artistpromusic
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send apFreepass sign-in codes through your own Twilio account.

== Description ==

This optional connector sends the phone number and sign-in message to Twilio when an existing user requests an SMS sign-in code. It requires apFreepass and a separately configured Twilio account. Twilio has its own terms, privacy policy, sender approval requirements and charges. See https://www.twilio.com/legal/privacy and https://www.twilio.com/docs/messaging/api/message-resource.

The connector only sends apFreepass sign-in codes. It does not handle bulk messages, subscriber lists, incoming SMS, or delivery receipts. It never stores credentials in WordPress settings. An administrator must provide the Twilio account SID, API key SID and secret or an account authentication token, and approved sender in server configuration. Without complete configuration, the connector does not enable SMS sign-in. A Twilio response accepting a message is not proof that it arrived on a phone.

== Installation ==

1. Install apFreepass and this connector.
2. Create a Twilio API key for your own account and configure an approved sending number or Messaging Service. Trial accounts may require recipient verification.
3. Set APFP_TWILIO_ACCOUNT_SID and APFP_TWILIO_SENDER plus either APFP_TWILIO_API_KEY_SID and APFP_TWILIO_API_KEY_SECRET, or APFP_TWILIO_AUTH_TOKEN, in server configuration before WordPress loads. The sender must be an international E.164 number or a Messaging Service SID.
4. Visit Settings > apFreepass SMS to confirm configuration is detected. Enable SMS on that screen and test with a phone you control while maintaining another administrator login method.

Do not paste credentials into a page or share them in support messages. Your server administrator can configure constants outside the web root. Keep HTTPS and certificate verification enabled. Set appropriate permissions on files containing secrets.
