codetheweb / anylist

📋 a wrapper for AnyList's API (unoffical, reverse engineered)
81 stars 20 forks source link

fix authentication #35

Closed kevdliu closed 8 months ago

kevdliu commented 8 months ago

Anylist made some changes to how clients are authenticated. They are now using bearer tokens instead of cookie based authentication so we have to include it in the header of every request.

The tricky part is including the token in the WS request since reconnecting-websocket does not pass headers to the underlying WS implementation.

kevdliu commented 8 months ago

@codetheweb javascript is not my strong suit so lmk if you have suggestions.

codetheweb commented 8 months ago

Published in v0.5.2.

csimpf commented 8 months ago

Thank you so much for the fix @kevdliu! (and for this package @codetheweb) I'm using this package to sync my Google Keep shopping list with AnyList (https://github.com/csimpf/keep2anylist) and this fix got me up and running again 😄