Fantastic news, we have a new open beta SDK for React applications!
This new SDK 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.
When you get a chance check out our new React SDK Beta Category and join in on the beta fun as you build your next non-production app with this! We would love your feedback!
Resources:
- GitHub repository - GitHub - auth0/auth0-react: Auth0 SDK for React Single Page Applications (SPA)
- SDK reference docs - @auth0/auth0-react
- Quickstart
- Reference sample