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
Fix: actually get the team token
This commit is contained in:
@@ -268,8 +268,8 @@ export function setLoggedIn(credentials) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rtsClient) {
|
if (rtsClient) {
|
||||||
rtsClient.login(credentials.userId).then((teamToken) => {
|
rtsClient.login(credentials.userId).then((body) => {
|
||||||
localStorage.setItem("mx_team_token", teamToken);
|
localStorage.setItem("mx_team_token", body.team_token);
|
||||||
}, (err) =>{
|
}, (err) =>{
|
||||||
console.error(
|
console.error(
|
||||||
"Failed to get team token on login, not persisting to localStorage",
|
"Failed to get team token on login, not persisting to localStorage",
|
||||||
|
|||||||
Reference in New Issue
Block a user