Skip to content

seven-io/logto

Repository files navigation

seven logo

seven SMS Connector for Logto

Official Logto connector for sending passcode SMS via the seven gateway.

MIT License Logto connector TypeScript runtime


Features

  • Passwordless Sign-In - Wire seven SMS into Logto's passcode sign-in experience
  • Per-Use-Case Templates - Distinct message templates for Register, SignIn and Test
  • Custom Sender ID - Override the displayed sender via the from field

Prerequisites

Configuration

In the Logto admin, add a new SMS connector and pick seven. Paste the JSON config below and edit the placeholders:

{
  "apiKey": "<your-api-key>",
  "from":   "<your-sender-id>",
  "templates": [
    {
      "content":   "<register template - keep {{code}} placeholder>",
      "usageType": "Register"
    },
    {
      "content":   "<sign-in template - keep {{code}} placeholder>",
      "usageType": "SignIn"
    },
    {
      "content":   "<test template - keep {{code}} placeholder>",
      "usageType": "Test"
    }
  ]
}
Field Type Description
apiKey string Your seven API key
from string Optional sender ID. Up to 11 alphanumeric or 16 numeric characters
templates Template[] One template per use case
Template field Type Allowed values
content string Free-form text. Must contain {{code}} placeholder
usageType enum string Register / SignIn / Test

Usage

  1. Click Test in the connector settings to verify your setup with a real phone number.
  2. After saving, enable the connector in the sign-in experience.

Error codes

See seven's SMS return codes for what each numeric response means.

Support

Need help? Feel free to contact us or open an issue.

License

MIT