This commit is contained in:
Tben 2023-08-06 17:11:11 +01:00
parent 1d67640e0a
commit 7c30558173
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -35,10 +35,11 @@ const encrypt = require("../../functions/encrypt");
* @param {object} params.response - HTTPS response object * @param {object} params.response - HTTPS 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
* @param {object} [params.additionalFields] - Additional Fields to be added to the user object
* *
* @returns { Promise<FunctionReturn> } * @returns { Promise<FunctionReturn> }
*/ */
async function googleAuth({ key, token, database, clientId, response, encryptionKey, encryptionSalt }) { async function googleAuth({ key, token, database, clientId, response, encryptionKey, encryptionSalt, additionalFields }) {
/** /**
* Check inputs * Check inputs
* *
@ -115,6 +116,7 @@ async function googleAuth({ key, token, database, clientId, response, encryption
token, token,
clientId, clientId,
database, database,
additionalFields,
}); });
const httpsRequest = https.request( const httpsRequest = https.request(