@types/passport-microsoft
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Credits

These definitions were written by Eitan Levi.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/passport-microsoft

Weekly Downloads

7,112

Version

1.0.3

License

MIT

Unpacked Size

4.84 kB

Total Files

5

Last publish

Collaborators

  • types