Installation
npm install --save @types/passport-microsoft
Summary
This package contains type definitions for passport-microsoft (https://github.com/seanfisher/passport-microsoft#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-microsoft.
import * as oauth2 from "passport-oauth2";
export {};
type OptionalOptionParameters = "authorizationURL" | "tokenURL" | "scopeSeparator" | "customHeaders";
interface MicrosoftSpecificStrategyOptions {
tenant: string;
}
export type MicrosoftStrategyOptions =
& Omit<oauth2.StrategyOptions, OptionalOptionParameters>
& Partial<oauth2.StrategyOptions>
& Partial<MicrosoftSpecificStrategyOptions>;
export type MicrosoftStrategyOptionsWithRequest =
& Omit<oauth2.StrategyOptionsWithRequest, OptionalOptionParameters>
& Partial<oauth2.StrategyOptionsWithRequest>
& Partial<MicrosoftSpecificStrategyOptions>;
export class Strategy extends oauth2.Strategy {
constructor(options: MicrosoftStrategyOptions, verify: oauth2.VerifyFunction);
constructor(options: MicrosoftStrategyOptionsWithRequest, verify: oauth2.VerifyFunctionWithRequest);
}
Additional Details
Credits
These definitions were written by Eitan Levi.