Skip to main content
Both facade packages re-export the SDK’s catchable error classes as values, so you can narrow with instanceof. React Native additionally exports AuthSessionCancelledError, thrown when the native signing session is dismissed before it completes.

Not exported: MissingRpIdError

MissingRpIdError is deliberately not re-exported from either facade. It is a fail-fast configuration error, an unset or empty rpId, not a condition to catch at runtime. Fix the configuration instead.

Pairing and redirect errors

The pairing and channel subpaths throw their own errors during device pairing and native redirects: CameraUnavailableError and PopupBlockedError (from @avokjs/core/helpers and @avokjs/core/qr) and RedirectPayloadTooLargeError (from @avokjs/core/channel). Import them from the subpath you use.