X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f41a161af85e740c85ecc6a805644ff712cd4620..5a84b3bf9b7bf9a1d07e9595b2453c4133ffd23d:/src/store/auth/auth-action.ts diff --git a/src/store/auth/auth-action.ts b/src/store/auth/auth-action.ts index fdaa2e1a08..baf80595f3 100644 --- a/src/store/auth/auth-action.ts +++ b/src/store/auth/auth-action.ts @@ -54,6 +54,9 @@ export const initAuth = (config: Config) => (dispatch: Dispatch, getState: () => if (token && user) { dispatch(authActions.INIT({ user, token })); dispatch(initSessions(services.authService, config, user)); + dispatch(getUserDetails()).then((user: User) => { + dispatch(authActions.INIT({ user, token })); + }); } };