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

View File

@ -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": {

View File

@ -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<FunctionReturn> }
*/
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(