Update mxLoginWithAccessToken to grab deviceId from /whoami (#29571)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-03-25 10:32:27 +00:00
committed by GitHub
parent 3f1e56b715
commit 99ea51c6f2

View File

@@ -1149,12 +1149,13 @@ window.mxLoginWithAccessToken = async (hsUrl: string, accessToken: string): Prom
baseUrl: hsUrl,
accessToken,
});
const { user_id: userId } = await tempClient.whoami();
const { user_id: userId, device_id: deviceId } = await tempClient.whoami();
await doSetLoggedIn(
{
homeserverUrl: hsUrl,
accessToken,
userId,
deviceId,
},
true,
false,