iBooks Apple ID sign in prompt accepts my password but fails and re-asks, repeatedly
I had the same problem in Mojave. I managed to solve it by going to the Store menu in Books, selecting "Authorize this computer..." - which it did, and suddenly all my  books appeared in Books. After this Books works fine.

(my Mac was already authorized prior to this, since I had no problems with iTunes for example)