Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
AccountSID string
AuthToken string
VerifyServiceSID string
AppName string // App name shown in SMS messages (e.g., "MyApp Login")
Client *http.Client
}
Sender implements SMS sending using Twilio's Verify API. Uses custom codes generated by authkit for consistency with email verification.
func New ¶
New creates a Twilio SMS sender. All parameters are required. appName is used in SMS messages (e.g., "MyApp Login" or "MyApp Verification")
func (*Sender) SendLoginCode ¶
SendLoginCode sends a 2FA login code via Twilio Verify API
Click to show internal directories.
Click to hide internal directories.