From eaf7e287de6d4e14a970334385ef4e988d58992b Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Fri, 27 Oct 2023 11:05:07 +0200 Subject: [PATCH] update JS docs --- .../docusaurus/docs/api/basics/authentication.mdx | 13 +++++-------- .../docusaurus/docs/api/streaming/overview.mdx | 4 ++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/basics/authentication.mdx b/docusaurus/video/docusaurus/docs/api/basics/authentication.mdx index d971c3d3..6a10d886 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/authentication.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/authentication.mdx @@ -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. + @@ -134,6 +135,7 @@ client.deactivateUser({ client.deleteUser({ userId: '' }); ``` + @@ -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. @@ -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); ``` diff --git a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx index 2ad585ba..3557d856 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx @@ -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).