-export const getUserDetails = () => (dispatch: Dispatch): Promise<User> => {
- dispatch(actions.USER_DETAILS_REQUEST());
- return authService.getUserDetails().then(details => {
- dispatch(actions.USER_DETAILS_SUCCESS(details));
+export const getUserDetails = () => (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): Promise<User> => {
+ dispatch(authActions.USER_DETAILS_REQUEST());
+ return services.authService.getUserDetails().then(details => {
+ dispatch(authActions.USER_DETAILS_SUCCESS(details));