auth

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SKEW = time.Second * 5

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(conf AuthParams, c *api.Client) (*authenticationService, error)

Types

type AuthParams

type AuthParams struct {
	ProjectID           string
	PublicKey           string
	SessionJWTViaCookie bool
	CookieDomain        string
	CookieSameSite      http.SameSite
}

type Masked added in v1.1.0

type Masked interface {
	GetMasked() string
}

type MaskedEmailRes added in v1.1.0

type MaskedEmailRes struct {
	MaskedEmail string `json:"maskedEmail,omitempty"` // Masked email to which the message was sent
}

func (*MaskedEmailRes) GetMasked added in v1.1.0

func (mer *MaskedEmailRes) GetMasked() string

type MaskedPhoneRes added in v1.1.0

type MaskedPhoneRes struct {
	MaskedPhone string `json:"maskedPhone,omitempty"` // Masked phone to which the message was sent
}

func (*MaskedPhoneRes) GetMasked added in v1.1.0

func (mer *MaskedPhoneRes) GetMasked() string

Jump to

Keyboard shortcuts

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