Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
weiling-auth-track
Advanced tools
import AuthTrack from "weiling-auth-track";
##实例化组件
需要传入一个api
域名。
const Api = process.env.VUE_APP_API;
const Auth = new AuthTrack(Api);
Auth类里面包含三个方法。
checkAuth
:判断是否已授权,如果没做授权会302重定向,返回一个布尔值,表示是否需要显示卫瓴授权弹框。//判断是否已授权
Auth.checkAuth().then((privacy_agreement_check: boolean) => {
if (!privacy_agreement_check) state.monitoring_authorization = true;
onGetDetail();
});
shareSDK
:如果需要分享的话需要调这个类,需要传入以下参数。Auth.shareSDK({
title:"",
desc:"",
icon:"",
corpId: "",
materialId: ""
});
watchTime
:如果需要监控浏览时长的话调这个类,需要传入以下参数。Auth.shareSDK({
title:"",
desc:"",
icon:"",
corpId: "",
materialId: ""
});
FAQs
We found that weiling-auth-track 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.