updates
This commit is contained in:
parent
2589c96b27
commit
0b9d9575d1
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.1.96",
|
"version": "1.2.0",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -49,15 +49,15 @@ const encrypt = require("../functions/encrypt");
|
|||||||
* email?: string,
|
* email?: string,
|
||||||
* username?: string,
|
* username?: string,
|
||||||
* password: string,
|
* password: string,
|
||||||
* additionalFields: any,
|
|
||||||
* }} params.payload Login Email/Username and Password
|
* }} 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 {Object} params.response - Http response object
|
||||||
* @param {String} params.encryptionKey - Encryption Key
|
* @param {String} params.encryptionKey - Encryption Key
|
||||||
* @param {String} params.encryptionSalt - Encryption Salt
|
* @param {String} params.encryptionSalt - Encryption Salt
|
||||||
*
|
*
|
||||||
* @returns { Promise<AuthenticatedUser>}
|
* @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
|
* Check Encryption Keys
|
||||||
*
|
*
|
||||||
@ -102,6 +102,7 @@ async function loginUser({ key, payload, database, response, encryptionKey, encr
|
|||||||
const reqPayload = JSON.stringify({
|
const reqPayload = JSON.stringify({
|
||||||
payload,
|
payload,
|
||||||
database,
|
database,
|
||||||
|
additionalFields,
|
||||||
});
|
});
|
||||||
|
|
||||||
const httpsRequest = https.request(
|
const httpsRequest = https.request(
|
||||||
|
Loading…
Reference in New Issue
Block a user