@stytch/headless-client
v0.1.2
Published
This package contains interfaces and implementations for the Stytch Javascript SDK API Clients and services.
Downloads
38
Maintainers
Keywords
Readme
Stytch Javascript SDK - Headless Client
This package contains interfaces and implementations for the Stytch Javascript SDK API Clients and services.
The API Clients are each associated with a Stytch product (EML, OTP, etc), and act as proxies to the Stytch API. The API client exposes methods with strongly typed parameters and response types. Developers use these methods to interact with the Stytch API, and know what data shapes are expected in requesets and responses.
The services (PKCEManager, SessionManager, etc) are used to build the StytchClient objects that each specific SDK exposes to end users. These services control Stytch SDK logic such as session refreshes, telemetry, persistent storage, and coordination of data/state across all API Clients and services.