move HomeserverConnected

This commit is contained in:
Timo K
2025-11-21 13:04:28 +01:00
parent d34775fc47
commit 4099c4383d
9 changed files with 318 additions and 72 deletions

View File

@@ -22,11 +22,13 @@ export type OpenIDClientParts = Pick<
"getOpenIdToken" | "getDeviceId"
>;
/**
*
* Gets a bearer token from the homeserver and then use it to authenticate
* to the matrix RTC backend in order to get acces to the SFU.
* It has built-in retry for calls to the homeserver with a backoff policy.
* @param client
* @param serviceUrl
* @param matrixRoomId
* @returns
* @returns Object containing the token information
* @throws FailToGetOpenIdToken
*/
export async function getSFUConfigWithOpenID(