diff --git a/src/livekit/openIDSFU.ts b/src/livekit/openIDSFU.ts index 9d46c51..e4d0d45 100644 --- a/src/livekit/openIDSFU.ts +++ b/src/livekit/openIDSFU.ts @@ -47,7 +47,7 @@ export async function getSFUConfigWithOpenID( device_id: client.getDeviceId(), }), }); - if (res.status / 100 !== 2) { + if (!res.ok) { throw new Error("SFO Config fetch failed with status code " + res.status); } const sfuConfig = await res.json();