From 7c3055817366307b8733f2d6481c6e198408de27 Mon Sep 17 00:00:00 2001 From: Tben Date: Sun, 6 Aug 2023 17:11:11 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/social/google-auth.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 262cb5b..b888879 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.2.3", + "version": "1.2.4", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/social/google-auth.js b/users/social/google-auth.js index 1d4e5d8..58f7759 100644 --- a/users/social/google-auth.js +++ b/users/social/google-auth.js @@ -35,10 +35,11 @@ const encrypt = require("../../functions/encrypt"); * @param {object} params.response - HTTPS response object * @param {string} params.encryptionKey - Encryption key * @param {string} params.encryptionSalt - Encryption salt + * @param {object} [params.additionalFields] - Additional Fields to be added to the user object * * @returns { Promise } */ -async function googleAuth({ key, token, database, clientId, response, encryptionKey, encryptionSalt }) { +async function googleAuth({ key, token, database, clientId, response, encryptionKey, encryptionSalt, additionalFields }) { /** * Check inputs * @@ -115,6 +116,7 @@ async function googleAuth({ key, token, database, clientId, response, encryption token, clientId, database, + additionalFields, }); const httpsRequest = https.request(