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

1.1.4 • Public • Published

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

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: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/express

Credits

These definitions were written by BendingBender.

/@types/oauth-shim/

    Package Sidebar

    Install

    npm i @types/oauth-shim

    Weekly Downloads

    25

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    4.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • types