diff --git a/client/auth/github/getAccessToken.js b/client/auth/github/getAccessToken.js index c0b7cad..d460dcd 100644 --- a/client/auth/github/getAccessToken.js +++ b/client/auth/github/getAccessToken.js @@ -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 * diff --git a/package.json b/package.json index 1b0a474..4a2ea35 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/users/login-user.js b/users/login-user.js index c8a6e81..5b62e7f 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -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