·auth0-react
</>

auth0-react

auth0/agent-skills

在向 React 应用程序添加身份验证(登录、注销、用户会话、受保护的路由)时使用 - 将用于 SPA 的 @auth0/auth0-react SDK 与 Vite 或 Create React App 集成

50安装·4热度·@auth0

安装

$npx skills add https://github.com/auth0/agent-skills --skill auth0-react

SKILL.md

Add authentication to React single-page applications using @auth0/auth0-react.

For automated setup with Auth0 CLI, see Setup Guide for complete scripts.

| Forgot to add redirect URI in Auth0 Dashboard | Add your application URL (e.g., http://localhost:3000, https://app.example.com) to Allowed Callback URLs in Auth0 Dashboard | | Using wrong env var prefix | Vite uses VITE prefix, Create React App uses REACTAPP | | Not handling loading state | Always check isLoading before rendering auth-dependent UI |

在向 React 应用程序添加身份验证(登录、注销、用户会话、受保护的路由)时使用 - 将用于 SPA 的 @auth0/auth0-react SDK 与 Vite 或 Create React App 集成 来源:auth0/agent-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/auth0/agent-skills --skill auth0-react
分类
</>开发工具
认证
收录时间
2026-02-17
更新时间
2026-02-18

快速解答

什么是 auth0-react?

在向 React 应用程序添加身份验证(登录、注销、用户会话、受保护的路由)时使用 - 将用于 SPA 的 @auth0/auth0-react SDK 与 Vite 或 Create React App 集成 来源:auth0/agent-skills。

如何安装 auth0-react?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/auth0/agent-skills --skill auth0-react 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/auth0/agent-skills