Skip to content

needlag/txn-shield-sdk-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@txnshield/sdk-web

Framework-agnostic browser SDK for TxnShield.

It is responsible for:

  • publishable-key initialization
  • per-session and per-tab continuity context
  • lightweight human-signal capture
  • protected transaction preparation

Example:

import { createTxnShieldWeb } from "@txnshield/sdk-web";

const shield = createTxnShieldWeb({
  publishableKey: "txn_pub_...",
  apiBaseUrl: "https://txnshield.com",
});

await shield.start();

const prepared = await shield.prepareTransaction({
  operationKey: "customer.read_pii",
  resource: { type: "customer", id: "cus_1001" },
});

About

Framework-agnostic browser SDK for TxnShield.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors