suprsend / suprsend-browser-sdk

Suprsend Javascript SDK for browsers
https://suprsend.com
MIT License
10 stars 0 forks source link
javascript notifications suprsend

suprsend-browser-sdk

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.

Installation

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

Initialization

Initialize the Suprsend SDK

import suprsend from "@suprsend/web-sdk";

...

suprsend.init(WORKSPACE_KEY, WORKSPACE_SECRET); // Initialize SDK

Refer full documentation here