Socket
Socket
Sign inDemoInstall

@types/passport

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

52

passport/index.d.ts

@@ -23,4 +23,4 @@ // Type definitions for Passport 1.0

interface Request {
authInfo?: AuthInfo;
user?: User;
authInfo?: AuthInfo | undefined;
user?: User | undefined;

@@ -54,19 +54,19 @@ // These declarations are merged into express's Request type

interface AuthenticateOptions {
authInfo?: boolean;
assignProperty?: string;
failureFlash?: string | boolean;
failureMessage?: boolean | string;
failureRedirect?: string;
failWithError?: boolean;
session?: boolean;
scope?: string | string[];
successFlash?: string | boolean;
successMessage?: boolean | string;
successRedirect?: string;
successReturnToOrRedirect?: string;
state?: string;
pauseStream?: boolean;
userProperty?: string;
passReqToCallback?: boolean;
prompt?: string;
authInfo?: boolean | undefined;
assignProperty?: string | undefined;
failureFlash?: string | boolean | undefined;
failureMessage?: boolean | string | undefined;
failureRedirect?: string | undefined;
failWithError?: boolean | undefined;
session?: boolean | undefined;
scope?: string | string[] | undefined;
successFlash?: string | boolean | undefined;
successMessage?: boolean | string | undefined;
successRedirect?: string | undefined;
successReturnToOrRedirect?: string | undefined;
state?: string | undefined;
pauseStream?: boolean | undefined;
userProperty?: string | undefined;
passReqToCallback?: boolean | undefined;
prompt?: string | undefined;
}

@@ -100,3 +100,3 @@

interface Strategy {
name?: string;
name?: string | undefined;
authenticate(this: StrategyCreated<this>, req: express.Request, options?: any): any;

@@ -157,15 +157,15 @@ }

displayName: string;
username?: string;
username?: string | undefined;
name?: {
familyName: string;
givenName: string;
middleName?: string;
};
middleName?: string | undefined;
} | undefined;
emails?: Array<{
value: string;
type?: string;
}>;
type?: string | undefined;
}> | undefined;
photos?: Array<{
value: string;
}>;
}> | undefined;
}

@@ -172,0 +172,0 @@

{
"name": "@types/passport",
"version": "1.0.6",
"version": "1.0.7",
"description": "TypeScript definitions for Passport",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport",
"license": "MIT",

@@ -54,4 +55,4 @@ "contributors": [

},
"typesPublisherContentHash": "aa21d9ff6fd7c12ceb73ab9fc7be07c327a63486b9b3b6723990f45f59279884",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "66c90f5a97560e6cf1998b940b7a730091c8393a46139b2e8f64daef70cd86fb",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sun, 07 Feb 2021 14:39:38 GMT
* Last updated: Wed, 07 Jul 2021 17:02:25 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express)

@@ -14,0 +14,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