Skip to content

mammadataei/react-guardian

Repository files navigation


React Guardian

Declarative authentication and authorization for React applications


Introduction

Authentication and authorization are essential parts of almost all web applications. But the underlying logic is different in each application. There are many great libraries out there, but most have unnecessary abstraction or are only compatible with specific patterns and libraries.

React Guardian is a lightweight ReactJs library that makes it easy to integrate authentication and authorization in React applications. It provided simple components and utilities to implement user access control and protect routes and components.

Features

  • Super lightweight (≈0.6KB minified + gzipped)
  • Flexible and extendable
  • No unnecessary abstractions
  • For route and component protection
  • Written in Typescript and type-safe
  • Compatible with any authentication/authorization pattern

Check out the documentation to learn more.

License

MIT license © 2022 Mohammad Ataei