@fusionauth/typescript-client

中文文档
1.70.0发布于 2026/10/28Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 31.9万

A typescript implementation of the FusionAuth client.

原始使用文档
文档目录8 节
  1. FusionAuth TypeScript Client
  2. Credits
  3. Installation
  4. Development
  5. Questions and support
  6. Contributing
  7. License
  8. Upgrade Policy

FusionAuth TypeScript Client

semver 2.0.0 compliant npm

If you're integrating FusionAuth with a Typescript application, this library will speed up your development time. It also works with node and browser applications as well.

For additional information and documentation on FusionAuth refer to https://fusionauth.io.

Credits

  • Thanks to @tjpeden for your excellent contributions!

Installation

To install fusionauth-typescript-client, use npm

npm install @fusionauth/typescript-client

Refer to the FusionAuth API documentation to for request and response formats.

Development

  • Set up a fusionauth instance. (Not sure exactly how to configure, TBD.)
  • sb test

Questions and support

If you have a question or support issue regarding this client library, we'd love to hear from you.

If you have a paid edition with support included, please open a ticket in your account portal. Learn more about paid editions here.

Otherwise, please post your question in the community forum.

Contributing

Bug reports and pull requests are welcome on GitHub.

License

This code is available as open source under the terms of the Apache v2.0 License.

Upgrade Policy

This library is built automatically to keep track of the FusionAuth API, and may also receive updates with bug fixes, security patches, tests, code samples, or documentation changes.

These releases may also update dependencies, language engines, and operating systems, as we'll follow the deprecation and sunsetting policies of the underlying technologies that it uses.

This means that after a dependency (e.g. language, framework, or operating system) is deprecated by its maintainer, this library will also be deprecated by us, and will eventually be updated to use a newer version.

版本与发布记录

@fusionauth/typescript-client 共发布 85 个版本,首次发布于 2019/06/15;过去 12 个月发布了 8 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.70.0latest2026/10/2818 天前
1.69.02026/08/192 个月前
1.68.02026/06/304 个月前
1.67.02026/06/015 个月前
1.65.02026/04/306 个月前
1.64.02026/03/197 个月前

关于 @fusionauth/typescript-client 的常见问题

@fusionauth/typescript-client 是什么?

A typescript implementation of the FusionAuth client.

如何安装 @fusionauth/typescript-client?

在项目目录运行 npm install @fusionauth/typescript-client,或使用 pnpm add / yarn add / bun add。

@fusionauth/typescript-client 支持 TypeScript 吗?

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

@fusionauth/typescript-client 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fusionauth/typescript-client 可以商用吗?

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

@fusionauth/typescript-client 的下载量有多少?

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

@fusionauth/typescript-client 还在维护吗?

最新版本 1.70.0 发布于 2026/10/28(18 天前);至今共发布 85 个版本,其中过去 12 个月发布了 8 个;首次发布于 2019/06/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。