Something went wrong. Try again.
[WIP] A music bot for Matrix that connects to Element Call enabled channels.
Something went wrong. Try again.
599 B · 21 lines
TypeScript
at main
123456789101112131415161718192021import {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}