MalteJanz / sw-sync-cli

CLI for fast and flexible data transfer between shopware and (CSV) files over API
MIT License
3 stars 3 forks source link

Improve shopware API client error handling #13

Open MalteJanz opened 2 months ago

MalteJanz commented 2 months ago

The client should re-authenticate itself if it needs to (receives a "unauthenticated" response).

This is a little tricky to do properly, one must consider the following invariants:

Also the code itself could see some more love and refactoring to remove code duplication