React, auth0, Gatsby, NextJS

Advanced React Security Patterns

91 Lessons

Security for React applications is a complex and wide-reaching topic. In this course, we'll look at implementing authentication and security best practices in React and many of the other tools that surround it. We'll explore various authentication methods, including JSON Web Tokens and cookies/sessions to determine the most suitable approach for various scenarios. The course covers essential security practices to safeguard data effectively and addresses common concerns about code inspection in browsers. Additionally, the course provides insights into applying authentication techniques in different React frameworks such as Gatsby and Next.js. It also delves into how to handle authentication in serverless functions, how to think about auth when it comes to GraphQL, and how to incorporate third-party authentication providers into our React apps.

Third Party Authentication Providers

33

Use the Auth0 Role in the React App

34

Request Scopes for an Access Token

35

Apply Scope Check Middleware to Endpoints

36

Add a Custom User ID with an Auth0 Rule

37

Allow Users to Log Out

38

Display the User's Name and Picture

39

Remove AuthContext, Login, and Signup

40

Renew Access Tokens

41

Create a User in Auth0

42

Set Up an API and Permissions

43

Add User Roles in Auth0

44

Use the Universal Login Screen

45

Install the Auth0-React SDK

46

Redirect Users to Auth0 to Log In

47

Use isLoading to Wait for Authentication

48

Use isAuthenticated to Check Auth Status

49

Get an Access Token from Auth0

50

Use a JWKS Verification Middleware

51

Augment the User's Profile with a Rule

52

Run the App and API

53

Why Use a Third-Party Auth Provider?

54

Sign Up for an Auth0 Account

55

Configure Application URLs

Getting Started

Refreshing JSON Web Tokens

Switching to Cookies and Sessions

Third Party Authentication Providers

Authentication and Authorization for GraphQL

Authentication and Authorization for GatsbyJS

Authentication and Authorization for Next.js

Serverless Authentication

hero grid
hero grid