A WebSocket wrapper for the Hive Authentication Services (HAS) infrastructure, version 1.0.0, actively maintained. It abstracts WebSocket connection management and event handling, providing a promise-based API for authentication, transaction broadcasting, and challenge signing on the Hive blockchain. Key differentiators: eliminates low-level WebSocket code, handles token expiry automatically, supports configurable host and PKSA encryption. Stable API with default configuration, suitable for Hive dApps needing HAS integration.
npm install hive-auth-wrapperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Authentication and transaction broadcast using Hive Auth Wrapper
Implement custom retry logic in your error handler.
Use token and expire fields instead of key.
Set host in setOptions() if using a different server.
Use 'import HAS from "hive-auth-wrapper"' instead of 'import { HAS } from "hive-auth-wrapper"'.Check network connectivity and verify the host URL in setOptions().
Check auth.expire before using token and call authenticate() if expired.