# @types/openid

> TypeScript definitions for openid

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

## Install

```sh
npm install @types/openid
pnpm add @types/openid
yarn add @types/openid
bun add @types/openid
```

## 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 | 2.0.5 |
| Published | 2023-11-07 |
| First published | 2019-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.0.5 (latest) — 2023-11-07
- 2.0.3 (ts4.3) — 2023-09-03
- 2.0.2 (ts3.6) — 2021-07-08
- 2.0.1 (ts3.4) — 2019-06-27
- 2.0.4 — 2023-10-18
- 2.0.0 — 2019-06-19

## README

# Installation
> `npm install --save @types/openid`

# Summary
This package contains type definitions for openid (https://github.com/havard/node-openid).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/openid.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/openid/index.d.ts)
````ts
export interface OpenIdError {
    message: string;
}

export class RelyingParty {
    constructor(
        returnUrl: string,
        realm: string | null,
        stateless: boolean,
        strict: boolean,
        extensions: readonly any[],
    );

    authenticate(
        identifier: string,
        immediate: boolean,
        callback: (err: OpenIdError | null, authUrl: string | null) => void,
    ): void;

    verifyAssertion(
        requestOrUrl: object | string,
        callback: (
            err: OpenIdError | null,
            result?: { authenticated: boolean; claimedIdentifier?: string | undefined },
        ) => void,
    ): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Jacob Stein](https://github.com/jacobmstein), and [Joao Dias](https://github.com/alfaproject).

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