@authsignal/node

中文文档
3.2.3发布于 2026/09/30MITTypeScriptESM + CJS构建来源已验证近 30 天下载 1.7万
Authsignal
原始使用文档
文档目录5 节
  1. Installation
  2. Getting Started
  3. API URLs by Region
  4. License
  5. Documentation
Authsignal

Authsignal Node.js SDK

NPM version License

The official Authsignal Node.js library for server-side applications. Use this SDK to easily integrate Authsignal's multi-factor authentication (MFA) and passwordless features into your Node.js backend.

Installation

Using npm:

npm install @authsignal/node

Using yarn:

yarn add @authsignal/node

Using pnpm:

pnpm add @authsignal/node

Using bun:

bun add @authsignal/node

Getting Started

Initialize the Authsignal client with your secret key from the Authsignal Portal and the API URL for your region.

import { Authsignal } from "@authsignal/node";

// Initialize the client
const authsignal = new Authsignal({
  apiSecretKey: process.env.AUTHSIGNAL_SECRET_KEY,
  apiUrl: process.env.AUTHSIGNAL_API_URL, // Use region-specific URL
});

API URLs by Region

RegionAPI URL
US (Oregon)https://api.authsignal.com/v1
AU (Sydney)https://au.api.authsignal.com/v1
EU (Dublin)https://eu.api.authsignal.com/v1

License

This SDK is licensed under the MIT License.

Documentation

For more information and advanced usage examples, refer to the official Authsignal Server-Side SDK documentation.

版本与发布记录

@authsignal/node 共发布 101 个版本,首次发布于 2022/05/26;过去 12 个月发布了 18 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.2.3latest2026/09/301 个月前
3.2.22026/09/042 个月前
3.2.12026/09/042 个月前
3.2.02026/09/022 个月前
3.1.02026/08/182 个月前
3.0.02026/07/243 个月前

关于 @authsignal/node 的常见问题

如何安装 @authsignal/node?

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

@authsignal/node 支持 TypeScript 吗?

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

@authsignal/node 支持 ESM 还是 CommonJS?

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

@authsignal/node 可以商用吗?

@authsignal/node 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@authsignal/node 的下载量有多少?

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

@authsignal/node 还在维护吗?

最新版本 3.2.3 发布于 2026/09/30(1 个月前);至今共发布 101 个版本,其中过去 12 个月发布了 18 个;首次发布于 2022/05/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。