
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
nw-login-readapp
Advanced tools
同步登录阅读客户端组件
$ yarn add nw-login-readapp
import LoginReadApp from 'nw-log';
//快速登录
const loginReadApp = new LoginReadApp();
//客户端不强制登录
loginReadApp.syncLoginAtApp(true, false)
//客户端强制登录
loginReadApp.syncLoginAtApp(true, true)
//登录成功后,执行回调函数
loginReadApp.syncLoginAtApp(true, true, function(){xxx})
import LoginReadApp from 'nw-log';
//先调用logout退出,非快速登录
const loginReadApp = new LoginReadApp({csrf_token: 'xxx'});
//客户端不强制登录
loginReadApp.syncLoginAtApp(false, false)
//客户端强制登录
loginReadApp.syncLoginAtApp(false, true)
LoginReadApp实现了客户端内的同步登录,若客户端已登录,会同步登录信息到H5,若客户端未登录,可以根据参数来决定是否调起客户端登录
LoginReadApp实现了客户端内的同步登录,若客户端已登录,会同步登录信息到H5,若客户端未登录,可以根据参数来决定是否调起客户端登录
Kind: global class
See: 源码
Author: SherryWu
| Param | Type | Description |
|---|---|---|
| config | Object | 相关配置 |
| config.csrfToken | boolean | 后端提供的 CSRF token,若调用syncLoginAtApp时fastLogin为true,则不需要该参数 |
调用该方法完成同步登录
Kind: global function
| Param | Type | Default | Description |
|---|---|---|---|
| fastLogin | Boolean | true | 是否要先调用logout.json退出,默认值true:不logout直接登录 |
| needLogin | Boolean | false | 若客户端未登录,是否要调起客户端登录,默认值false:不调起客户端登录 |
| loginCallback | function | 同步登录成功后,调用的callback |
FAQs
> 同步登录阅读客户端组件
The npm package nw-login-readapp receives a total of 3 weekly downloads. As such, nw-login-readapp popularity was classified as not popular.
We found that nw-login-readapp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.