@trycourier/courier-js 2.0.9-beta → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ The base API client and shared instance singleton for Courier's JavaScript Brows
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm
|
|
8
|
+
npm install @trycourier/courier-js@beta
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -50,10 +50,10 @@ To use the SDK, you need to generate a JWT (JSON Web Token) for your user. **Thi
|
|
|
50
50
|
|
|
51
51
|
**How it works:**
|
|
52
52
|
|
|
53
|
-
1. **Your frontend calls your backend:**
|
|
53
|
+
1. **Your frontend calls your backend:**
|
|
54
54
|
- When your app needs to authenticate a user, your frontend should make a request to your own backend (e.g., `/api/generate-courier-jwt`).
|
|
55
55
|
|
|
56
|
-
2. **Your backend calls Courier to issue a JWT:**
|
|
56
|
+
2. **Your backend calls Courier to issue a JWT:**
|
|
57
57
|
- In your backend endpoint, use your [Courier API Key](https://app.courier.com/settings/api-keys) to call the [Courier JWT Token Endpoint](https://www.courier.com/docs/reference/auth/issue-token) and generate a JWT for the user.
|
|
58
58
|
- Your backend then returns the JWT to your frontend.
|
|
59
59
|
|
|
@@ -245,3 +245,9 @@ export interface CourierBrand {
|
|
|
245
245
|
```
|
|
246
246
|
|
|
247
247
|
See more endpoints that aren't in this SDK in the [Courier API Reference](https://www.courier.com/docs/reference/intro).
|
|
248
|
+
|
|
249
|
+
# **Share feedback with Courier**
|
|
250
|
+
|
|
251
|
+
We want to make this the best SDK for managing notifications! Have an idea or feedback about our SDKs? Let us know!
|
|
252
|
+
|
|
253
|
+
[Courier Web Issues](https://github.com/trycourier/courier-web/issues)
|