@bytescale/sdk 3.21.3 → 3.21.4
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 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -428,7 +428,7 @@ JWTs are optional.
|
|
|
428
428
|
|
|
429
429
|
With JWTs, the user can download private files directly via the URL, as authentication is performed implicitly via a session cookie _or_ via an `authorization` header if service workers are enabled (see the `serviceWorkerScript` param on the `AuthManager.beginAuthSession` method). This allows the browser to display private files in `<img>`, `<video>`, and other elements.
|
|
430
430
|
|
|
431
|
-
With JWTs, the user can also perform API requests, such as file
|
|
431
|
+
With JWTs, the user can also perform API requests, such as file deletions, as these can be granted by the [JWT's payload](https://www.bytescale.com/docs/types/BytescaleJwt). The Bytescale JavaScript SDK will automatically inject the user's JWT into the `authorization-token` request header for all API requests, assuming the `AuthManager.beginAuthSession` method has been called.
|
|
432
432
|
|
|
433
433
|
[Learn more about the `AuthManager` and JWTs »](https://www.bytescale.com/docs/auth)
|
|
434
434
|
|