# @types/passport-orcid

> TypeScript definitions for passport-orcid

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

## Install

```sh
npm install @types/passport-orcid
pnpm add @types/passport-orcid
yarn add @types/passport-orcid
bun add @types/passport-orcid
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2023-11-07 |
| First published | 2021-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.0.3 (latest) — 2023-11-07
- 0.0.0 (ts3.7) — 2021-11-12
- 0.0.2 — 2023-10-18
- 0.0.1 — 2023-09-24

## README

# Installation
> `npm install --save @types/passport-orcid`

# Summary
This package contains type definitions for passport-orcid (https://github.com/hubgit/passport-orcid).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-orcid.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-orcid/index.d.ts)
````ts
import OAuth2Strategy = require("passport-oauth2");

type OrcidStrategyOptions<
    T extends Omit<OAuth2Strategy.StrategyOptions, "passReqToCallback">,
> = Omit<T, "authorizationURL" | "tokenURL"> & {
    sandbox?: boolean;
};

declare class OrcidStrategy extends OAuth2Strategy {
    name: "orcid";

    constructor(
        options: OrcidStrategy.StrategyOptions,
        verify: OrcidStrategy.VerifyFunction,
    );
    constructor(
        options: OrcidStrategy.StrategyOptionsWithRequest,
        verify: OrcidStrategy.VerifyFunctionWithRequest,
    );
}

declare namespace OrcidStrategy {
    type StrategyOptions = OrcidStrategyOptions<OAuth2Strategy.StrategyOptions>;
    type StrategyOptionsWithRequest = OrcidStrategyOptions<OAuth2Strategy.StrategyOptionsWithRequest>;

    type VerifyFunction = OAuth2Strategy.VerifyFunction;
    type VerifyFunctionWithRequest = OAuth2Strategy.VerifyFunctionWithRequest;

    type Strategy = OrcidStrategy;
    const Strategy: typeof OrcidStrategy;
}

export = OrcidStrategy;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/passport-oauth2](https://npmjs.com/package/@types/passport-oauth2)

# Credits
These definitions were written by [Chris Wilkinson](https://github.com/thewilkybarkid).

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