From 1d67640e0a8fa092a0bf86c122cc086658e83ded Mon Sep 17 00:00:00 2001 From: Tben Date: Sun, 6 Aug 2023 17:06:29 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/social/github-auth.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1e604ff..262cb5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.2.2", + "version": "1.2.3", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/social/github-auth.js b/users/social/github-auth.js index cf52754..1e27be6 100644 --- a/users/social/github-auth.js +++ b/users/social/github-auth.js @@ -39,10 +39,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 githubAuth({ key, code, email, database, clientId, clientSecret, response, encryptionKey, encryptionSalt }) { +async function githubAuth({ key, code, email, database, clientId, clientSecret, response, encryptionKey, encryptionSalt, additionalFields }) { /** * Check inputs * @@ -121,6 +122,7 @@ async function githubAuth({ key, code, email, database, clientId, clientSecret, clientId, clientSecret, database, + additionalFields, }); const httpsRequest = https.request(