smsdelivery

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 24

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
}

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