# @types/auth-header

> TypeScript definitions for auth-header

Latest version **1.0.6** (published 2023-11-20) · MIT license · 0 weekly downloads

## Install

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

## 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 | 1.0.6 |
| Published | 2023-11-20 |
| First published | 2018-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51447 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.6 (latest) — 2023-11-20
- 1.0.2 (ts3.6) — 2021-07-07
- 1.0.1 (ts2.1) — 2019-03-13
- 1.0.5 — 2023-11-06
- 1.0.4 — 2023-10-17
- 1.0.3 — 2023-09-22
- 1.0.0 — 2018-10-18

## README

# Installation
> `npm install --save @types/auth-header`

# Summary
This package contains type definitions for auth-header (https://github.com/izaakschroeder/auth-header).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth-header.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/auth-header/index.d.ts)
````ts
type Params =
    | Array<[string, string | readonly string[]]>
    | { [key: string]: string | readonly string[] };
export { Params };

export interface TokenOptions {
    scheme: string;
    token?: string | undefined;
    params?: Params | undefined;
}

export interface Token {
    scheme: string;
    params: { [key: string]: string | string[] };
    token: null | string | string[];
}

export function format(token: TokenOptions): string;
export function format(scheme: string, token?: string, params?: Params): string;

export function parse(header: string): Token;

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:23 GMT
 * Dependencies: none

# Credits
These definitions were written by [ForbesLindesay](https://github.com/ForbesLindesay).

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