diff --git a/src/Lifecycle.ts b/src/Lifecycle.ts index a7f4d6d31b..279589ff5f 100644 --- a/src/Lifecycle.ts +++ b/src/Lifecycle.ts @@ -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,