smsdelivery

package
v0.17.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 31

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 PasswordlessLoginType struct {
	PhoneNumber      string
	UserInputCode    *string
	UrlWithLinkCode  *string
	CodeLifetime     uint64
	PreAuthSessionId string
	TenantId         string
}

type SMSContent added in v0.7.0

type SMSContent struct {
	Body          string
	ToPhoneNumber string
}

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 TwilioSettings struct {
	AccountSid          string
	AuthToken           string
	From                string
	MessagingServiceSid string
}

type TypeInput

type TypeInput struct {
	Service  *SmsDeliveryInterface
	Override func(originalImplementation SmsDeliveryInterface) SmsDeliveryInterface
}

type TypeInputWithService

type TypeInputWithService struct {
	Service  SmsDeliveryInterface
	Override func(originalImplementation SmsDeliveryInterface) SmsDeliveryInterface
}

type User

type User struct {
	ID          string
	PhoneNumber string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL