@siymo/otp-core
v2.1.0
Published
Shared types, error classes, and WebSocket event parser for the Siymo OTP SDKs
Readme
@siymo/otp-core
Shared internal types, error classes, and WebSocket event parser used by
@siymo/otp-server and @siymo/otp-browser.
You normally won't import this directly — the relevant types and errors are re-exported from the two consumer packages. Import this only when you're building tooling that needs the WebSocket parser or shared type definitions without pulling in either consumer SDK.
Exports
- Error classes:
SiymoOtpError,SiymoOtpApiError,SiymoOtpConfigurationError,SiymoOtpWebSocketError,SiymoOtpPhoneMismatchError - Frame helpers:
parseSocketEvent,subscribe - Types:
OtpSessionEvent,InitiateVoiceRequest/Response,VerifyOtpRequest/Response,ConfirmVerificationRequest/Response, etc.
