Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@types/passport-linkedin-oauth2
Advanced tools
npm install --save @types/passport-linkedin-oauth2
This package contains type definitions for passport-linkedin-oauth2 (https://github.com/auth0/passport-linkedin-oauth2).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-linkedin-oauth2.
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;
}
These definitions were written by Andrew Vetovitz.
FAQs
TypeScript definitions for passport-linkedin-oauth2
The npm package @types/passport-linkedin-oauth2 receives a total of 4,322 weekly downloads. As such, @types/passport-linkedin-oauth2 popularity was classified as popular.
We found that @types/passport-linkedin-oauth2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.