Suprsend Javascript SDK for browsers
📘 v2 version of @suprsend/web-sdk is available.
We have changed the web SDK authentication from workspace key-secret to public key and JWT based authentication in v2. This is done to improve security in frontend applications.
- For migrating to v2, follow this guide
- Refer the v2 SDK documentation
- Github respository link for v2 version of this sdk.
suprsend-browser-sdk
is available as npm package. You can install using npm or yarn.
Using npm:
npm install @suprsend/web-sdk
Using yarn:
yarn add @suprsend/web-sdk
Initialize the Suprsend SDK
import suprsend from "@suprsend/web-sdk";
...
suprsend.init(WORKSPACE_KEY, WORKSPACE_SECRET); // Initialize SDK
Refer full documentation here