You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# api.video video uploader
4
4
5
-
Typescript library to upload videos to api.video using delegated token (or usual access token) from front-end.
5
+
Typescript library to upload videos to api.video using delegated upload token (or usual access token) from the front-end.
6
6
7
7
# Usage
8
8
@@ -78,18 +78,21 @@ Then, once the `window.onload` event has been trigered, create your player using
78
78
79
79
## Options
80
80
81
-
The upload is instanciated using an `options` object. Options to provide depend on the way you want to authenticate to the API: either using a delegated upload token (recommanded), or using a usual access token.
81
+
The upload library is instanciated using an `options` object. Options to provide depend on the way you want to authenticate to the API: either using a delegated upload token (recommanded), or using a usual access token.
82
82
83
-
### Using a delegated token:
83
+
### Using a delegated upload token (recommended):
84
+
85
+
Using delegated upload tokens for authentication is best options when uploading from the client side. To know more about delegated upload token, read the dedicated article on api.video's blog: [Delegated Uploads](https://api.video/blog/tutorials/delegated-uploads).
| uploadToken |**yes**| string | your upload token |
89
91
|_common options (see bellow)_||||
90
92
93
+
### Using an access token (discouraged):
91
94
92
-
### Using an access token:
95
+
**Warning**: be aware that exposing your access token client-side can lead to huge security issues. Use this method only if you know what you're doing :).
93
96
94
97
95
98
| Option name | Mandatory | Type | Description |
@@ -104,7 +107,7 @@ The upload is instanciated using an `options` object. Options to provide depend
0 commit comments