@auth0/ai

中文文档
6.0.2发布于 2026/04/22Apache-2.0TypeScriptESM + CJS构建来源已验证近 30 天下载 6003

Auth0AI SDK for JavaScript

原始使用文档
文档目录5 节
  1. Install
  2. Feedback
  3. Contributing
  4. Raise an issue
  5. Vulnerability Reporting

Auth0 AI SDK

@auth0/ai is an SDK for building secure AI-powered applications using Auth0.

This SDK provides base abstractions for authentication and authorization in AI applications including a set of tools for implementing asynchronous user authentication using the Client Initiated Backchannel Authentication (CIBA) protocol.

Install

[!WARNING] @auth0/ai is currently under heavy development. We strictly follow Semantic Versioning (SemVer), meaning all breaking changes will only occur in major versions. However, please note that during this early phase, major versions may be released frequently as the API evolves. We recommend locking versions when using this in production.

$ npm install @auth0/ai

Feedback

Contributing

We appreciate feedback and contribution to this repo! Before you get started, please see the following:

Raise an issue

To provide feedback or report a bug, please raise an issue on our issue tracker.

Vulnerability Reporting

Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.


Auth0 Logo

Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout Why Auth0?

This project is licensed under the Apache 2.0 license. See the LICENSE file for more info.

版本与发布记录

@auth0/ai 共发布 25 个版本,首次发布于 2025/03/22;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.0.2latest2026/04/226 个月前
6.0.02025/11/1911 个月前
5.1.12025/11/1211 个月前
5.1.02025/10/211 年前
5.0.12025/10/191.1 年前
5.0.02025/10/161.1 年前

关于 @auth0/ai 的常见问题

@auth0/ai 是什么?

Auth0AI SDK for JavaScript

如何安装 @auth0/ai?

在项目目录运行 npm install @auth0/ai,或使用 pnpm add / yarn add / bun add。

@auth0/ai 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@auth0/ai 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@auth0/ai 可以商用吗?

@auth0/ai 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@auth0/ai 的下载量有多少?

根据 npm 官方下载统计,@auth0/ai 在 2026/10/07 – 2026/11/05 这 30 天内被下载 6,003 次,日均约 200 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@auth0/ai 还在维护吗?

最新版本 6.0.2 发布于 2026/04/22(6 个月前);至今共发布 25 个版本,其中过去 12 个月发布了 3 个;首次发布于 2025/03/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。