Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@ackee/antonio-auth
Advanced tools
@ackee/antonio-auth
It includes a request interceptor for @ackee/antonio-core
that sets the Authorization
header with an access token obtained from getAccessToken
from @ackee/petrus
.
yarn add @ackee/antonio-auth -S
# Check you have installed at least these dependencies' versions:
yarn add @ackee/petrus@5.2.1
requestAuthHeaderInterceptor(request: Request): Request
A request interceptor that sets the Authorization
header with setAuthHeader
from @ackee/antonio-utils
and obtained from getAccessToken
from @ackee/petrus
.
import { Antonio } from '@ackee/antonio-core';
import { requestAuthHeaderInterceptor } from '@ackee/antonio-auth';
const api = new Antonio({
baseURL: '...',
});
api.interceptors.request.use(null, requestAuthHeaderInterceptor);
import { Antonio } from '@ackee/antonio-core';
import { setAuthHeader } from '@ackee/antonio-utils';
const api = new Antonio({
baseURL: '...',
});
function* getAccessToken() {
// Your custom function for obtaining the access token.
}
api.interceptors.request.use(null, function* (request) {
const accessToken = yield getAccessToken();
setAuthHeader(requst.headers, accessToken);
return request;
});
4.0.7 (2021-10-19)
<a name="4.0.6"></a>
FAQs
![ackee|Antonio](/assets/ackee_git_frontend_antonio.png)
The npm package @ackee/antonio-auth receives a total of 35 weekly downloads. As such, @ackee/antonio-auth popularity was classified as not popular.
We found that @ackee/antonio-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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 researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.