Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/extract_livekit_token_crate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
livekit: patch
livekit-api: patch
livekit-ffi: patch
livekit-token: patch
livekit-uniffi: patch
---

Moves access-token generation and verification into a new `livekit-token` crate.
`livekit_api::access_token::*` continues to resolve to the same types via a
re-export, so no consumer changes are needed.

Also fixes the `services-tokio` and `services-async` features, which used the
access-token types without declaring the `access-token` feature. Building with
`--no-default-features --features services-tokio` previously failed to compile.
19 changes: 15 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"livekit-ffi",
"livekit-uniffi",
"livekit-datatrack",
"livekit-token",
"livekit-token-source",
"livekit-ffi-node-bindings",
"livekit-net",
Expand Down Expand Up @@ -54,6 +55,7 @@ livekit = { version = "0.8.3", path = "livekit" }
livekit-api = { version = "0.6.3", path = "livekit-api" }
livekit-ffi = { version = "0.12.75", path = "livekit-ffi" }
livekit-datatrack = { version = "0.1.13", path = "livekit-datatrack" }
livekit-token = { version = "0.1.0", path = "livekit-token" }
livekit-token-source = { version = "0.1.1", path = "livekit-token-source" }
livekit-common = { version = "0.1.1", path = "livekit-common" }
livekit-data-stream = { version = "0.1.2", path = "livekit-data-stream" }
Expand Down
9 changes: 9 additions & 0 deletions knope.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ versioned_files = [
changelog = "livekit-net/CHANGELOG.md"
scopes = ["livekit-net"]

[packages.livekit-token]
versioned_files = [
"livekit-token/Cargo.toml",
"Cargo.lock",
{ path = "Cargo.toml", dependency = "livekit-token" },
]
changelog = "livekit-token/CHANGELOG.md"
scopes = ["livekit-token"]

[packages.libwebrtc]
versioned_files = [
"libwebrtc/Cargo.toml",
Expand Down
13 changes: 4 additions & 9 deletions livekit-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ signal-client-tokio = ["signal-client", "livekit-net/native-tokio", "liveki
signal-client-async = ["signal-client", "livekit-net/native-async", "livekit-runtime/async"]
signal-client-dispatcher = ["signal-client", "livekit-net/native-dispatcher", "livekit-runtime/dispatcher"]

services-tokio = ["dep:reqwest", "dep:tokio", "tokio/time", "dep:livekit-runtime", "livekit-runtime/tokio"]
services-async = ["dep:isahc", "dep:livekit-runtime", "livekit-runtime/async"]
access-token = ["dep:jsonwebtoken", "dep:hmac", "dep:signature"]
services-tokio = ["access-token", "dep:reqwest", "dep:tokio", "tokio/time", "dep:livekit-runtime", "livekit-runtime/tokio"]
services-async = ["access-token", "dep:isahc", "dep:livekit-runtime", "livekit-runtime/async"]
access-token = ["dep:livekit-token"]
webhooks = ["access-token", "dep:serde_json", "dep:base64"]

# TLS Configuration
Expand Down Expand Up @@ -71,6 +71,7 @@ __rustls-tls = ["livekit-net?/__rustls-tls", "reqwest?/__
[dependencies]
livekit-net = { workspace = true, optional = true }
livekit-protocol = { workspace = true }
livekit-token = { workspace = true, optional = true }
livekit-common = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true, features = ["derive"] }
Expand All @@ -85,12 +86,6 @@ pbjson-types = "0.6"
serde_json = { workspace = true, optional = true }
base64 = { version = "0.21", optional = true, features = ["std"] }

# access_token: HS256 only, via the in-crate HMAC CryptoProvider (jwt_provider.rs).
# Dropping jsonwebtoken's rust_crypto bundle avoids linking RSA/EC/EdDSA.
jsonwebtoken = { version = "10", default-features = false, optional = true }
hmac = { version = "0.12", optional = true }
signature = { version = "2", optional = true }

# signal_client
livekit-runtime = { workspace = true, optional = true, default-features = false }
tokio = { workspace = true, default-features = false, features = ["sync", "macros", "signal", "io-util", "net"], optional = true }
Expand Down
16 changes: 5 additions & 11 deletions livekit-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

#![doc = include_str!("../README.md")]

// The token implementation lives in the livekit-token crate. This alias keeps
// the historical `livekit_api::access_token::*` paths working, and remains the
// documented, supported way to reach these types.
#[cfg(feature = "access-token")]
pub mod access_token;

#[cfg(feature = "access-token")]
mod jwt_provider;
#[doc(inline)]
pub use livekit_token as access_token;

#[cfg(any(feature = "services-tokio", feature = "services-async"))]
pub mod services;
Expand All @@ -37,10 +38,3 @@ mod region;

#[cfg(feature = "webhooks")]
pub mod webhooks;

#[allow(dead_code)]
pub(crate) fn get_env_keys() -> Result<(String, String), std::env::VarError> {
let api_key = std::env::var("LIVEKIT_API_KEY")?;
let api_secret = std::env::var("LIVEKIT_API_SECRET")?;
Ok((api_key, api_secret))
}
5 changes: 1 addition & 4 deletions livekit-api/src/services/agent_dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
// limitations under the License.

use super::{twirp_client::TwirpClient, ServiceBase, ServiceResult, LIVEKIT_PACKAGE};
use crate::{
access_token::{AccessTokenError, VideoGrants},
get_env_keys,
};
use http::header::HeaderMap;
use livekit_protocol as proto;
use livekit_token::{get_env_keys, AccessTokenError, VideoGrants};

const SVC: &str = "AgentDispatchService";

Expand Down
2 changes: 1 addition & 1 deletion livekit-api/src/services/api_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use super::failover::FailoverConfig;
use super::sip::CreateSIPParticipantOptions;
use super::twirp_client::{ServerError, ServerResult, TwirpClient};
use super::{LiveKitApi, ServiceError, SipCallError, LIVEKIT_PACKAGE};
use crate::access_token::{AccessToken, VideoGrants};
use livekit_token::{AccessToken, VideoGrants};

fn base_url() -> String {
std::env::var("LK_TEST_SERVER_URL").unwrap_or_else(|_| "http://127.0.0.1:9999".to_owned())
Expand Down
3 changes: 2 additions & 1 deletion livekit-api/src/services/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ use std::time::Duration;

use super::{ServiceBase, ServiceResult, LIVEKIT_PACKAGE};
use crate::services::dial_timeout::DEFAULT_RINGING_TIMEOUT;
use crate::{access_token::VideoGrants, get_env_keys, services::twirp_client::TwirpClient};
use crate::services::twirp_client::TwirpClient;
use livekit_token::{get_env_keys, VideoGrants};

const SVC: &str = "Connector";

Expand Down
3 changes: 2 additions & 1 deletion livekit-api/src/services/egress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
use livekit_protocol as proto;

use super::{ServiceBase, ServiceResult, LIVEKIT_PACKAGE};
use crate::{access_token::VideoGrants, get_env_keys, services::twirp_client::TwirpClient};
use crate::services::twirp_client::TwirpClient;
use livekit_token::{get_env_keys, VideoGrants};

#[derive(Clone, Copy, Debug, Default)]
pub enum AudioMixing {
Expand Down Expand Up @@ -481,7 +482,7 @@
video_codec: opts.video_codec as i32,
video_bitrate: opts.video_bitrate,
key_frame_interval: opts.keyframe_interval,
audio_quality: opts.audio_quality,

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`

Check warning on line 485 in livekit-api/src/services/egress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::EncodingOptions::audio_quality`
video_quality: opts.video_quality,
}
}
Expand Down
3 changes: 2 additions & 1 deletion livekit-api/src/services/ingress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
use livekit_protocol as proto;

use super::{ServiceBase, ServiceResult, LIVEKIT_PACKAGE};
use crate::{access_token::VideoGrants, get_env_keys, services::twirp_client::TwirpClient};
use crate::services::twirp_client::TwirpClient;
use livekit_token::{get_env_keys, VideoGrants};

#[derive(Default, Clone, Debug)]
pub struct CreateIngressOptions {
Expand Down Expand Up @@ -124,7 +125,7 @@
participant_name: options.participant_name,
audio: Some(options.audio),
video: Some(options.video),
bypass_transcoding: options.bypass_transcoding,

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`

Check warning on line 128 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateIngressRequest::bypass_transcoding`
enable_transcoding: options.enable_transcoding,
url: options.url,
enabled: Default::default(), // TODO: support this attribute
Expand Down Expand Up @@ -154,7 +155,7 @@
participant_name: options.participant_name,
audio: Some(options.audio),
video: Some(options.video),
bypass_transcoding: options.bypass_transcoding,

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`

Check warning on line 158 in livekit-api/src/services/ingress.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::UpdateIngressRequest::bypass_transcoding`
enable_transcoding: options.enable_transcoding,
enabled: Default::default(), // TODO: support this attribute
},
Expand Down
2 changes: 1 addition & 1 deletion livekit-api/src/services/livekit_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use super::ingress::IngressClient;
use super::room::RoomClient;
use super::sip::SIPClient;
use super::{ServiceBase, ServiceResult};
use crate::get_env_keys;
use crate::http_client;
use livekit_token::get_env_keys;

/// A single entry point to every LiveKit server API, exposing each service
/// through an accessor (`room()`, `egress()`, `ingress()`, `sip()`,
Expand Down
2 changes: 1 addition & 1 deletion livekit-api/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::fmt::{Debug, Display};
use http::header::{HeaderMap, HeaderValue, AUTHORIZATION};
use thiserror::Error;

use crate::access_token::{AccessToken, AccessTokenError, SIPGrants, VideoGrants};
use livekit_token::{AccessToken, AccessTokenError, SIPGrants, VideoGrants};

pub use livekit_api::LiveKitApi;
pub use twirp_client::{
Expand Down
3 changes: 2 additions & 1 deletion livekit-api/src/services/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use livekit_protocol as proto;
use std::collections::HashMap;

use super::{ServiceBase, ServiceResult, LIVEKIT_PACKAGE};
use crate::{access_token::VideoGrants, get_env_keys, services::twirp_client::TwirpClient};
use crate::services::twirp_client::TwirpClient;
use livekit_token::{get_env_keys, VideoGrants};
use rand::Rng;

const SVC: &str = "RoomService";
Expand Down
3 changes: 1 addition & 2 deletions livekit-api/src/services/sip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
use std::collections::HashMap;
use std::time::Duration;

use crate::access_token::{SIPGrants, VideoGrants};
use crate::get_env_keys;
use crate::services::dial_timeout::{dial_timeout, DEFAULT_RINGING_TIMEOUT};
use crate::services::twirp_client::TwirpClient;
use crate::services::{ServiceBase, ServiceResult, LIVEKIT_PACKAGE};
use livekit_token::{get_env_keys, SIPGrants, VideoGrants};
use pbjson_types::Duration as ProtoDuration;

const SVC: &str = "SIP";
Expand Down Expand Up @@ -273,7 +272,7 @@

// TODO: support these attributes
include_headers: Default::default(),
media_encryption: Default::default(),

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`

Check warning on line 275 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipInboundTrunkInfo::media_encryption`
created_at: Default::default(),
updated_at: Default::default(),
media: Default::default(),
Expand Down Expand Up @@ -317,7 +316,7 @@

// TODO: support these attributes
include_headers: Default::default(),
media_encryption: Default::default(),

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`

Check warning on line 319 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::SipOutboundTrunkInfo::media_encryption`
destination_country: Default::default(),
created_at: Default::default(),
updated_at: Default::default(),
Expand Down Expand Up @@ -436,7 +435,7 @@
#[deprecated]
pub async fn list_sip_trunk(
&self,
filter: ListSIPTrunkFilter,

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated enum `services::sip::ListSIPTrunkFilter`

Check warning on line 438 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated enum `services::sip::ListSIPTrunkFilter`
) -> ServiceResult<Vec<proto::SipTrunkInfo>> {
let resp: proto::ListSipTrunkResponse = self
.client
Expand Down Expand Up @@ -674,7 +673,7 @@
display_name: options.display_name.to_owned(),
dtmf: options.dtmf.to_owned().unwrap_or_default(),
wait_until_answered,
play_ringtone: options.play_dialtone.unwrap_or(false),

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`

Check warning on line 676 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::play_ringtone`
play_dialtone: options.play_dialtone.unwrap_or(false),
hide_phone_number: options.hide_phone_number.unwrap_or(false),
max_call_duration: Self::duration_to_proto(options.max_call_duration),
Expand All @@ -682,7 +681,7 @@
krisp_enabled: options.enable_krisp.unwrap_or(false),
headers: options.headers.unwrap_or_default(),
include_headers: options.include_headers.map(|h| h as i32).unwrap_or_default(),
media_encryption: options.media_encryption.map(|e| e as i32).unwrap_or_default(),

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (tokio), cargo test -p livekit-api --no-default-features --features service...

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / livekit-api (services (async / isahc), cargo test -p livekit-api --no-default-features --features...

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios-sim)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-apple-ios)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (aarch64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Build (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-unknown-linux-gnu)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (aarch64-apple-darwin)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`

Check warning on line 684 in livekit-api/src/services/sip.rs

View workflow job for this annotation

GitHub Actions / Test (x86_64-pc-windows-msvc)

use of deprecated field `livekit_protocol::CreateSipParticipantRequest::media_encryption`
..Default::default()
};
let headers = self.base.auth_header(
Expand Down
2 changes: 1 addition & 1 deletion livekit-api/src/webhooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use livekit_protocol as proto;
use sha2::{Digest, Sha256};
use thiserror::Error;

use crate::access_token::{AccessTokenError, TokenVerifier};
use livekit_token::{AccessTokenError, TokenVerifier};

#[derive(Debug, Error)]
pub enum WebhookError {
Expand Down
20 changes: 20 additions & 0 deletions livekit-token/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "livekit-token"
version = "0.1.0"
license.workspace = true
description = "Core logic for generating LiveKit tokens"
edition.workspace = true
repository.workspace = true
readme = "README.md"

[dependencies]
livekit-protocol = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true, features = ["derive"] }
sha2 = "0.10"

# access_token: HS256 only, via the in-crate HMAC CryptoProvider (jwt_provider.rs).
# Dropping jsonwebtoken's rust_crypto bundle avoids linking RSA/EC/EdDSA.
jsonwebtoken = { version = "10", default-features = false }
hmac = "0.12"
signature = "2"
6 changes: 6 additions & 0 deletions livekit-token/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# LiveKit Token

**Important**:
This is an internal crate which contains logic to generate new LiveKit tokens.

To use this logic in an end application, consume it via its reexport in the `livekit-api` crate.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions livekit-token/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright 2026 LiveKit, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![doc = include_str!("../README.md")]

mod access_token;
mod jwt_provider;

pub use access_token::*;

/// Reads the API key and secret from the `LIVEKIT_API_KEY` and
/// `LIVEKIT_API_SECRET` environment variables.
///
/// Used by [`AccessToken::new`] and [`TokenVerifier::new`], and by the server-API
/// service clients in `livekit-api` for their own env-based constructors.
#[doc(hidden)]
pub fn get_env_keys() -> Result<(String, String), std::env::VarError> {
let api_key = std::env::var("LIVEKIT_API_KEY")?;
let api_secret = std::env::var("LIVEKIT_API_SECRET")?;
Ok((api_key, api_secret))
}
File renamed without changes.
2 changes: 1 addition & 1 deletion livekit-uniffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publish = false

[dependencies]
livekit-protocol = { workspace = true }
livekit-api = { workspace = true, default-features = false, features = ["access-token"] }
livekit-token = { workspace = true }
livekit-datatrack = { workspace = true, features = ["uniffi"] }
uniffi = { workspace = true, features = ["scaffolding-ffi-buffer-fns", "tokio"] }
log = { workspace = true }
Expand Down
10 changes: 4 additions & 6 deletions livekit-uniffi/src/access_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use livekit_api::access_token::{
self, AccessToken, AccessTokenError, SIPGrants, TokenVerifier, VideoGrants,
};
use livekit_protocol::{self as proto, RoomAgentDispatch};
use livekit_token::{self, AccessToken, AccessTokenError, SIPGrants, TokenVerifier, VideoGrants};
use std::{collections::HashMap, time::Duration};

/// An error that can occur during token generation or verification.
Expand Down Expand Up @@ -123,8 +121,8 @@ pub struct Claims {
pub room_configuration: Option<RoomConfiguration>,
}

impl From<livekit_api::access_token::Claims> for Claims {
fn from(claims: livekit_api::access_token::Claims) -> Self {
impl From<livekit_token::Claims> for Claims {
fn from(claims: livekit_token::Claims) -> Self {
Self {
exp: claims.exp as u64,
iss: claims.iss,
Expand Down Expand Up @@ -261,6 +259,6 @@ pub fn token_verify(
///
#[uniffi::export]
pub fn token_claims_from_unverified(token: &str) -> Result<Claims, AccessTokenError> {
let claims = access_token::Claims::from_unverified(token)?;
let claims = livekit_token::Claims::from_unverified(token)?;
Ok(claims.into())
}
Loading