From b53c83c81c01ecabb488b14ed4159f2c70a6cceb Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Tue, 23 May 2023 12:31:16 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/login-user.js | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 094a7a2..ef8d6e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.23", + "version": "1.1.24", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/login-user.js b/users/login-user.js index e36810e..5431288 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -16,13 +16,32 @@ const encrypt = require("../functions/encrypt"); /** * @typedef {object} FunctionReturn * @property {boolean} success - Did the function run successfully? - * @property {(Object[]|string)} [payload=[]] - Payload + * @property {{ + * id: number, + * first_name: string, + * last_name: string, + * username: string, + * email: string, + * phone: string, + * social_id: [string], + * image: string, + * image_thumbnail: string, + * verification_status: [number=0], + * social_login: [number], + * social_platform: [string], + * csrf_k: string, + * more_data: [string], + * logged_in_status: boolean, + * date: string, + * }} payload - Payload */ /** * ============================================================================== * Main Function * ============================================================================== + * @async + * * @param {object} params - Single Param object containing params * @param {String} params.key - API Key * @param {String} params.database - Target Database