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

@ -210,6 +210,8 @@ module.exports = React.createClass({
window.addEventListener('resize', this.handleResize);
this.handleResize();
Lifecycle.initRtsClient(this.props.config.teamServerConfig.teamServerURL);
// the extra q() ensures that synchronous exceptions hit the same codepath as
// asynchronous ones.
q().then(() => {