# @types/oidc-token-hash

> TypeScript definitions for oidc-token-hash

Latest version **5.0.0** (published 2024-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/oidc-token-hash
pnpm add @types/oidc-token-hash
yarn add @types/oidc-token-hash
bun add @types/oidc-token-hash
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2024-10-18 |
| First published | 2024-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51351 |
| Maintainers | types |

## Links

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

## Recent versions

- 5.0.0 (latest) — 2024-10-18

## README

# Installation
> `npm install --save @types/oidc-token-hash`

# Summary
This package contains type definitions for oidc-token-hash (https://github.com/panva/oidc-token-hash).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oidc-token-hash.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oidc-token-hash/index.d.ts)
````ts
export interface Names {
    claim: string;
    source: string;
}

export function generate(token: string, alg: string, crv?: string): string;

export function validate(names: Names, actual: string, source: string, alg: string, crv?: string): void;

````

### Additional Details
 * Last updated: Fri, 18 Oct 2024 08:10:16 GMT
 * Dependencies: none

# Credits
These definitions were written by [Filip Skokan](https://github.com/panva).

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