mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Update mxLoginWithAccessToken to grab deviceId from /whoami (#29571)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3f1e56b715
commit
99ea51c6f2
+2
-1
@@ -1149,12 +1149,13 @@ window.mxLoginWithAccessToken = async (hsUrl: string, accessToken: string): Prom
|
|||||||
baseUrl: hsUrl,
|
baseUrl: hsUrl,
|
||||||
accessToken,
|
accessToken,
|
||||||
});
|
});
|
||||||
const { user_id: userId } = await tempClient.whoami();
|
const { user_id: userId, device_id: deviceId } = await tempClient.whoami();
|
||||||
await doSetLoggedIn(
|
await doSetLoggedIn(
|
||||||
{
|
{
|
||||||
homeserverUrl: hsUrl,
|
homeserverUrl: hsUrl,
|
||||||
accessToken,
|
accessToken,
|
||||||
userId,
|
userId,
|
||||||
|
deviceId,
|
||||||
},
|
},
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
|
|||||||
Reference in New Issue
Block a user