Skip to main content

If you are using our backend SDK that is lesser than the following versions, please visit the older documentation link here.

Twilio configuration

Using this method, you can:

  • Send emails using your own domain
  • Optionally customise the default email templates and subject.
import supertokens from "supertokens-node";
import Passwordless from "supertokens-node/recipe/passwordless";
import Session from "supertokens-node/recipe/session";
import { TwilioService } from "supertokens-node/recipe/passwordless/smsdelivery";

appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
recipeList: [
smsDelivery: {
service: new TwilioService({
twilioSettings: {
accountSid: "...",
authToken: "...",
opts: {
// optionally extra config to pass to Twilio client

// give either from or messagingServiceSid
from: "...",
messagingServiceSid: "...",

To learn about how to customise the SMS templates, please see the next section.

Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI