# @habloapp/passport-unicauth

> Unic Auth Strategy for Passport

Latest version **1.0.4** (published 2021-09-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @habloapp/passport-unicauth
pnpm add @habloapp/passport-unicauth
yarn add @habloapp/passport-unicauth
bun add @habloapp/passport-unicauth
```

## 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.4 |
| Published | 2021-09-16 |
| First published | 2021-09-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | HabloApp Inc. |
| Maintainers | mschuelter, marcos.habloapp, unicauth |
| Keywords | unicauth, auth, authn, authentication, authz, authorization, 2fa, passwordless |

## Links

- npm: https://www.npmjs.com/package/@habloapp/passport-unicauth
- Repository: https://github.com/habloapp/passport-unicauth
- Homepage: https://unicauth.com/alpha
- Issues: https://github.com/habloapp/passport-unicauth/issues
- npm.io page: https://npm.io/package/@habloapp/passport-unicauth

## Dependencies (2)

- [passport-strategy](https://npm.io/package/passport-strategy.md) 1.x.x
- [@habloapp/unicauth-wrapper](https://npm.io/package/@habloapp/unicauth-wrapper.md) 1.0.x

## Alternatives

- [@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
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-09-16
- 1.0.3 — 2021-09-08
- 1.0.2 — 2021-09-08

## README

# Unic Auth Strategy for Passport

Unic Auth Strategy for [Passport](http://www.passportjs.org/) using [Unic Auth API](https://unicauth.com/alpha/docs/)
<br>

Unic Auth allows you to quickly implement userless/passwordless login and 2FA (no more paying for SMS to have 2FA)

## Installation

First make sure to get your credentials on [Unic Auth](https://console.unicauth.com/), if you want to test first, use [Unic Auth - Demo](https://unicauth.com/demo)

### For [Node.js](https://nodejs.org/)

#### npm

Install it via:

```shell
npm install @habloapp/passport-unicauth --save
```

## Example

```javascript
const UnicAuthStrategy = require('@habloapp/passport-unicauth').Strategy

const strategy = new UnicAuthStrategy({
    appKey: APPLICATION_APPKEY,
    readKey: APPLICATION_READKEY,
    writeKey: APPLICATION_WRITEKEY,
    passReqToCallback: true
  },
  function(req, profile, done) {
    // ...
  }
)
```

At [Passport docs](http://www.passportjs.org/docs/) you can find more examples on how Passport works with strategies.

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