Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendTwilioSms ¶
func SendTwilioSms(settings TwilioSettings, content SMSContent) error
Types ¶
type Ingredient ¶
type Ingredient struct {
IngredientInterfaceImpl SmsDeliveryInterface
}
func MakeIngredient ¶
func MakeIngredient(config TypeInputWithService) Ingredient
type PasswordlessLoginType ¶
type SMSContent ¶ added in v0.7.0
type SmsDeliveryInterface ¶
type SmsDeliveryInterface struct {
SendSms *func(input SmsType, userContext supertokens.UserContext) error
}
type SmsType ¶
type SmsType struct {
PasswordlessLogin *PasswordlessLoginType
}
type TwilioInterface ¶ added in v0.7.0
type TwilioInterface struct { SendRawSms *func(input SMSContent, userContext supertokens.UserContext) error GetContent *func(input SmsType, userContext supertokens.UserContext) (SMSContent, error) }
type TwilioServiceConfig ¶
type TwilioServiceConfig struct { Settings TwilioSettings Override func(originalImplementation TwilioInterface) TwilioInterface }
func NormaliseTwilioServiceConfig ¶ added in v0.7.0
func NormaliseTwilioServiceConfig(input TwilioServiceConfig) (TwilioServiceConfig, error)
type TwilioSettings ¶ added in v0.7.0
type TypeInput ¶
type TypeInput struct { Service *SmsDeliveryInterface Override func(originalImplementation SmsDeliveryInterface) SmsDeliveryInterface }
type TypeInputWithService ¶
type TypeInputWithService struct { Service SmsDeliveryInterface Override func(originalImplementation SmsDeliveryInterface) SmsDeliveryInterface }
Click to show internal directories.
Click to hide internal directories.