Erna  Herzog

Erna Herzog

1626689760

The Simplest Way to Add Authentication to Your React App

Quickly add authentication to your React or Gatsby app with a few lines of code using the React Use Auth package and Auth0.

🥳 UPDATE: CREATE REACT APP EXAMPLE ADDED! 🥳

⏰ TIMESTAMPS ⏰

Create the Gatsby Blog Starter in CodeSandbox: 0.24

Create an Auth0 Account: 0:52

Install React Use Auth: 2:49

Wrap the App with the Auth Provider: 3:24

Create the Callback Page: 5:53

Add Allowed Callback URLs and Web Origins in Auth0: 8:11

Create a Nav Component: 9:16

Add Login and Logout: 12:32

Conditionally Render with isAuthenticated: 14:38

#React #LearnToCode #WebDev

#react #react app

The Simplest Way to Add Authentication to Your React App