0.1.5 • Published 5 months ago

@reactit/auth v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

🔒 @reactit/auth

Ultimate token authentication solution for your React project.

This library aims to be the less opinionated and more versatile React authentication solution. The solution autonomously handles the tokens, their storage and expiration, user should provide any behavioural logic to retrieve/generate the tokens and insert them in their intended usage configuration (todo Cookies).

Api

The API documentation is available here

Examples

We suggest getting familiar with the library API as the examples cannot cover all the possible scenarios, but here are covered the more common use cases for this handy React library. In this example axios is used as the HTTP client for any AJAX requests but nothing prevents you from using any client you may think of (also exotic connections suc WebSockets can work)

Alternatives

Requested features

  • ✔️ Fix first cycle bug
  • Add redirect on logout
  • Add redirect after login
  • Add more examples
  • Create preconfigured AuthProviders
0.1.2

8 months ago

0.1.1

8 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.5

5 months ago

0.1.0

1 year ago

0.0.1

2 years ago