1.0.38 • Published 6 months ago
@types/passport-local v1.0.38
Installation
npm install --save @types/passport-local
Summary
This package contains type definitions for passport-local (https://github.com/jaredhanson/passport-local).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-local.
index.d.ts
// Type definitions for passport-local 1.0.0
// Project: https://github.com/jaredhanson/passport-local
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="passport"/>
import { Strategy as PassportStrategy } from "passport-strategy";
import express = require("express");
interface IStrategyOptions {
usernameField?: string | undefined;
passwordField?: string | undefined;
session?: boolean | undefined;
passReqToCallback?: false | undefined;
}
interface IStrategyOptionsWithRequest {
usernameField?: string | undefined;
passwordField?: string | undefined;
session?: boolean | undefined;
passReqToCallback: true;
}
interface IVerifyOptions {
message: string;
}
interface VerifyFunctionWithRequest {
(
req: express.Request,
username: string,
password: string,
done: (error: any, user?: any, options?: IVerifyOptions) => void
): void;
}
interface VerifyFunction {
(
username: string,
password: string,
done: (error: any, user?: any, options?: IVerifyOptions) => void
): void;
}
declare class Strategy extends PassportStrategy {
constructor(
options: IStrategyOptionsWithRequest,
verify: VerifyFunctionWithRequest
);
constructor(options: IStrategyOptions, verify: VerifyFunction);
constructor(verify: VerifyFunction);
name: string;
}
Additional Details
- Last updated: Wed, 07 Jul 2021 17:02:26 GMT
- Dependencies: @types/passport-strategy, @types/express, @types/passport
- Global values: none
Credits
These definitions were written by Maxime LUCE.
1.0.38
6 months ago
1.0.37
6 months ago
1.0.36
7 months ago
1.0.35
1 year ago
1.0.34
3 years ago
1.0.33
6 years ago
1.0.32
7 years ago
1.0.31
7 years ago
1.0.30
7 years ago
1.0.29
8 years ago
1.0.28
8 years ago
1.0.27-alpha
8 years ago
1.0.26-alpha
8 years ago
1.0.25-alpha
8 years ago
1.0.24-alpha
8 years ago
1.0.23-alpha
8 years ago
1.0.22-alpha
8 years ago
1.0.21-alpha
8 years ago
1.0.16-alpha
8 years ago
1.0.15-alpha
8 years ago