@types/passport-oauth2-client-password
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,4 +10,4 @@ // Type definitions for passport-oauth2-client-password 0.1.2 | ||
import * as passport from 'passport'; | ||
import * as express from 'express'; | ||
import * as express from "express"; | ||
import * as passport from "passport"; | ||
@@ -19,3 +19,8 @@ interface StrategyOptionsWithRequestInterface { | ||
interface VerifyFunctionWithRequest { | ||
(req: express.Request, clientId: string, clientSecret: string, done: (error: any, client?: any, info?: any) => void): void; | ||
( | ||
req: express.Request, | ||
clientId: string, | ||
clientSecret: string, | ||
done: (error: any, client?: any, info?: any) => void, | ||
): void; | ||
} | ||
@@ -22,0 +27,0 @@ |
{ | ||
"name": "@types/passport-oauth2-client-password", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "TypeScript definitions for passport-oauth2-client-password", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-client-password", | ||
"license": "MIT", | ||
@@ -14,13 +15,15 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/passport-oauth2-client-password" | ||
}, | ||
"scripts": {}, | ||
"dependencies": { | ||
"@types/passport": "*", | ||
"@types/express": "*" | ||
"@types/express": "*", | ||
"@types/passport": "*" | ||
}, | ||
"typesPublisherContentHash": "e90319edcf63d9db5e11ac800cfae72b333b3dc97664d0fafd7c3b550a1565ce", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "1066f17cbbf544829bb1c222a972b1c4fca9918a0d36a2e5e6ae006753ad5783", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -8,10 +8,50 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-client-password | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-client-password. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-client-password/index.d.ts) | ||
````ts | ||
// Type definitions for passport-oauth2-client-password 0.1.2 | ||
// Project: https://github.com/jaredhanson/passport-oauth2-client-password | ||
// Definitions by: Ivan Zubok <https://github.com/akaNightmare> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
Additional Details | ||
* Last updated: Tue, 03 Apr 2018 20:45:30 GMT | ||
* Dependencies: passport, express | ||
/// <reference types="passport"/> | ||
/// <reference types="express"/> | ||
import * as express from "express"; | ||
import * as passport from "passport"; | ||
interface StrategyOptionsWithRequestInterface { | ||
passReqToCallback: boolean; | ||
} | ||
interface VerifyFunctionWithRequest { | ||
( | ||
req: express.Request, | ||
clientId: string, | ||
clientSecret: string, | ||
done: (error: any, client?: any, info?: any) => void, | ||
): void; | ||
} | ||
interface VerifyFunction { | ||
(clientId: string, clientSecret: string, done: (error: any, client?: any, info?: any) => void): void; | ||
} | ||
declare class Strategy extends passport.Strategy { | ||
constructor(options: StrategyOptionsWithRequestInterface, verify: VerifyFunctionWithRequest); | ||
constructor(verify: VerifyFunction); | ||
name: string; | ||
authenticate(req: express.Request, options?: {}): void; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Ivan Zubok <https://github.com/akaNightmare>. | ||
These definitions were written by [Ivan Zubok](https://github.com/akaNightmare). |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5223
29
1
57