
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@fsdkjs/fsdk-js
Advanced tools
The fsdk JS Client provides easy access to the fsdk API from a client written in Typescript.
You can learn more about this client and how to use it our documentation.
To learn more about the API endpoints that this client allows you to access check out our API reference.
Install the package with:
npm install @fsdkjs/fsdk-js
# or
yarn add @fsdkjs/fsdk-js
Import fsdk as a default import and initiate it:
import fsdk from "@fsdkjs/fsdk-js"
const fsdk = new fsdk()
const { cart } = await fsdk.carts.create({})
Authentication can be achieved in two ways using the fsdk-js client, either by utilizing API keys or by using cookie based authentication, each with their own unique use case.
API keys can only be used for admin functionality in fsdk because only users of the admin system have api keys. To use API keys for authentication the key should be used when fsdk-js is initialized with a config object as described below.
Authentication using cookies is done automatically by Axios when authenticating using the auth endpoints. After authentication all subsequent calls will be authenticated.
note: Cookie based authentication cannot be used in plain node.js applications due to the limitations of axios and useCredentials not setting the Cookie request header when set-cookie is present in the response headers. For pure node.js applications use authentication with api keys(see above)
The package can be initialized with several options:
const fsdk = new fsdk({
maxRetries: 3,
baseUrl: "https://api.example.com",
})
| Option | Default | Description |
|---|---|---|
maxRetries | 0 | The amount of times a request is retried. |
baseUrl | 'http://localhost:9000' | The url to which requests are made to. |
apiKey | '' | Optional api key used for authenticating admin requests . |
FAQs
Client for fsdk Commerce Rest API
The npm package @fsdkjs/fsdk-js receives a total of 0 weekly downloads. As such, @fsdkjs/fsdk-js popularity was classified as not popular.
We found that @fsdkjs/fsdk-js demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.