diff --git a/src/synapse/authProvider.js b/src/synapse/authProvider.js index 972d599..f36b9d1 100644 --- a/src/synapse/authProvider.js +++ b/src/synapse/authProvider.js @@ -10,6 +10,7 @@ const authProvider = { type: "m.login.password", user: username, password: password, + device_id: localStorage.getItem("device_id"), initial_device_display_name: "Synapse Admin", }), }; @@ -48,7 +49,6 @@ const authProvider = { if (typeof access_token === "string") { fetchUtils.fetchJson(logout_api_url, options).then(({ json }) => { localStorage.removeItem("access_token"); - localStorage.removeItem("device_id"); }); } return Promise.resolve();