# passport-dlive

> Dlive authentication strategy for Passport.

Latest version **1.0.1** (published 2019-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install passport-dlive
pnpm add passport-dlive
yarn add passport-dlive
bun add passport-dlive
```

## 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 | 1.0.1 |
| Published | 2019-07-27 |
| First published | 2019-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 20.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Luke Dornan |
| Maintainers | lkd70 |
| Keywords | passport, dlive, auth, authn, authentication, identity, lkd70 |

## Links

- npm: https://www.npmjs.com/package/passport-dlive
- Repository: https://github.com/lkd70/passport-dlive
- Homepage: https://github.com/lkd70/passport-dlive#readme
- Issues: https://github.com/lkd70/passport-dlive/issues
- npm.io page: https://npm.io/package/passport-dlive

## Dependencies (6)

- [url](https://npm.io/package/url.md) ^0.11.0
- [uid2](https://npm.io/package/uid2.md) 0.0.3
- [util](https://npm.io/package/util.md) ^0.12.1
- [oauth](https://npm.io/package/oauth.md) ^0.9.15
- [request](https://npm.io/package/request.md) ^2.88.0
- [passport-strategy](https://npm.io/package/passport-strategy.md) ^1.0.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-07-27
- 1.0.0 — 2019-07-27

## README

# Passport-DLive

[Passport](http://passportjs.org/) strategy for authenticating with
[DLive](https://dlive.tv) using the OAuth 2.0 API.

This module lets you authenticate using DLive in your Node.js applications.
By plugging into Passport, DLive authentication can be easily and
unobtrusively integrated into any application or framework that supports
[Connect](http://www.senchalabs.org/connect/)-style middleware, including
[Express](http://expressjs.com/).

## Install

    npm install passport-dlive

## Usage

### Create an Application

Before using `passport-dlive`, you must register an application with
DLive.  If you have not already done so, a new application can be created at
[DLive Docs](https://docs.dlive.tv/api/authentication-oauth2/oauth-2.0).  
Your application will be issued an app ID and app secret, which need to be
provided to the strategy. You will also need to configure a redirect URI which
matches the route in your application.

### Configure Strategy

The DLive authentication strategy authenticates users using a DLive
account and OAuth 2.0 tokens.  The app ID and secret obtained when creating an
application are supplied as options when creating the strategy.  The strategy
also requires a `verify` callback, which receives the access token and optional
refresh token, as well as `profile` which contains the authenticated user's
DLive profile.  The `verify` callback must call `cb` providing a user to
complete authentication.

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