# @dapperlabs/dappauth

> A util to prove actionable control ('ownership') over a public Ethereum address using eth_sign

Latest version **2.0.5** (published 2019-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dapperlabs/dappauth
pnpm add @dapperlabs/dappauth
yarn add @dapperlabs/dappauth
bun add @dapperlabs/dappauth
```

## 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.5 |
| Published | 2019-09-18 |
| First published | 2018-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Pazams |
| Maintainers | bhardy, callmenick, derrickpelletier, nicksalloum |
| Keywords | ethereum, ownership, control, eth_sign |

## Links

- npm: https://www.npmjs.com/package/@dapperlabs/dappauth
- Repository: https://github.com/dapperlabs/dappauth.js
- Homepage: https://github.com/dapperlabs/dappauth.js#readme
- Issues: https://github.com/dapperlabs/dappauth.js/issues
- npm.io page: https://npm.io/package/@dapperlabs/dappauth

## Dependencies (4)

- [web3](https://npm.io/package/web3.md) ^1.2.1
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.1.2
- [ethereumjs-abi](https://npm.io/package/ethereumjs-abi.md) ^0.6.6
- [ethereumjs-util](https://npm.io/package/ethereumjs-util.md) ^6.0.0

## Recent versions

- 2.0.5 (latest) — 2019-09-18
- 2.0.4 — 2019-09-17
- 2.0.3 — 2019-08-15
- 2.0.1 — 2019-02-19
- 2.0.0 — 2019-02-04
- 1.0.1 — 2018-12-13
- 1.0.0 — 2018-12-13

## README

[![Build Status](https://travis-ci.com/dapperlabs/dappauth.js.svg?branch=master)](https://travis-ci.com/dapperlabs/dappauth.js)
[![Coverage Status](https://coveralls.io/repos/github/dapperlabs/dappauth.js/badge.svg?branch=master)](https://coveralls.io/github/dapperlabs/dappauth.js?branch=master)
# dappauth.js

## Usage
```js
  const Web3 = require('web3');
  const DappAuth = require('@dapperlabs/dappauth');

  const dappAuth = new DappAuth(new Web3.providers.HttpProvider('http://localhost:8545'));

  async function debug() {
    const challenge = 'foo';
    const signature =
      '0x33838c6f4e621982c2009f9b93ecb854a4b122538159623abc87d2e4c5bd6d2e33591f443b419b3bd2790e455ba6d625f2ca14b822c5cef824ef7e9021443bed1c';
    const address = '0x86aa354fc865925f945b803ceae0b3f9d856b269';

    try {
      const isAuthorizedSigner = await dappAuth.isAuthorizedSigner(
        challenge,
        signature,
        address,
      );

      console.log(isAuthorizedSigner); // true
    }
    } catch (e) {
      console.log(e);
    }

  }
```

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