Back to skills

auth0-react

security

Adds authentication to React single-page applications using the @auth0/auth0-react SDK. Handles login, logout, user sessions, protected routes, and API token management for apps built with Vite or Cre

Setup & Installation

npx skills add https://github.com/auth0/auth0-react --skill auth0-react
or paste the link and ask your coding assistant to install it
https://github.com/auth0/auth0-react
View on GitHub

What This Skill Does

Adds authentication to React single-page applications using the @auth0/auth0-react SDK. Handles login, logout, user sessions, protected routes, and API token management for apps built with Vite or Create React App. Wiring up OAuth redirect flows, token refresh, and session handling by hand is tedious and easy to get wrong; this skill generates the correct Auth0Provider setup, hooks usage, and protected route patterns for your specific React toolchain.

When to use it

  • Working with auth0 react functionality
  • Implementing auth0 react features
  • Debugging auth0 react related issues