Fix: actually get the team token
This commit is contained in:
parent
173e80a5de
commit
4f3549cc37
1 changed files with 2 additions and 2 deletions
|
@ -268,8 +268,8 @@ export function setLoggedIn(credentials) {
|
|||
}
|
||||
|
||||
if (rtsClient) {
|
||||
rtsClient.login(credentials.userId).then((teamToken) => {
|
||||
localStorage.setItem("mx_team_token", teamToken);
|
||||
rtsClient.login(credentials.userId).then((body) => {
|
||||
localStorage.setItem("mx_team_token", body.team_token);
|
||||
}, (err) =>{
|
||||
console.error(
|
||||
"Failed to get team token on login, not persisting to localStorage",
|
||||
|
|
Loading…
Reference in a new issue