drachtio-mw-auth-parser
0.1.0 • Public • Published drachtio-mw-auth-parser
drachtio middleware for parsing SIP Authorization header, supporting Digest and Basic authorization
Usage
const Srf = require('drachtio-srf');
const srf = new Srf();
const authParser = require('drachtio-mw-auth-parser') ;
srf.connect({...}) ;
srf.use(authParser) ;
srf.register(( req, res ) => {
console.log(req.authorization) ;
}) ;
Package Sidebar
Install
npm i drachtio-mw-auth-parser
Weekly Downloads