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
* ===============================================================================
* @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
*

View File

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

View File

@ -23,17 +23,18 @@ const encrypt = require("../functions/encrypt");
* username: string,
* email: string,
* phone: string,
* social_id: [string],
* social_id?: string,
* image: string,
* image_thumbnail: string,
* verification_status: [number=0],
* social_login: [number],
* social_platform: [string],
* verification_status?: number,
* social_login?: number,
* social_platform?: string,
* csrf_k: string,
* more_data: [string],
* more_data?: string,
* logged_in_status: boolean,
* 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.database - Target Database
* @param {{
* email: string,
* password: string
* email?: string,
* username?: string,
* password: string,
* additionalFields: any,
* }} params.payload Login Email/Username and Password
* @param {Object} params.response - Http response object
* @param {String} params.encryptionKey - Encryption Key