Technical & DevelopmentIntermediate
auth0-react
Add authentication to React single-page applications using Vite or CRA.
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/auth0/agent-skills --skill auth0-reactnpx skills add https://github.com/auth0/agent-skills --skill auth0-reactOr paste this URL into your assistant to install:
Overview
What This Skill Does
Add authentication to React single-page applications using @auth0/auth0-react.
Application
When to use this Skill
- Adding secure Auth0 authentication to a React application
- Implementing standard login, logout, and token authentication flows in React
- Managing user session state and securing frontend/backend routes using Auth0 SDKs
Documentation
Show Skills.md file
Auth0 React Integration
Add authentication to React single-page applications using @auth0/auth0-react.
Prerequisites
- React 16.11+ application (Vite or Create React App) - supports React 16, 17, 18, and 19
- Auth0 account and application configured
- If you don't have Auth0 set up yet, use the
auth0-quickstartskill first
When NOT to Use
- Next.js applications - Use
auth0-nextjsskill for both App Router and Pages Router - React Native mobile apps - Use
auth0-react-nativeskill for iOS/Android - Server-side rendered React - Use framework-specific SDK (Next.js, Remix, etc.)
- Embedded login - This SDK uses Auth0 Universal Login (redirect-based)
- Backend API authentication - Use express-openid-connect or JWT validation instead
Quick Start Workflow
1. Install SDK
Lines 1 - 25 of 181
Recommendations