Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/passport-linkedin-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport-linkedin-oauth2 - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

10

passport-linkedin-oauth2/index.d.ts

@@ -24,3 +24,3 @@ // Type definitions for passport-linkedin-oauth2 1.5

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

@@ -33,6 +33,6 @@

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

@@ -39,0 +39,0 @@

{
"name": "@types/passport-linkedin-oauth2",
"version": "1.5.2",
"version": "1.5.3",
"description": "TypeScript definitions for passport-linkedin-oauth2",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-linkedin-oauth2",
"license": "MIT",

@@ -25,4 +26,4 @@ "contributors": [

},
"typesPublisherContentHash": "7c02c5a667c19e40aa7bfe0916fc5b5870805745a14741968b4848f1633f6855",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "b75dd6254f6956c97a898ecba611bb885d19fda892f645a7ce65cf4f0ab9bfa1",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,63 @@ # Installation

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
// Type definitions for passport-linkedin-oauth2 1.5
// Project: https://github.com/auth0/passport-linkedin-oauth2
// Definitions by: Andrew Vetovitz <https://github.com/andrewvetovitz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Profile as passportProfile, AuthenticateOptions as PassportAuthenticateOptions, Strategy as passportStrategy } from 'passport';
import { Request } from 'express';
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: Thu, 21 Jan 2021 22:25:12 GMT
* Last updated: Thu, 08 Jul 2021 20:19:24 GMT
* Dependencies: [@types/passport](https://npmjs.com/package/@types/passport), [@types/express](https://npmjs.com/package/@types/express)

@@ -14,0 +72,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc