openfoodfacts / openfoodfacts-nodejs

Official Node package for Open Food Facts
https://openfoodfacts.github.io/openfoodfacts-nodejs/
Apache License 2.0
148 stars 27 forks source link

Make the `authToken` in `Folksonomy` constructor nullable #564

Open VaiTon opened 1 week ago

VaiTon commented 1 week ago

To use the login method we need a way to create an instance of Folksonomy without authToken. We should handle that case.

https://github.com/openfoodfacts/openfoodfacts-nodejs/blob/f75a2dd37df5695ed626be7f9000550aeb5ebb80/src/folksonomy.ts#L20

gciluffo commented 5 days ago

@VaiTon I can take this, ive been working with the Folksonomy api in smooth app recently