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

@types/passport-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport-oauth2 - npm Package Compare versions

Comparing version 1.4.7 to 1.4.8

25

passport-oauth2/index.d.ts

@@ -6,2 +6,3 @@ // Type definitions for passport-oauth2 1.4

// Eduardo AC <https://github.com/EduardoAC>
// Ivan Fernandes <https://github.com/ivan94>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -13,2 +14,3 @@ // TypeScript Version: 2.3

import { OAuth2 } from 'oauth';
import { OutgoingHttpHeaders } from 'http';

@@ -37,2 +39,19 @@ declare class OAuth2Strategy extends Strategy {

declare namespace OAuth2Strategy {
interface Metadata {
authorizationURL: string;
tokenURL: string;
clientID: string;
}
type StateStoreStoreCallback = (err: Error | null, state: any) => void;
type StateStoreVerifyCallback = (err: Error, ok: boolean, state: any) => void;
interface StateStore {
store(req: Request, callback: StateStoreStoreCallback): void;
store(req: Request, meta: Metadata, callback: StateStoreStoreCallback): void;
verify(req: Request, state: string, callback: StateStoreVerifyCallback): void;
verify(req: Request, state: string, meta: Metadata, callback: StateStoreVerifyCallback): void;
}
type VerifyCallback = (err?: Error | null, user?: object, info?: object) => void;

@@ -53,2 +72,8 @@

callbackURL?: string;
customHeaders?: OutgoingHttpHeaders;
scope?: string | string[];
scopeSeparator?: string;
sessionKey?: string;
store?: StateStore;
state?: any;
}

@@ -55,0 +80,0 @@ interface StrategyOptions extends _StrategyOptionsBase {

15

passport-oauth2/package.json
{
"name": "@types/passport-oauth2",
"version": "1.4.7",
"version": "1.4.8",
"description": "TypeScript definitions for passport-oauth2",

@@ -21,6 +21,11 @@ "license": "MIT",

"githubUsername": "EduardoAC"
},
{
"name": "Ivan Fernandes",
"url": "https://github.com/ivan94",
"githubUsername": "ivan94"
}
],
"main": "",
"types": "",
"types": "index",
"repository": {

@@ -33,7 +38,7 @@ "type": "git",

"@types/express": "*",
"@types/passport": "*",
"@types/oauth": "*"
"@types/oauth": "*",
"@types/passport": "*"
},
"typesPublisherContentHash": "7ba878a4d8abeaeeb7673711441b709685c91fe57a9cb0f2c4e5015d6967d27f",
"typesPublisherContentHash": "d420baea9f276924e05b9e9d1c2481562b7f372d3688a6f497ce8472b202a5aa",
"typeScriptVersion": "2.3"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Mon, 15 Oct 2018 17:21:48 GMT
* Dependencies: express, passport, oauth
* Last updated: Mon, 10 Dec 2018 23:45:30 GMT
* Dependencies: @types/express, @types/passport, @types/oauth
* Global values: none
# Credits
These definitions were written by Pasi Eronen <https://github.com/pasieronen>, Wang Zishi <https://github.com/WangZishi>, Eduardo AC <https://github.com/EduardoAC>.
These definitions were written by Pasi Eronen <https://github.com/pasieronen>, Wang Zishi <https://github.com/WangZishi>, Eduardo AC <https://github.com/EduardoAC>, Ivan Fernandes <https://github.com/ivan94>.
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