🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

jm-basic-auth-credentials

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jm-basic-auth-credentials

Get credentials from basic auth header

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

jm-basic-auth-credentials

Get credentials from basic authorization header.

Installation

$ npm install jm-basic-auth-credentials

Example

//http authorization header for 'foo:bar'
const header = 'Basic Zm9vOmJhcg=='

const getCredentials = require('jm-basic-auth-credentials')
const {username, password} = getCredentials(header)

//username is now 'foo', password is 'bar'

License

MIT

Keywords

basic

FAQs

Package last updated on 11 Jul 2016

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