From 4ea8abdab85a7a1b0ebda60504fbad58dba4e1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Wed, 10 Apr 2024 10:57:23 +0200 Subject: [PATCH 1/2] [Docs] Update "generating a token" section to include link to the server-side docs --- .../Core/LowLevelClient/StreamVideoLowLevelClient.cs | 1 + docusaurus/docs/Unity/03-guides/01-client-auth.mdx | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Packages/StreamVideo/Runtime/Core/LowLevelClient/StreamVideoLowLevelClient.cs b/Packages/StreamVideo/Runtime/Core/LowLevelClient/StreamVideoLowLevelClient.cs index 1b0cf5f8..e4c75299 100644 --- a/Packages/StreamVideo/Runtime/Core/LowLevelClient/StreamVideoLowLevelClient.cs +++ b/Packages/StreamVideo/Runtime/Core/LowLevelClient/StreamVideoLowLevelClient.cs @@ -83,6 +83,7 @@ var sfuWebSocket serializer, timeService, networkMonitor, applicationInfo, logs, config); } + //StreamTodo: review if this is valid for video SDK /// /// Create Development Authorization Token. Dev tokens work only if you enable "Disable Auth Checks" in your project's Dashboard. /// Dev tokens bypasses authorization and should only be used during development and never in production! diff --git a/docusaurus/docs/Unity/03-guides/01-client-auth.mdx b/docusaurus/docs/Unity/03-guides/01-client-auth.mdx index 131a6602..9ab69b6f 100644 --- a/docusaurus/docs/Unity/03-guides/01-client-auth.mdx +++ b/docusaurus/docs/Unity/03-guides/01-client-auth.mdx @@ -53,11 +53,10 @@ public class VideoClient : MonoBehaviour ### Generating a token -* Tokens need to be generated server side. You can use our server side SDKs to quickly add support for this. -Typically you integrate this into the part of your codebase where you login or register users. -The tokens provide a way to authenticate a user or give access to a specific set of calls. +Tokens provide a way to authenticate a user or give access to a specific set of calls. They're similar to passwords but offer more flexibility, allowing you to set the expiry date. For security reasons, tokens need to be generated server-side. +Typically, you integrate this into the part of your codebase where you login or register users. You can use our server-side SDKs to easily add support for this. Follow our server-side SDKs [installation](https://getstream.io/video/docs/api/#installation) and [creating-users-and-user-tokens](https://getstream.io/video/docs/api/#creating-users-and-user-tokens) sections for more information. -* Here's a valid user and token to help you get started on the client side, before integrating with your backend API. +Here's a valid user and token to help you get started on the client side before integrating with your backend API: From a4f62b81e65eb936c90615404b60eef6642fa22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sierpi=C5=84ski?= <33436839+sierpinskid@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:33:50 +0200 Subject: [PATCH 2/2] update docs --- docusaurus/docs/Unity/03-guides/01-client-auth.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/Unity/03-guides/01-client-auth.mdx b/docusaurus/docs/Unity/03-guides/01-client-auth.mdx index 9ab69b6f..2564f0a6 100644 --- a/docusaurus/docs/Unity/03-guides/01-client-auth.mdx +++ b/docusaurus/docs/Unity/03-guides/01-client-auth.mdx @@ -54,7 +54,7 @@ public class VideoClient : MonoBehaviour ### Generating a token Tokens provide a way to authenticate a user or give access to a specific set of calls. They're similar to passwords but offer more flexibility, allowing you to set the expiry date. For security reasons, tokens need to be generated server-side. -Typically, you integrate this into the part of your codebase where you login or register users. You can use our server-side SDKs to easily add support for this. Follow our server-side SDKs [installation](https://getstream.io/video/docs/api/#installation) and [creating-users-and-user-tokens](https://getstream.io/video/docs/api/#creating-users-and-user-tokens) sections for more information. +Typically, you integrate this into the part of your codebase where you login or register users. You can use our server-side SDKs to easily add support for this. For detailed instruction, refer to our server-side docs on [installation](https://getstream.io/video/docs/api/#installation) and [creating-users-and-user-tokens](https://getstream.io/video/docs/api/#creating-users-and-user-tokens). Here's a valid user and token to help you get started on the client side before integrating with your backend API: