Repository navigation
v0.2.0 Alpha - Universal Handler, Sessions, React Provider & Security Suite
🌟 ZeroAuth v0.2.0 Alpha Release
We are proud to release ZeroAuth v0.2.0 Alpha, bringing the self-hosted Passkeys & WebAuthn engine to full framework readiness with sessions, universal HTTP routing, and complete React state management!
🚀 What's New in Alpha
-
🌐 Universal Web Standard Handler (\createZeroAuthHandler):
- Zero-boilerplate integration with Next.js App Router, Hono, SvelteKit, Astro, Bun, and Node.js.
- Built on standard Fetch API \Request\ -> \Response\ with automatic cookie handling.
-
🔐 Cryptographic Session Manager (\SessionManager):
- Secure opaque session tokens with sliding expiration and persistent storage across SQLite and In-Memory adapters.
- Automatic revocation on logout and automated session pruning.
-
⚛️ Full React Authentication Provider (<ZeroAuthProvider>\ & \useZeroAuth()):
- Centralized authentication context in @zeroauth/react\ providing global reactive \user, \isAuthenticated, \login(),
egister(), and \logout().
- Centralized authentication context in @zeroauth/react\ providing global reactive \user, \isAuthenticated, \login(),
-
🛡️ Standardized Client Errors (\ZeroAuthClientError):
- Normalized browser DOMExceptions to friendly error codes (\USER_CANCELLED, \TIMEOUT, \NOT_SUPPORTED, \INVALID_STATE).
-
🧪 Comprehensive Security & Edge Case Test Suite:
- 20 unit and integration tests passing with 100% success rate:
- Anti-Phishing origin validation
- Anti-Replay challenge binding
- Cloned authenticator detection via counter validation
- CBOR decoding boundary and truncation resilience
- 20 unit and integration tests passing with 100% success rate:
-
🪶 Ultra-compact Core:
- Maintained under the strict < 1,500 LOC rule (@zeroauth/core\ at only 738 LOC) with zero external dependencies.
💖 Support Ongoing Development
ZeroAuth is built for indie hackers, developers, and open-source advocates.
Support the project:
- GitHub Sponsors: https://github.com/sponsors/MRJonam91
- Ko-fi: https://ko-fi.com/mrjonam
- Buy Me a Coffee: https://buymeacoffee.com/mrjonam
- PayPal Direct: https://paypal.me/manorollo
💼 Commercial Licensing & IP Acquisition
Dual-licensed under GNU AGPLv3 and Commercial Proprietary License. For proprietary SaaS, enterprise licensing, or full IP acquisition inquiries: https://github.com/MRJonam91