
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@thangved/callback-window
Advanced tools
A simple handler for external website window callback
Install this package via npm
npm i @thangved/callback-window
Or via yarn
yarn add @thangved/callback-window
import { startCallbackWindow } from '@thangved/callback-window';
const handleCallback = async () => {
try {
const { redirectedUrl } = await startCallbackWindow(
'https://redirect.thangved.com/?redirect_uri=https://profile.thangved.com',
);
console.log(redirectedUrl); // https://profile.thangved.com
} catch (error) {
console.log(error);
}
};
| Option | Type | Default | Description |
|---|---|---|---|
timeout | number | Infinity | Time to close window in milliseconds |
interval | number | 100 | Time to check current URL in milliseconds |
shouldClose | (currentUrl: string) => boolean | Promise<boolean> | – | The window checker should be closed. By default, the window will close when the origin of the window equals the origin of the parent window |
onBrowserNotAllowed | (url: string) => void | – | What to do when the browser does not allow opening new windows; by default changes the current window address to the destination address |
1.1.4-0 (2025-09-15)
This was a version bump only, there were no code changes.
FAQs
A simple handler for external website window callback
The npm package @thangved/callback-window receives a total of 31 weekly downloads. As such, @thangved/callback-window popularity was classified as not popular.
We found that @thangved/callback-window demonstrated a healthy version release cadence and project activity because the last version was released less than 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.