
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
(Non-official) Wechat mini program auth helper for Node.js.
yarn add wxapp-auth
import WxappAuth from 'wxapp-auth';
(async function main() {
const wechatAuth = new WxappAuth({
appId: '<WECHAT_APP_ID>',
appSecret: '<WECHAT_APP_SECRET>',
}));
const userInfo = await wechatAuth.getUserInfo({
code: '<LOGIN_CODE>'
rawData: '<RAW_DATA>',
signature: '<SIGNATURE>',
});
}());
new WxappAuth(appId, appSecret)
Create a WxappAuth
instance.
appId
<String>: Wechat app id, requiredappSecret
<String>: Wechat app secret, requiredwxappAuth.getUserInfo(params)
code
<String>: code
from wechat mini program wx.login()
sessionKey
<String>: Session key from getSession(params)rawData
<String>: rawData
from wechat mini program wx.getUserInfo()
signature
<String>: signature
from wechat mini program wx.getUserInfo()
encryptedData
<String>: encryptedData
from wechat mini program wx.getUserInfo()
iv
<String>: iv
from wechat mini program wx.getUserInfo()
code
or sessionKey
is requiredrawData
and signature
, or encryptedData
and iv
are requiredPromise of UserInfo object
wxappAuth.getSession(params)
code
<String>: code
from wechat mini program wx.login()
, requiredPromise of object containing sessionKey
, openid
, and optional unionid
MIT
FAQs
wechat mini program auth helper for node.js
The npm package wxapp-auth receives a total of 3 weekly downloads. As such, wxapp-auth popularity was classified as not popular.
We found that wxapp-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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.