
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.
@basis-theory/web-threeds
Advanced tools
The web-threeds package is a JavaScript/TypeScript library designed to simplify the implementation of 3DS (3D Secure) authentication processes in web applications. It provides a streamlined interface for handling both the session creation and challenge st
web-threedsThe web-threeds package is a JavaScript/TypeScript library designed to simplify the implementation of 3DS (3D Secure) authentication processes in web applications. It provides a streamlined interface for handling both the session creation and challenge steps of the 3DS process.
The web-threeds package exposes two main methods: createSession and startChallenge. These methods facilitate the initiation and handling of 3DS sessions and challenges.
createSessioncreateSession({ pan }: Create3dsSessionRequest): Promise<Create3dsSessionResponse>
This method initiates a 3DS session by making a request to the server with the provided PAN (Primary Account Number). It returns a promise that resolves to a Create3dsSessionResponse object containing session details.
startChallengestartChallenge(options: ThreeDSChallengeRequest): Promise<void>
This method starts a 3DS challenge by making a request to the ACS (Access Control Server) with the necessary parameters. It handles the challenge process and returns a promise.
import { BasisTheory3ds } from '3ds-web';
const apiKey = 'your_api_key';
const { createSession } = BasisTheory3ds(apiKey);
const session = await createSession({
pan: '<BASIS_THEORY_TOKEN_ID>',
});
import { BasisTheory3ds } from '3ds-web';
const apiKey = 'your_api_key';
const { startChallenge } = BasisTheory3ds(apiKey);
await startChallenge({
sessionId: 'session_id',
acsTransactionId: 'acs_transaction_id',
acsChallengeUrl: 'acs_challenge_url',
threeDSVersion: '2.2.0',
windowSize: '05', // Optional, defaults to 'THREE'
});
challengeContainerOptions allows you to customize the id property of the 3DS challenge container so you can target it and apply styling using CSS. It enables precise positioning of the 3DS challenge interface within your app's layout.
const { startChallenge } = BasisTheory3ds(apiKey, {
challengeConfigurationOptions: {
id: 'customId',
},
});
FAQs
The web-threeds package is a JavaScript/TypeScript library designed to simplify the implementation of 3DS (3D Secure) authentication processes in web applications. It provides a streamlined interface for handling both the session creation and challenge st
The npm package @basis-theory/web-threeds receives a total of 1,308 weekly downloads. As such, @basis-theory/web-threeds popularity was classified as popular.
We found that @basis-theory/web-threeds demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

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.