@freecodecamp/loopback-component-passport

中文文档
2.0.0发布于 2021/02/09Artistic-2.0CommonJS近 30 天下载 3897

LoopBack passport integration to support third party logins and account linking

原始使用文档
文档目录4 节
  1. Overview
  2. All local accounts requires verification
  3. All third party accounts will login with an email of unique…
  4. Module Long Term Support Policy

loopback-component-passport

⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical security fixes will be provided. (See Module Long Term Support Policy below.)

We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as soon as possible. Refer to our Migration Guide for more information on how to upgrade.

Overview

The module provides integration between LoopBack and Passport to support third-party login and account linking for LoopBack applications.

Please see the official documentation for more information.

All local accounts requires verification

All third party accounts will login with an email of [email protected] example [email protected]

which will allow the user to link the social media accounts that they want as well as the users could sign up with the same email account that is used for facebook/twitter/google/local if they wish to keep them separate.

Facebook profile information (such as email, gender, timezone, etc) may still be included if necessary. See https://github.com/strongloop/loopback-example-passport/blob/master/README.md#4-facebook-profile-info.

All user required info including the email will be available, but the main email for the account will remain [email protected].

Module Long Term Support Policy

This module adopts the Module Long Term Support (LTS) policy, with the following End Of Life (EOL) dates:

VersionStatusPublishedEOL
3.xMaintenance LTSDec 2016Dec 2020

Learn more about our LTS plan in docs.

版本与发布记录

@freecodecamp/loopback-component-passport 共发布 4 个版本,首次发布于 2018/05/17;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.0latest2021/02/095 年前
1.2.02019/10/187 年前
1.1.02018/11/068 年前
1.0.02018/05/178 年前

关于 @freecodecamp/loopback-component-passport 的常见问题

@freecodecamp/loopback-component-passport 是什么?

LoopBack passport integration to support third party logins and account linking

如何安装 @freecodecamp/loopback-component-passport?

在项目目录运行 npm install @freecodecamp/loopback-component-passport,或使用 pnpm add / yarn add / bun add。

@freecodecamp/loopback-component-passport 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/freecodecamp__loopback-component-passport 是否存在。

@freecodecamp/loopback-component-passport 支持 ESM 还是 CommonJS?

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

@freecodecamp/loopback-component-passport 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=8.9。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@freecodecamp/loopback-component-passport 可以商用吗?

@freecodecamp/loopback-component-passport 使用 Artistic-2.0 许可。声明的许可为 Artistic-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@freecodecamp/loopback-component-passport 的下载量有多少?

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

@freecodecamp/loopback-component-passport 还在维护吗?

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