# @types/passport-linkedin-oauth2

> TypeScript definitions for passport-linkedin-oauth2

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

## Install

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

## 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.5.6 |
| Published | 2023-11-07 |
| First published | 2018-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 1.5.6 (latest) — 2023-11-07
- 1.5.3 (ts3.6) — 2021-07-08
- 1.5.2 (ts3.4) — 2021-01-21
- 1.5.1 (ts2.3) — 2019-09-30
- 1.5.5 — 2023-10-18
- 1.5.4 — 2023-09-24
- 1.5.0 — 2018-12-25

## README

# Installation
> `npm install --save @types/passport-linkedin-oauth2`

# Summary
This package contains type definitions for passport-linkedin-oauth2 (https://github.com/auth0/passport-linkedin-oauth2).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-linkedin-oauth2.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-linkedin-oauth2/index.d.ts)
````ts
import { Request } from "express";
import {
    AuthenticateOptions as PassportAuthenticateOptions,
    Profile as passportProfile,
    Strategy as passportStrategy,
} from "passport";

export interface Profile extends passportProfile {
    id: string;
    displayName: string;
    name: {
        familyName: string;
        givenName: string;
    };
    emails: [{ value: string }];
    photos: [{ value: string }];
    _raw: string;
    _json: any;
}

export interface AuthenticateOptions extends PassportAuthenticateOptions {
    authType?: string | undefined;
}

export interface StrategyOption {
    clientID: string;
    clientSecret: string;
    callbackURL: string;

    scope?: string[] | undefined;
    scopeSeparator?: string | undefined;
    enableProof?: boolean | undefined;
    profileFields?: string[] | undefined;
}

export interface StrategyOptionWithRequest extends StrategyOption {
    passReqToCallback: true;
}

export type VerifyFunction = (
    accessToken: string,
    refreshToken: string,
    profile: Profile,
    done: (error: any, user?: any, info?: any) => void,
) => void;

export type VerifyFunctionWithRequest = (
    req: Request,
    accessToken: string,
    refreshToken: string,
    profile: Profile,
    done: (error: any, user?: any, info?: any) => void,
) => void;

export class Strategy extends passportStrategy {
    constructor(options: StrategyOptionWithRequest, verify: VerifyFunctionWithRequest);
    constructor(options: StrategyOption, verify: VerifyFunction);

    name: string;
    authenticate(req: Request, options?: object): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport)

# Credits
These definitions were written by [Andrew Vetovitz](https://github.com/andrewvetovitz).

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