🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@types/auth-header

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/auth-header

TypeScript definitions for auth-header

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
11K
-3.6%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/auth-header

Summary

This package contains type definitions for auth-header (https://github.com/izaakschroeder/auth-header).

Details

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

index.d.ts

// Type definitions for auth-header 1.0
// Project: https://github.com/izaakschroeder/auth-header
// Definitions by: ForbesLindesay <https://github.com/ForbesLindesay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

type Params =
    | Array<[string, string | ReadonlyArray<string>]>
    | { [key: string]: string | ReadonlyArray<string> };
export { Params };

export interface TokenOptions {
    scheme: string;
    token?: string | undefined;
    params?: Params | undefined;
}

export interface Token {
    scheme: string;
    params: { [key: string]: string | string[] };
    token: null | string | string[];
}

export function format(token: TokenOptions): string;
export function format(scheme: string, token?: string, params?: Params): string;

export function parse(header: string): Token;

Additional Details

  • Last updated: Fri, 22 Sep 2023 18:11:04 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by ForbesLindesay.

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts