Abstractions for apps authentication and methods to E-Com Plus Store API with NodeJS and Firestore/SQLite.
Install pkg with firestore
or sqlite
tag:
npm i --save @ecomplus/application-sdk@firestore
# OR
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
# OR
npm i --save firebase-admin@8
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 |
No methods reference (TODO)