Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-auth-kit

react-auth-kit23kMIT3.1.3TypeScript support: included

Authentication Library for React, which makes Token based auth very easy

react, auth, authentication, jwt, jsonwebtoken, token

readme

logo React Auth Kit Banner

Next Js React Query Remix React Js React Router

🔑 Authentication Library for React JS for Token Based Auth with Json Web Token(JWT) 🔑

https://authkit.arkadip.dev 🚀

Looking for a hosted alternative? Try Clerk →

Test Suites Test Suites


Introduction

React Auth Kit is a lightweight JavaScript library for React JS, which makes the implementation of Token based authentication very easy

It is production-ready, and gives you the following:

  • 📦 Very lightweight
  • 🔧 Easy to use
  • ⚛️ Build for React JS
  • ⚡ Works with Gastsby, Next JS
  • 🚀 Fast and easy to Implement
  • 🛡️ Supports Json Web Token (JWT)
  • 🔒 Secure Client Side Authentication
  • ⌨️ Highly typed and written in TypeScript

Stargazers ⭐

Stargazers over time

Hall of Fames ✨

We love our contributors! If you'd like to contribute anything from a bug-fix to a feature update, you can read our CONTRIBUTING GUIDE

Contributors

— 🔑 —

React Auth Kit is MIT License code

changelog

3.1.2 (2024-02-19)

Fixes

  • User Data Serialization: User Data cookie deserialization issue. JSON.parse error fixed
  • debugger added: Added debug=true param on the createStore to debug the entire auth flow

3.1.1 (2024-02-15)

Fixes

  • AuthProvider Type Issue: Fixed type error with Store and AuthProvider prop
  • createStore param: Robust cookieDomain and cookieSecure parameter check for cookie type

3.1.0 (2024-02-13)

🎉 Next.Js Support is there!! 🎉

Features

  • Next.Js: Added support for Next.Js.
  • @auth-kit/next: New Package for Rect Auth Kit for Next.Js

3.0.1 (2024-01-09)

Features

  • Docs: Added import statements in the reference docs.
  • Deps: Updated all the dependencies with latest once.

3.0.0 (2024-01-07)

Features

  • RxJS: Using RxJS Based Token Store for Better Performance.
  • Tree Stacking: Using Tree Stacked Codebase for smaller build
  • MonoRepo: Extendable Monorepo based Achitecture

2.12.7 (2023-09-18)

Bug Fixes

  • deps: update dependency react-router-dom to v6.16.0 (a5ceff1)

2.12.6 (2023-08-10)

Bug Fixes

  • deps: update dependency react-router-dom to v6.15.0 (1b9fdb8)

2.12.5 (2023-08-02)

Bug Fixes

  • deps: update dependency react-router-dom to v6.14.2 (47ffed5)

2.12.4 (2023-07-14)

Bug Fixes

  • deps: update dependency react-router-dom to v6.14.1 (d60aa7a)

2.12.3 (2023-06-21)

Bug Fixes

  • deps: update dependency js-cookie to v3.0.5 (c670aa5)
  • deps: update dependency react-router-dom to v6.13.0 (23518bc)

2.12.2 (2023-04-16)

Bug Fixes

  • isauthenticated: removed signout (ea58d41)

2.12.2-beta.1 (2023-04-16)

Bug Fixes

  • isauthenticated: removed signout (ea58d41)

2.12.1 (2023-04-15)

Bug Fixes

  • docs: added google cloud docs uri (7709cf4)

2.12.0 (2023-04-15)

Bug Fixes

Features

  • error: created a new error (de2a959)
  • hoc: added isAuthenticated (fd5f45a)
  • hoc: updated error to new error (6550f95)
  • hooks: added isAuthenticated (02d0f39)
  • hooks: updated error to new error (afcf0f2)
  • husky: updated hooks to executable (524ae70)
  • package.json: added new dependency (9ffcb12)
  • privateroute: updated RequireAuth (ccc8a78)
  • utils: added isAuthenticated function (ef8a357)

2.12.0-beta.1 (2023-04-15)

Bug Fixes

Features

  • error: created a new error (de2a959)
  • hoc: added isAuthenticated (fd5f45a)
  • hoc: updated error to new error (6550f95)
  • hooks: added isAuthenticated (02d0f39)
  • hooks: updated error to new error (afcf0f2)
  • husky: updated hooks to executable (524ae70)
  • package.json: added new dependency (9ffcb12)
  • privateroute: updated RequireAuth (ccc8a78)
  • utils: added isAuthenticated function (ef8a357)

2.11.0-beta.3 (2023-04-10)

Bug Fixes

Features

  • error: created a new error (de2a959)
  • hoc: added isAuthenticated (fd5f45a)
  • hoc: updated error to new error (6550f95)
  • hooks: added isAuthenticated (02d0f39)
  • hooks: updated error to new error (afcf0f2)
  • husky: updated hooks to executable (524ae70)
  • package.json: added new dependency (9ffcb12)
  • privateroute: updated RequireAuth (ccc8a78)
  • utils: added isAuthenticated function (ef8a357)

2.11.0-beta.2 (2023-04-08)

Bug Fixes

2.11.0-beta.1 (2023-04-08)

Features

2.10.1 (2023-04-05)

Bug Fixes

  • ads not visiable in pages (9442afb)

2.10.0 (2023-03-28)

Features

  • docs: added _headers file (cd94db7)

2.9.0 (2023-03-24)

Features

  • example.refresh: updated version (b6a77f0)
  • example: added axios mock in refresh (5d5cb9c)
  • example: added better refresh function (32f762b)

2.8.3 (2023-03-21)

Bug Fixes

  • tsconfig.json: removed supress index (a2a1d60)

