@types/passport-oauth2
Advanced tools
Comparing version 1.4.7 to 1.4.8
@@ -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 { |
{ | ||
"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>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7081
88