auth0 avatar

Auth0 React

Handles Auth0 authentication in React SPAs using the official SDK with redirect-based Universal Login flows. Works with Vite and Create React App across React 16-19. The skill walks you through wrapping your app in Auth0Provider, wiring up login/logout buttons with the useAuth0 hook, and protecting routes. It includes automated setup scripts and covers MFA workflows with the mfa API client for enrollment and challenge flows. Watch out for environment variable prefixes, they're different between Vite and CRA. If you're using Next.js or React Native, there are separate skills for those. The common mistakes table is actually useful, especially the warnings about manual token storage and MFA error handling.

skills.sh installs
1.5K
GitHub stars
56
last updated
Aug 21, 2026

Install

$ npx -y skills add auth0/agent-skills --skill auth0-react --agent claude-code

Installs into .claude/skills of the current project.

Files

Handles Auth0 authentication in React SPAs using the official SDK with redirect-based Universal Login flows. Works with Vite and Create React App across React 16-19. The skill walks you through wrapping your app in Auth0Provider, wiring up login/logout buttons with the useAuth0 hook, and protecting routes. It includes automated setup scripts and covers MFA workflows with the mfa API client for enrollment and challenge flows. Watch out for environment variable prefixes, they're different between Vite and CRA. If you're using Next.js or React Native, there are separate skills for those. The common mistakes table is actually useful, especially the warnings about manual token storage and MFA error handling.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/auth0/agent-skills
Categories
Frontend Development, Code Review & Quality, AI & Agent Building
First seen
Apr 16, 2026

More from auth0/agent-skills

All 23
1am-will avatarfrontend-designam-will/codex-skillsCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applicat1.4Kskills.sh installs
2kv0906 avatarpremium-frontend-designkv0906/cc-skillsCreate award-winning, cinematic frontend interfaces that feel ALIVE. Combines 10+ years of creative frontend experience with technical excellence. Specializes i1.4Kskills.sh installs
3aradotso avatarvinext-vite-nextjsaradotso/trending-skillsvinext vite nextjs1.3Kskills.sh installs
4flutter avatarflutter-layoutflutter/skillsflutter layout1.3Kskills.sh installs
5theqtcompanyrnd avatarqt-ui-designtheqtcompanyrnd/agent-skills>-1.2Kskills.sh installs
6vtex avatarvtex-io-admin-reactvtex/skillsApply when building VTEX IO admin-facing React interfaces under the admin builder. Covers VTEX Styleguide and Shoreline usage, admin page composition, data-heav1.2Kskills.sh installs