@types/hapi-auth-basic
TypeScript icon, indicating that this package has built-in type declarations

5.0.8 • Public • Published

Installation

npm install --save @types/hapi-auth-basic

Summary

This package contains type definitions for hapi-auth-basic (https://github.com/hapijs/hapi-auth-basic).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi-auth-basic.

index.d.ts

import { Plugin, Request, ResponseToolkit } from "hapi";

declare namespace Basic {
    interface ValidateCustomResponse {
        response: any;
    }

    interface ValidateResponse {
        isValid: boolean;
        credentials?: any;
    }

    interface Validate {
        (
            request: Request,
            username: string,
            password: string,
            h: ResponseToolkit,
        ): Promise<ValidateResponse | ValidateCustomResponse>;
    }
}

declare var Basic: Plugin<{}>;

export = Basic;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/hapi

Credits

These definitions were written by AJP, and Rodrigo Saboya.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hapi-auth-basic

Weekly Downloads

62

Version

5.0.8

License

MIT

Unpacked Size

3.91 kB

Total Files

5

Last publish

Collaborators

  • types