Skip to content

仓库 files navigation

Parse Authorization

NPM version NPM downloads Build status Test coverage

Parse the HTTP authorization header.

Installation

npm install @borderless/parse-authorization --save

Usage

import { basic, bearer } from "@borderless/parse-authorization";

expect(bearer("Bearer 123")).toEqual("123");
expect(basic("Basic dGVzdDoxMjPCow==")).toEqual(["test", "123£"]);

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

关于

Parse the HTTP authorization header

Resources

安全 policy

Stars

4 stars

关注者

1 watching

复刻s

发布

Used by

贡献者

Languages