Error: Invalid API or resource

As mentioned here I'm having similar problems with OneDrive as sync target for a MacBook and and iPhone.

Here's what looks to be the relevant bits from Joplin's console on the Mac: