Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
axios-easy-auth
Advanced tools
const auth = new EasyAuth('https://site.com', 'Bearer token')
First we need to create the EasyAuth class. Parameters accept site url, access token.
const postData = async () => { const responce = await auth.post('/posts', {}, {Header: 'value'}) console.log('POST') console.log(responce.data) } // post(path: string, body: array, headers: array)
Then you can make requests to the server. EasyAuth supports GET, POST, PUT, PATCH, DELETE methods. Documentation for all methods on github. Please write about errors there.
Пример: https://github.com/KirillUsenko/examples-axios-easy-auth
const auth = new EasyAuth('https://site.com', 'Bearer token')
Для начала нужно создать класс EasyAuth. Параметрами принимает url сайта, access токен.
const postData = async () => { const responce = await auth.post('/posts', {}, {Header: 'value'}) console.log('POST') console.log(responce.data) } // post(path: string, body: array, headers: array)
Далее можно делать запросы на сервер. EasyAuth поддерживает методы GET, POST, PUT, PATCH, DELETE. Документация для всех методов на github. Про ошибки пишите туда же.
Пример: https://github.com/KirillUsenko/examples-axios-easy-auth
FAQs
Modified axios with a simple addition of headers
The npm package axios-easy-auth receives a total of 1 weekly downloads. As such, axios-easy-auth popularity was classified as not popular.
We found that axios-easy-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.