1.1.4 • Published 6 months ago

@types/oauth-shim v1.1.4

Weekly downloads
30
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/oauth-shim

Summary

This package contains type definitions for oauth-shim (https://github.com/MrSwitch/node-oauth-shim).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth-shim.

index.d.ts

// Type definitions for oauth-shim 1.1
// Project: https://github.com/MrSwitch/node-oauth-shim
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as express from "express";

export = oauthShim;

declare const oauthShim: oauthShim.Handler;

declare namespace oauthShim {
    interface Handler extends express.RequestHandler {
        interpret: express.RequestHandler;
        proxy: express.RequestHandler;
        redirect: express.RequestHandler;
        unhandled: express.RequestHandler;

        credentials: {
            get(query: any, cb: (success: false | object) => void): void;
        };

        init(configs: Config[]): void;
    }

    interface Request extends express.Request {
        oauthshim?: {
            options?: {
                [key: string]: any;
                path?: string | undefined;
            } | undefined;
            redirect?: string | undefined;
            data?: {
                [key: string]: any;
                access_token?: string | undefined;
            } | undefined;
        } | undefined;
    }

    interface Config {
        client_id: string;
        client_secret: string;
        grant_url: string;
        domain: string;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 18:51:42 GMT
  • Dependencies: @types/express
  • Global values: none

Credits

These definitions were written by BendingBender.

1.1.4

6 months ago

1.1.3

7 months ago

1.1.2

3 years ago

1.1.1

5 years ago

1.1.0

5 years ago