We are proud to announce that the new React SDK is now generally available!
It provides a of hook and higher-order components to make integration into your React application easier, such as
useAuth0 for performing authentication,
withAuthenticationRequired for protecting routes and
withAuth0 as an alternative to the hook for use with class components.
We have created this new React SDK in order to improve the developer experience when integrating Auth0. This SDK makes it easier to integrate Universal Login into React applications, requires fewer lines of code and takes care of common tasks developers have been previously burdened with, such as safely storing and renewing tokens.
- Supporting Blog article - Complete guide to React user authentication
- GitHub repository - https://github.com/auth0/auth0-react
- SDK reference docs - https://auth0.github.io/auth0-react
- Reference sample
Please take a look and let us know if you have any questions!