DEV Community

Cover image for ReductStore Client SDK for JavaScript v1.2.0: New Features and Example Use
Alexey Timin for ReductStore

Posted on • Edited on • Originally published at reduct.store

ReductStore Client SDK for JavaScript v1.2.0: New Features and Example Use

Hello, everyone!

ReductStore has released v1.2.0 of its
JavaScript SDK. This update includes support
for ReductStore API version 1.2 with the
new Client.me method, which allows you to retrieve information about your current API token and its permissions.

The Client.me method is a useful addition to the ReductStore JavaScript SDK, and can help you manage and monitor your
access to the platform. Here is an example of how you might use it in your application:

const {Client} = require("reduct-js");

const client = new Client("http://127.0.0.1:8383", {apiToken: "my-token"});
const tokenInfo = await client.me();

console.log(tokenInfo.name);
console.log(tokenInfo.permissions.fullAccess);

Enter fullscreen mode Exit fullscreen mode

In addition to the new Client.me method, this release of the ReductStore JavaScript SDK also includes updates to the
documentation to reflect the recent rebranding of the platform. We hope these updates will enhance your experience with
ReductStore.

if you have any questions or feedback, don't hesitate to reach out in Discord
or by opening a discussion on GitHub.

Top comments (0)