You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Get team_token from the RTS on login
Use the /login endpoint of the RTS to get the team token when the user has successfully logged in.
This commit is contained in:
@@ -77,4 +77,14 @@ export default class RtsClient {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
login(userId) {
|
||||
return request(this._url + '/login',
|
||||
{
|
||||
qs: {
|
||||
user_id: userId,
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user