extraReducers: (builder: ActionReducerMapBuilder<IinitialStateType>) => {
    builder
      .addCase(logIn.pending, state => {
        state.isLoggingIn = true;
        state.isLoggedIn = false;
        state.data = '';
        state.error = '';
      })
      .addCase(logIn.fulfilled, (state, action: PayloadAction<any>) => {
        state.isLoggingIn = false;
        state.isLoggedIn = true;
        state.data = action.payload;
        state.error = '';
      })
      .addCase(logIn.rejected, (state, action: any) => {
        state.isLoggingIn = false;
        state.isLoggedIn = false;
        state.data = '';
        state.error = action.error;
      });
  },