This commit is contained in:
Tben 2023-08-06 13:55:02 +01:00
parent a8c5820a70
commit 2589c96b27
3 changed files with 13 additions and 10 deletions

View File

@ -3,7 +3,7 @@
/** /**
* Login with Github Function * Login with Github Function
* =============================================================================== * ===============================================================================
* @description This function uses google identity api to login a user with datasquirel * @description This function uses github api to login a user with datasquirel
* *
* @async * @async
* *

View File

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

View File

@ -23,17 +23,18 @@ const encrypt = require("../functions/encrypt");
* username: string, * username: string,
* email: string, * email: string,
* phone: string, * phone: string,
* social_id: [string], * social_id?: string,
* image: string, * image: string,
* image_thumbnail: string, * image_thumbnail: string,
* verification_status: [number=0], * verification_status?: number,
* social_login: [number], * social_login?: number,
* social_platform: [string], * social_platform?: string,
* csrf_k: string, * csrf_k: string,
* more_data: [string], * more_data?: string,
* logged_in_status: boolean, * logged_in_status: boolean,
* date: string, * date: string,
* }} payload - Payload * }} payload - Payload of the response
* @property {string} [msg] - An optional message
*/ */
/** /**
@ -45,8 +46,10 @@ const encrypt = require("../functions/encrypt");
* @param {String} params.key - FULL ACCESS API Key * @param {String} params.key - FULL ACCESS API Key
* @param {String} params.database - Target Database * @param {String} params.database - Target Database
* @param {{ * @param {{
* email: string, * email?: string,
* password: string * username?: string,
* password: string,
* additionalFields: any,
* }} params.payload Login Email/Username and Password * }} params.payload Login Email/Username and Password
* @param {Object} params.response - Http response object * @param {Object} params.response - Http response object
* @param {String} params.encryptionKey - Encryption Key * @param {String} params.encryptionKey - Encryption Key