{"library":"eazy-auth","type":"library","category":null,"description":"eazy-auth is a JavaScript library designed to streamline common authentication tasks within React applications that leverage Redux and Redux-Saga. Currently at version 0.7.1, it provides a 'battery-included' solution for token-based authentication, handling login, token refresh, logout, and user data management. It integrates a Redux reducer, Redux-Saga flows for side effects (like API calls and token refreshing), and React components/HOCs for UI integration, alongside `react-router-dom` for protecting routes. The package allows developers to define custom API calls for authentication, making it adaptable to various backend systems while abstracting away much of the boilerplate. Its pre-1.0.0 status suggests ongoing development, though the README presents it as a functional solution. There is also `use-eazy-auth` which provides similar functionality using React hooks without the strong Redux/Redux-Saga dependency.","language":"javascript","status":"active","version":"0.7.1","tags":["javascript","eazy","easy-auth","react","redux","authentication","redux-saga","react-auth","react-router"],"last_verified":"Wed May 27","install":[{"cmd":"npm install eazy-auth","imports":["import { makeAuthReducer } from 'eazy-auth'","import { makeAuthFlow } from 'eazy-auth'","import { login } from 'eazy-auth'","import { getAuthUser } from 'eazy-auth'","import { AuthRoute } from 'eazy-auth'"]},{"cmd":"yarn add eazy-auth","imports":[]},{"cmd":"pnpm add eazy-auth","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eazy-auth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eazy-auth/compatibility"}}