
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.
使用前提,必须先安装axios、vue-router插件
npm i uf-auth -S
import ufAuth form 'uf-auth';
import router from '@/router';
在main.js中,载入router
app.use(router)
之前添加以下code;
const options = {
router: router, ---- 必需,vue-route
ssoUrl: ssoUrl ---- 可选,默认值为 "http://sso.xiamenair.com.cn"
logout: logout ---- 可选,处理登出的方法
}
ufAuth(options);
插件包含3个部分
设置通用axios设置方法: ufAuth(options)
options = {
baseUrl: baseUrl, ---- 必需,输入接口使用的基础域名,例如: 'http://localhost:8001'
router: router, ---- 必需,vue-route
ssoUrl: ssoUrl ---- 可选,默认值为 "http://sso.xiamenair.com.cn"
logout: logout ---- 可选,处理登出的方法
}
logout默认方法:
function logout() {
window.localStorage.removeItem('Authorization');
router.push({ path: "/login" });
}
FAQs
The npm package uf-auth receives a total of 0 weekly downloads. As such, uf-auth popularity was classified as not popular.
We found that uf-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.

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.