# serverless-tencent-auth-tool

> Tencent Cloud Auth Tools For Serverless Framewoek

Latest version **2.0.1** (published 2020-03-10) · Apache license · 0 weekly downloads

## Install

```sh
npm install serverless-tencent-auth-tool
pnpm add serverless-tencent-auth-tool
yarn add serverless-tencent-auth-tool
bun add serverless-tencent-auth-tool
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-03-10 |
| First published | 2020-01-09 |
| Weekly downloads | 0 |
| License | Apache |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dfounderliu |
| Maintainers | anycodes |
| Keywords | Tencent Cloud, Serverless Framework, Cloud function |

## Links

- npm: https://www.npmjs.com/package/serverless-tencent-auth-tool
- npm.io page: https://npm.io/package/serverless-tencent-auth-tool

## Dependencies (2)

- [qrcode](https://npm.io/package/qrcode.md) ^1.4.4
- [serverless-tencent-tools](https://npm.io/package/serverless-tencent-tools.md) ^1.0.1

## Recent versions

- 2.0.1 (latest) — 2020-03-10
- 2.0.0 — 2020-03-10
- 1.0.18 — 2020-02-04
- 1.0.17 — 2020-02-04
- 1.0.16 — 2020-02-04
- 1.0.15 — 2020-02-04
- 1.0.14 — 2020-02-04
- 1.0.13 — 2020-01-28
- 1.0.12 — 2020-01-28
- 1.0.11 — 2020-01-28
- 1.0.10 — 2020-01-28
- 1.0.9 — 2020-01-28
- 1.0.8 — 2020-01-28
- 1.0.7 — 2020-01-16
- 1.0.6 — 2020-01-15
- … 13 more at https://npm.io/package/serverless-tencent-auth-tool/versions

## README

# 使用方法

腾讯云相关的在Components中使用：

在Pacakge中导入：

```
"serverless-tencent-auth-tool": "^0.0.5"
```

在项目代码中：

```
const tencentAuth = require('serverless-tencent-auth-tool')
```

```javascript
const auth = new tencentAuth()
this.context.credentials.tencent = this.context.credentials
  ? await auth.doAuth(this.context.credentials)
  : await auth.doAuth(this.context.instance.state.status)
```

系统会根据需求自动进行一键登录/获取AppId以及判断是否已经实名认证

---
_Source: https://npm.io/package/serverless-tencent-auth-tool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
