# @types/hapi-auth-basic

> TypeScript definitions for hapi-auth-basic

Latest version **5.0.8** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/hapi-auth-basic
pnpm add @types/hapi-auth-basic
yarn add @types/hapi-auth-basic
bun add @types/hapi-auth-basic
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.8 |
| Published | 2023-11-07 |
| First published | 2017-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/hapi-auth-basic
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi-auth-basic
- npm.io page: https://npm.io/package/@types/hapi-auth-basic

## Dependencies (1)

- [@types/hapi](https://npm.io/package/@types/hapi.md) *

## Recent versions

- 5.0.8 (latest) — 2023-11-07
- 5.0.5 (ts2.8) — 2018-10-22
- 5.0.4 (ts2.4) — 2018-02-26
- 4.2.1 (ts2.3) — 2017-06-07
- 4.2.0 (ts2.2) — 2017-05-15
- 5.0.7 — 2023-10-18
- 5.0.6 — 2023-09-16
- 5.0.3 — 2018-02-19
- 5.0.2 — 2018-02-10
- 5.0.1 — 2018-01-03
- 5.0.0 — 2017-12-04
- 4.2.2 — 2017-11-09

## README

# Installation
> `npm install --save @types/hapi-auth-basic`

# Summary
This package contains type definitions for hapi-auth-basic (https://github.com/hapijs/hapi-auth-basic).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi-auth-basic.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi-auth-basic/index.d.ts)
````ts
import { Plugin, Request, ResponseToolkit } from "hapi";

declare namespace Basic {
    interface ValidateCustomResponse {
        response: any;
    }

    interface ValidateResponse {
        isValid: boolean;
        credentials?: any;
    }

    interface Validate {
        (
            request: Request,
            username: string,
            password: string,
            h: ResponseToolkit,
        ): Promise<ValidateResponse | ValidateCustomResponse>;
    }
}

declare var Basic: Plugin<{}>;

export = Basic;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/hapi](https://npmjs.com/package/@types/hapi)

# Credits
These definitions were written by [AJP](https://github.com/AJamesPhillips), and [Rodrigo Saboya](https://github.com/saboya).

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