@bibike/erp-sdk 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -346,6 +346,8 @@ var BibikeClient = class {
|
|
|
346
346
|
*/
|
|
347
347
|
async login(credentials) {
|
|
348
348
|
const response = await this.request("auth", "login", "POST", {
|
|
349
|
+
// Send both for backwards compatibility with older API versions
|
|
350
|
+
username: credentials.login,
|
|
349
351
|
login: credentials.login,
|
|
350
352
|
password: credentials.password,
|
|
351
353
|
two_factor_code: credentials.two_factor_code
|
package/dist/index.mjs
CHANGED
|
@@ -319,6 +319,8 @@ var BibikeClient = class {
|
|
|
319
319
|
*/
|
|
320
320
|
async login(credentials) {
|
|
321
321
|
const response = await this.request("auth", "login", "POST", {
|
|
322
|
+
// Send both for backwards compatibility with older API versions
|
|
323
|
+
username: credentials.login,
|
|
322
324
|
login: credentials.login,
|
|
323
325
|
password: credentials.password,
|
|
324
326
|
two_factor_code: credentials.two_factor_code
|