Quickly add authentication to your React or Gatsby app with a few lines of code using the React Use Auth package and Auth0. ⏰ 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
👀 LIVE DEMO 👀
🗂 DOWNLOADS 🗂
🔗 HELPFUL RESOURCES 🔗
React Use Auth:
Auth0:
CodeSandbox.io:
Gatsby JS:
Chrome React Developer Tools:
Using the Effect Hook:
A Complete Guide to useEffect:
👋 FOLLOW US 👋
Instagram:
#React #LearnToCode #WebDev

0 Comments