E-Com Plus Application SDK
Abstractions for apps authentication and methods to E-Com Plus Store API with NodeJS and Firestore/SQLite.
Getting started
Install pkg with firestore
or sqlite
tag:
npm i --save @ecomplus/application-sdk@firestore
npm i --save @ecomplus/application-sdk@sqlite
Or you may also install default version and respective database client (depending on your environment):
npm i --save @ecomplus/application-sdk --no-optional
npm i --save sqlite3@4
npm i --save firebase-admin@8
Environment variables
Variable | Default | Info |
---|
ECOM_AUTH_DB | ./db.sqlite3 | SQLite3 database pathname (if not using Firestore) |
ECOM_AUTH_UPDATE | enabled | Set disabled to prevent update-tokens automatic service |
ECOM_AUTH_DEBUG | | Set true to debug setup and background services |
ECOM_AUTH_SETUP_TIMEOUT | enabled | disabled on Google (Firebase) Cloud Functions by default |
ECOM_AUTH_UPDATE_INTERVAL | enabled | disabled on Google (Firebase) Cloud Functions by default |
Documentation
No methods reference (TODO)