From 7dccfd9e0fa8f411efa74792e5ffd59fb5aa072f Mon Sep 17 00:00:00 2001 From: David Zhao Date: Thu, 21 Nov 2024 23:36:20 -0500 Subject: [PATCH] Updated links to auth docs, remove broken server-api link --- README.md | 8 +++++--- src/main/kotlin/io/livekit/server/AccessToken.kt | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 427093a..696cb8d 100644 --- a/README.md +++ b/README.md @@ -11,16 +11,17 @@ # LiveKit Server SDK for Kotlin + Use this SDK to interact with LiveKit server APIs and create access tokens from your Kotlin backend. - -https://docs.livekit.io/guides/server-api/ + ## Installation This SDK is available as a Maven package through [Maven Central](https://search.maven.org/search?q=g:io.livekit%20a:livekit-server). ### Maven + ```xml title="pom.xml" @@ -77,7 +78,6 @@ public class Main { `Call` adapters are also available through [Retrofit](https://github.com/square/retrofit/tree/master/retrofit-adapters) for other async constructs such as `CompletableFuture` and RxJava. - ### Creating Access Tokens Access tokens can be generated through the `io.livekit.server.AccessToken` class. @@ -98,7 +98,9 @@ System.out.println("New access token: " + token.toJwt()) By default, tokens expire 6 hours after generation. You may override this by using `token.setTtl(long millis)`. +
+ diff --git a/src/main/kotlin/io/livekit/server/AccessToken.kt b/src/main/kotlin/io/livekit/server/AccessToken.kt index 0d66efa..b0bff64 100644 --- a/src/main/kotlin/io/livekit/server/AccessToken.kt +++ b/src/main/kotlin/io/livekit/server/AccessToken.kt @@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit * * Once information is filled out, create the token string with [toJwt]. * - * https://docs.livekit.io/guides/access-tokens + * https://docs.livekit.io/home/get-started/authentication/ */ @Suppress("MemberVisibilityCanBePrivate", "unused") class AccessToken(
LiveKit Ecosystem
Realtime SDKsReact Components · Browser · Swift Components · iOS/macOS/visionOS · Android · Flutter · React Native · Rust · Node.js · Python · Unity (web) · Unity (beta)