@frontify/frontify-authenticator

中文文档
2.1.0发布于 2026/09/23MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 1.9万

Authenticate to your Frontify instance from within any secure web app.

原始使用文档
文档目录3 节
  1. NPM
  2. CDN
  3. LOCAL

Frontify Authenticator v2

Authenticate to your Frontify instance from within any secure web app.

Install

There are three possible ways of installing or requiring the Frontify Authenticator v2.

NPM

Installing the latest published package on a third party app is as simple as running npm i @frontify/frontify-authenticator and requiring the main class either via CommonJs or as an ES module.

// CommonJs require
const FrontifyAuthenticator = require('@frontify/frontify-authenticator');

OR

// ESM import
import { authorize, refresh, revoke } from '@frontify/frontify-authenticator';

CDN

Alternatively, in case you're not relying on npm packages in your web app, you can also require the minified JS script directly by using a CDN such as UPAKG. You can find the latest Frontify Authenticator v2 source code and import it to your project you by requiring it via a <script> HTML element.

<script src="https://unpkg.com/@frontify/frontify-authenticator@latest/dist/index.js"></script>

You may want to require a specific version. To do so you only have to change the word latest with the specific version you wish to use (ie. v2.0.0).

To make use of the available methods in the script all you have to do is use the FrontifyAuthenticator object reference attached to the window.

Example:

FrontifyAuthenticator.authorize(...);

or

window.FrontifyAuthenticator.authorize(...);

LOCAL

To install any package locally doesn't differ greatly from the CDN use case. You can use the link mentioned above to download the file contents, save it to your local instance and require via <script> HTML element making the src address point to your local file.

<script src="<PATH_TO_FILE>/<FILENAME>.js"></script>

Like mentioned in the CDN case, if may want to require a specific version, all you have to do is change the word latest with the specific version you wish to use (ie. v2.0.0).

You must be aware that, in this case, the latest code won't be automatically updated so it relies on manual downloads everytime you want to have a new version come into effect within your web app.

版本与发布记录

@frontify/frontify-authenticator 共发布 10 个版本,首次发布于 2021/10/06;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.1.0latest2026/09/231 个月前
2.0.2-beta.3beta2026/06/035 个月前
2.0.2-beta.22026/06/015 个月前
2.0.2-beta.12026/05/275 个月前
2.0.12026/04/087 个月前
2.0.02021/11/035 年前

关于 @frontify/frontify-authenticator 的常见问题

@frontify/frontify-authenticator 是什么?

Authenticate to your Frontify instance from within any secure web app.

如何安装 @frontify/frontify-authenticator?

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

@frontify/frontify-authenticator 支持 TypeScript 吗?

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

@frontify/frontify-authenticator 支持 ESM 还是 CommonJS?

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

@frontify/frontify-authenticator 可以商用吗?

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

@frontify/frontify-authenticator 的下载量有多少?

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

@frontify/frontify-authenticator 还在维护吗?

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