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.
index.d.ts
import * as oauth2 from "passport-oauth2";
// Disable automatic exporting
export {};
// The passport-microsoft library provides defaults for these fields, so they become optional
// when calling the constructor. (No need to export this).
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
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/passport-oauth2
Credits
These definitions were written by Eitan Levi.