From b1f84a34a82c3ed0d3f672a6ceb23403a5cf7771 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 2 Apr 2026 20:42:09 +0200 Subject: [PATCH] remove dead commented code --- src/livekit/openIDSFU.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/livekit/openIDSFU.ts b/src/livekit/openIDSFU.ts index d1f6d451..dfe04323 100644 --- a/src/livekit/openIDSFU.ts +++ b/src/livekit/openIDSFU.ts @@ -137,21 +137,9 @@ export async function getSFUConfigWithOpenID( } catch (e) { logger?.debug(`Failed fetching jwt with matrix 2.0 endpoint:`, e); // Make this throw a hard error in case we force the matrix2.0 endpoint. - if (forceMatrix2Jwt) throw new NoMatrix2AuthorizationService(e as Error); - - // if (e instanceof NotSupportedError) { - // logger?.warn( - // `Failed fetching jwt with matrix 2.0 endpoint (retry with legacy) Not supported`, - // e, - // ); - // } else { - // logger?.warn( - // `Failed fetching jwt with matrix 2.0 endpoint other issues ->`, - // `(not going to try with legacy endpoint: forceOldJwtEndpoint is set to false, we did not get a not supported error from the sfu)`, - // e, - // ); - // // NEVER get bejond this point if we forceMatrix2 and it failed! - // } + if (forceMatrix2Jwt) { + throw new NoMatrix2AuthorizationService(e as Error); + } } }