![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@basis-theory/3ds-web
Advanced tools
> [!CAUTION] > This SDK has been deprecated. > > Our new SDK can be found at https://github.com/Basis-Theory/web-threeds > > See our documentation site for more information. https://developers.basistheory.com/docs/sdks/web/3ds
[!CAUTION] This SDK has been deprecated.
Our new SDK can be found at https://github.com/Basis-Theory/web-threeds
See our documentation site for more information. https://developers.basistheory.com/docs/sdks/web/3ds
The 3DS-Web SDK 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 3DS-Web SDK exposes two main methods: createSession
and startChallenge
. These methods facilitate the initiation and handling of 3DS sessions and challenges.
createSession
createSession({ 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.
startChallenge
startChallenge(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
> [!CAUTION] > This SDK has been deprecated. > > Our new SDK can be found at https://github.com/Basis-Theory/web-threeds > > See our documentation site for more information. https://developers.basistheory.com/docs/sdks/web/3ds
We found that @basis-theory/3ds-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.