+export const getUserDetails = () => (dispatch: Dispatch): Promise<User> => {
+ dispatch(authActions.USER_DETAILS_REQUEST());
+ return authService.getUserDetails().then(details => {
+ dispatch(authActions.USER_DETAILS_SUCCESS(details));
+ return details;
+ });
+};
+
+export type AuthAction = UnionOf<typeof authActions>;