You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
log if we can't log out
This commit is contained in:
@@ -54,14 +54,17 @@ function logout() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return MatrixClientPeg.get().logout().then(_onLoggedOut,
|
return MatrixClientPeg.get().logout().then(_onLoggedOut,
|
||||||
// Just throwing an error here is going to be very unhelpful
|
(err) => {
|
||||||
// if you're trying to log out because your server's down and
|
// Just throwing an error here is going to be very unhelpful
|
||||||
// you want to log into a different server, so just forget the
|
// if you're trying to log out because your server's down and
|
||||||
// access token. It's annoying that this will leave the access
|
// you want to log into a different server, so just forget the
|
||||||
// token still valid, but we should fix this by having access
|
// access token. It's annoying that this will leave the access
|
||||||
// tokens expire (and if you really think you've been compromised,
|
// token still valid, but we should fix this by having access
|
||||||
// change your password).
|
// tokens expire (and if you really think you've been compromised,
|
||||||
_onLoggedOut
|
// change your password).
|
||||||
|
console.log("Failed to call logout API: token will not be invalidated");
|
||||||
|
_onLoggedOut();
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user