1
0
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:
Luke Barnard
2017-02-03 14:34:24 +00:00
parent 68f644c824
commit 173e80a5de
3 changed files with 28 additions and 0 deletions

View File

@@ -77,4 +77,14 @@ export default class RtsClient {
}
);
}
login(userId) {
return request(this._url + '/login',
{
qs: {
user_id: userId,
},
}
);
}
}