import {MatrixClient, UserIdentifier} from "matrix-js-sdk"; export async function createTokens( client: MatrixClient, userIdentifier: UserIdentifier, password: string ) { const loginResponse = await client.loginRequest({ type: "m.login.password", identifier: userIdentifier, password: password, refresh_token: true, device_id: "matrix-music" }) console.log("-----------------------------------------------") console.log(loginResponse) console.log("-----------------------------------------------") return loginResponse }