react-use-auth

JSON →
library 2.1.0-14 ·javascript
verified May 9, 2026

React hook for adding authentication to apps with minimal setup. Current stable version 2.0.0 (August 2021) with 2.1.0-14 as prerelease. Supports Auth0, Netlify Identity, and Firebase. Key differentiator: uses XState state machine under the hood, handles SSR, and provides a declarative AuthConfig component. Release cadence is irregular; v2 introduced provider-specific imports to reduce bundle size. Peer dependencies must be installed separately (auth0-js, netlify-identity-widget, or firebase). Ships TypeScript definitions.

total hits 9
actors 3 distinct systems
last hit 9d ago AhrefsBot
MetaBot
3
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇬🇧 United Kingdom · PT