1.0.40 • Published 6 months ago
@types/passport-twitter v1.0.40
Installation
npm install --save @types/passport-twitter
Summary
This package contains type definitions for passport-twitter (https://github.com/jaredhanson/passport-twitter).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-twitter.
index.d.ts
// Type definitions for passport-twitter 1.0.4
// Project: https://github.com/jaredhanson/passport-twitter
// Definitions by: James Roland Cabresos <https://github.com/staticfunction>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="passport"/>
import passport = require('passport');
import express = require('express');
interface Profile extends passport.Profile {
gender: string;
username: string;
_raw: string;
_json: any;
_accessLevel: string;
}
interface IStrategyOptionBase {
consumerKey: string;
consumerSecret: string;
callbackURL: string;
includeEmail?: boolean | undefined;
includeStatus?: boolean | undefined;
includeEntities?: boolean | undefined;
requestTokenURL?: string | undefined;
accessTokenURL?: string | undefined;
userAuthorizationURL?: string | undefined;
sessionKey?: string | undefined;
forceLogin?: boolean | undefined;
screenName?: string | undefined;
userProfileURL?: string | undefined;
skipExtendedUserProfile?: boolean | undefined;
}
interface IStrategyOption extends IStrategyOptionBase {
passReqToCallback?: false | undefined;
}
interface IStrategyOptionWithRequest extends IStrategyOptionBase {
passReqToCallback: true;
}
declare class Strategy extends passport.Strategy {
constructor(options: IStrategyOption,
verify: (accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any) => void) => void);
constructor(options: IStrategyOptionWithRequest,
verify: (req: express.Request, accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any) => void) => void);
name: string;
authenticate(req: express.Request, options?: Object): void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:26 GMT
- Dependencies: @types/passport, @types/express
- Global values: none
Credits
These definitions were written by James Roland Cabresos.
1.0.39
7 months ago
1.0.38
8 months ago
1.0.40
6 months ago
1.0.37
3 years ago
1.0.36
4 years ago
1.0.35
4 years ago
1.0.34
6 years ago
1.0.33
7 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