diff --git a/src/client/action/auth.js b/src/client/action/auth.js index e7b7c63..7b93ae8 100644 --- a/src/client/action/auth.js +++ b/src/client/action/auth.js @@ -15,7 +15,10 @@ async function login(username, homeserver, password) { const client = sdk.createClient({ baseUrl }); const response = await client.login('m.login.password', { - user: `@${username}:${homeserver}`, + identifier: { + type: 'm.id.user', + user: username, + }, password, initial_device_display_name: cons.DEVICE_DISPLAY_NAME, });