2.8.2 (2023-02-26)

Bug Fixes

  • updated jest version to 29 (2a86a00)

2.8.1 (2023-02-25)

Bug Fixes

2.8.0 (2023-02-25)

Bug Fixes

  • removed Node 14.x support (daa3ffc)

Features

  • updated react and react-dom version to 18 (46ad886)

2.7.1 (2022-12-04)

Bug Fixes

  • update the rollup config to use new package (be69f86)
  • updated the package (9fd1310)

2.7.0 (2022-10-30)

Bug Fixes

  • docs.authdata: added description (ad5da29)
  • docs.authheader: added description (f9550fe)
  • docs.checkauth: added description (857d313)
  • docs.integration: added description (825f4fb)
  • docs.privateroute: added description (c0c7050)
  • docs.refreshtoken: added description (265b9b2)

Features

  • index description updated (1989a31)

2.6.2 (2022-10-26)

Bug Fixes

2.6.1 (2022-10-26)

Bug Fixes

  • again (349abe4)
  • authProvider: indentation (48607fd)
  • authProvider: indentation (ad4bda7)
  • commitlintConfig: code quality (6ab1fdd)
  • commitlintConfig: eslint rule (b4f1051)
  • tokenObject: added semicolons (0e8b30b)

2.6.0 (2022-10-24)

Bug Fixes

Features

  • added following table of contant (3d9a2f3)
  • added some more key feature of auth kit (dc683fc)
  • added suitable title and descriptions (831da01)
  • added tabs (8d3863f)
  • added the description for installation (40fbbce)
  • Installation MD is updated (c6213e9)
  • updated site description (64fcab2)
  • updated the sign in page (7e8dc75)

2.5.0 (2022-10-18)

Features

  • added dar theme in the theme (9937e41)

2.4.0 (2022-10-06)

Bug Fixes

Features

  • add linting scripts to package.json (333ed2d)
  • add markdownlint config (d5ad1b7)
  • add markdownlint-cli (1842346)

2.3.0 (2022-09-28)

Features

2.2.0 (2022-09-28)

Bug Fixes

Features

  • package.json: added some essential fields (e64f135)

2.1.4 (2022-09-26)

Bug Fixes

  • removed Node 12 from CI (58cb504)

2.1.3 (2022-09-26)

Bug Fixes

  • updated all occurance of .me domain (8342121)

2.1.2 (2022-09-16)

Bug Fixes

2.1.1 (2022-09-05)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.16.2 to 5.16.5 (0886f2d)

2.1.0 (2022-04-29)

Features

  • package: added react 18 in peer dep (2f0610f)

2.0.5 (2022-03-27)

Bug Fixes

  • upgrade react-router-dom from 6.2.1 to 6.2.2 (eae910f)

2.0.4 (2022-03-07)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.16.1 to 5.16.2 (1abed3c)

2.0.3 (2022-02-25)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.16.1 to 5.16.2 (356630a)

2.0.2 (2022-02-20)

Bug Fixes

  • docs: added the private route docs (60ad979)
  • docs: added the update route (3b10226)

2.0.1 (2022-02-20)

Bug Fixes

  • examples: updated examples as per needed (75f2412)

2.0.0 (2022-02-19)

Performance Improvements

  • privateRoute: updated to react router v6 (92fcde6)

BREAKING CHANGES

  • privateRoute: The PrivateRoute.tsx Option will not available for now.

Signed-off-by: Arkadip hi@arkadip.dev

1.6.13 (2022-01-17)

Bug Fixes

1.6.12 (2022-01-16)

Bug Fixes

  • upgrade react-auth-kit from 1.6.2 to 1.6.4 (5483e33)

1.6.11 (2022-01-16)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.16.0 to 5.16.1 (e050781)

1.6.10 (2022-01-15)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.16.0 to 5.16.1 (82d11d6)

1.6.9 (2021-12-28)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.1.0 to 5.16.0 (8d0756a)
  • upgrade @testing-library/jest-dom from 5.15.1 to 5.16.0 (e9953bd)

1.6.8 (2021-12-20)

Bug Fixes

  • upgrade @testing-library/react from 10.0.0 to 10.4.9 (2a8641d)

1.6.7 (2021-12-18)

Bug Fixes

  • examples/create-react-app/package.json & examples/create-react-app/package-lock.json to reduce vulnerabilities (e0081ea)

1.6.6 (2021-12-18)

Bug Fixes

  • examples/create-react-app-refresh-token/package.json & examples/create-react-app-refresh-token/package-lock.json to reduce vulnerabilities (57c87ad)

1.6.5 (2021-12-15)

Bug Fixes

  • upgrade @testing-library/jest-dom from 5.14.1 to 5.15.1 (568cf85)
  • upgrade react-auth-kit from 1.4.18-0 to 1.6.2 (ffaeb02)

1.6.4 (2021-12-07)

Bug Fixes

  • signing param authState is now optional (4c0dc4e)

1.6.3 (2021-12-07)

Bug Fixes

  • logic: fixed refresh callback execution waiting (fbfe38b)

1.6.3-beta.1 (2021-12-06)

Bug Fixes

  • logic: fixed refresh callback execution waiting (fbfe38b)

1.6.2 (2021-11-13)

Bug Fixes

  • package.json: updated linting package (fad4305)

1.6.1 (2021-11-09)

Bug Fixes

  • lockfile: updated the lockfile version to 2 (e2f51ff)

1.6.0 (2021-10-23)

Bug Fixes

Features

  • added semantic release plugins (405a240)
  • package.json: added @semantic-release/git @semantic-release/changelog (45302ea)
  • semantic-release ci cd is created (581dcd7)