authenticate
middleware function from rownd.express
which validates a JWT in the Authorization
header and fetches profile data from Rownd, making it available on the request object for other request handlers. You can also build a middlware yourself or use one-off instances of rownd.validateToken(token);
and rownd.fetchUserInfo(token);
.
@rownd/react
dependency with your preferred package managerRowndProvider
context provider.RowndProvider
context provider. You should already have an Auth0Provider
somewhere in your app, which can help you find where you need to add this.
Auth0Provider
in place for now. Find out more about keeping users signed in during the migration.useAuth0()
that you’ll need to replace with Rownd. Rownd exposes similar properties and functions through the useRownd()
hook. It should be pretty straightforward to swap out the Auth0 hook to use Rownd’s, and to adapt your code to use the Rownd properties.
withAuthenticationRequired
component, you’ll need to add the some equivalent Rownd code to enforce authentication. Use the useRownd()
hook to enforce authentication upon rendering of certain components
Check if authenticated with Rownd
Get Auth0 access token
Exchange for Rownd access token
is_authenticated
should now be true
and the user can continue using your product normally.juliet+test1@gmail.com
and the messages will be delivered to juliet@gmail.com
.