stytchapi

package
v5.4.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	CryptoWallets *cryptowallet.Client
	MagicLinks    *magiclink.Client
	OAuth         *oauth.Client
	OTPs          *otp.Client
	Sessions      *session.Client
	TOTPs         *totp.Client
	Users         *user.Client
	WebAuthn      *webauthn.Client
	// contains filtered or unexported fields
}

func NewAPIClient

func NewAPIClient(env config.Env, projectID string, secret string, opts ...Option) (*API, error)

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

type Option

type Option func(*API)

func WithBaseURI added in v5.4.0

func WithBaseURI(uri string) Option

WithBaseURI overrides the client base URI determined by the environment.

The value derived from stytch.EnvLive or stytch.EnvTest is already correct for production use in the Live or Test environment, respectively. This is implemented to make it easier to use this client to access internal development versions of the API.

func WithLogger

func WithLogger(logger Logger) Option

Jump to

Keyboard shortcuts

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