Remove feature_dehydration (#138)

* Remove feature_dehydration

* Remove remaining old dehydration

* Update test
This commit is contained in:
Florian Duros
2024-10-14 16:10:41 +00:00
committed by GitHub
parent 91e84f7951
commit 63986f8c42
6 changed files with 3 additions and 76 deletions
@@ -168,7 +168,7 @@ export default class SoftLogout extends React.Component<IProps, IState> {
return;
}
Lifecycle.hydrateSession(credentials).catch((e) => {
Lifecycle.setLoggedIn(credentials).catch((e) => {
logger.error(e);
this.setState({ busy: false, errorText: _t("auth|failed_soft_logout_auth") });
});
@@ -204,7 +204,7 @@ export default class SoftLogout extends React.Component<IProps, IState> {
return false;
}
return Lifecycle.hydrateSession(credentials)
return Lifecycle.setLoggedIn(credentials)
.then(() => {
if (this.props.onTokenLoginCompleted) {
this.props.onTokenLoginCompleted();