This commit is contained in:
Tben 2023-08-06 13:57:29 +01:00
parent 2589c96b27
commit 0b9d9575d1
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "datasquirel",
"version": "1.1.96",
"version": "1.2.0",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"scripts": {

View File

@ -49,15 +49,15 @@ const encrypt = require("../functions/encrypt");
* email?: string,
* username?: string,
* password: string,
* additionalFields: any,
* }} params.payload Login Email/Username and Password
* @param {*} params.additionalFields - Additional Fields to be added to the user object
* @param {Object} params.response - Http response object
* @param {String} params.encryptionKey - Encryption Key
* @param {String} params.encryptionSalt - Encryption Salt
*
* @returns { Promise<AuthenticatedUser>}
*/
async function loginUser({ key, payload, database, response, encryptionKey, encryptionSalt }) {
async function loginUser({ key, payload, database, additionalFields, response, encryptionKey, encryptionSalt }) {
/**
* Check Encryption Keys
*
@ -102,6 +102,7 @@ async function loginUser({ key, payload, database, response, encryptionKey, encr
const reqPayload = JSON.stringify({
payload,
database,
additionalFields,
});
const httpsRequest = https.request(