We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae5f888 commit 28d0289Copy full SHA for 28d0289
ui/src/actions/login.js
@@ -99,16 +99,14 @@ export function ssoLogIn() {
99
100
export function signOut() {
101
return async (dispatch) => {
102
+ dispatch(resetLoginInfo()); // disconnect sockets before actually logging out (cf. `App.jsx`)
103
dispatch(applicationFetched(false));
- // We make sure that user data is reseted so that websockets
104
- // are keept dicconnected while logging out.
105
- dispatch(resetLoginInfo());
106
- await sendSignOut().finally(() =>
107
- dispatch(
108
- // Retreiving the user data from the backend
109
- getLoginInfo(),
110
- ),
111
- );
+
+ try {
+ await sendSignOut();
+ } finally {
+ dispatch(getLoginInfo());
+ }
112
};
113
}
114
0 commit comments