Skip to content

Commit

Permalink
update JS docs
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Oct 27, 2023
1 parent 4acbed2 commit eaf7e28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docusaurus/video/docusaurus/docs/api/basics/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const guest = (await client.createGuest({ user: guest })).user;
While it is usually safer for data retention to deactivate a user, some use cases require completely deleting a user and their data.

Once a user has been deleted, it cannot be un-deleted and the user_id cannot be used again.

<Tabs groupId="examples">
<TabItem value="js" label="JavaScript">

Expand All @@ -134,6 +135,7 @@ client.deactivateUser({

client.deleteUser({ userId: '<id>' });
```

</TabItem>
</Tabs>

Expand All @@ -143,8 +145,8 @@ Stream uses JWT (JSON Web Tokens) to authenticate chat users, enabling them to l

You can optionally provide

- expiration time
- issued at date which is necessary if you manually wan to revoke tokens
- Expiration time. By default tokens don't have an expiration date.
- Issued at date which is necessary if you manually wan to revoke tokens. By default the issued at date is set to the current date.

<Tabs groupId="examples">
<TabItem value="js" label="JavaScript">
Expand Down Expand Up @@ -194,12 +196,7 @@ const iat = Math.round(new Date().getTime() / 1000);

const call_cids = ['default:call1', 'livestream:call2'];

client.createToken(
(user_id = user_id),
(exp = exp),
(iat = iat),
(call_cids = call_cids),
);
client.createCallToken(userId, call_cids, exp, iat);
```

</TabItem>
Expand Down
4 changes: 4 additions & 0 deletions docusaurus/video/docusaurus/docs/api/streaming/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ Press start streaming in OBS. The RTMP stream will now show up in your call just
You can test the livestream with the test application linked above.

For more information on this topic see the [RTMP page](../rtmp).

## Recording

Liverstreams (and any others calls) can be recorded for later use, for more information see the [Recording section](../../recording/calls).

0 comments on commit eaf7e28

Please sign in to comment.