# mjrussell/redux-auth-wrapper

A React Higher Order Component (HOC) for handling Authentication and Authorization with Routing and Redux

Repository: https://github.com/mjrussell/redux-auth-wrapper
Canonical: https://ross.abutalabs.com/products/redux-auth-wrapper
Homepage: https://mjrussell.github.io/redux-auth-wrapper
Language: JavaScript
License: MIT
License Family: permissive
Topics: react, redux, react-router, hoc, authentication
Last push: 2024-03-31T23:55:50+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3880, "days_push": 885, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2175, forks 231 (observed 2026-08-28T04:06:22.124721+00:00)

## What it is
redux-auth-wrapper is a React Higher Order Component (HOC) library for handling authentication and authorization in React + Redux applications. It decouples auth logic from components, integrating with React Router to protect routes and redirect unauthenticated or unauthorized users.

## Use cases
- protect react router routes so only logged-in users can access them
- redirect unauthenticated users to a login page and return them after login
- hide or block components based on user permissions or roles
- handle jwt-based authentication flows in a react redux app
- decouple authentication and authorization logic from ui components
- guard admin-only pages in a react + redux application

## When to choose
- you use React with Redux and React Router and want declarative route-level auth guards
- you want to keep auth/authorization logic out of your components via HOCs
- you need redirect handling for unauthenticated or unauthorized users
- you're on React >= 16.3 with react-router v4/v5 and connected-react-router

## When to avoid
- you don't use Redux or React Router in your app
- you're starting a new project and want a more actively maintained auth solution
- you need full auth backend features like token issuance or session management (this is client-side only)
- you're on React Router v6, which is not supported by this library

## Facets
- artifact type: library
- maturity: maintenance
- function: auth, authorization, routing, middleware, state-management
- domain: web-development, frontend, security, developer-tools
- platform: browser
- tags: react, redux, react-router, hoc, higher-order-component, jwt, route-protection, redirect, nodejs, javascript

## Member repositories
- mjrussell/redux-auth-wrapper (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:22.124721+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:48:56.157996+00:00, confidence not recorded.
  - readme: https://github.com/mjrussell/redux-auth-wrapper (fetched 2026-08-28T04:06:22.124721+00:00, sha eb59c349ff4d)
  - homepage: https://mjrussell.github.io/redux-auth-wrapper (fetched 2026-08-29T10:29:18.746563+00:00, sha 67a863eda440)
  - registry_npm: https://registry.npmjs.org/redux-auth-wrapper (fetched 2026-08-29T10:29:18.755341+00:00, sha c2cb3b0d75eb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
