
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@winm2m/web
Advanced tools
This package is a set of features commonly used to build web-based applications. It includes utility functions related to JWT authentication, RESTful API calls to external backend systems, and asynchronous processing. It also includes components to help you handle authentication written in Vue.
To install the package, use npm:
npm install @winm2m/web
import { hasAuthToken, api, setAuthToken } from '@winm2m/web';
if (hasAuthToken()) {
// Do something
}
api.updateBaseURL('https://example.com');
// request unauthorized
api.post('/api/login', { username: 'admin', password: 'admin' }).then((response) => {
// Do something
});
// set token. authToken is stored in localStorage
setAuthToken('some token');
// then, request with token
api.get('/api/get-data').then((response) => {
// Do something
});
// load authToken from localStorage
loadAuthToken();
// to clear authToken
clearAuthToken();
This project is licensed under the MIT License.
FAQs
A package for developing webbased user service.
We found that @winm2m/web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.