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
+10
View File
@@ -77,4 +77,14 @@ export default class RtsClient {
}
);
}
login(userId) {
return request(this._url + '/login',
{
qs: {
user_id: userId,
},
}
);
}
}