diff --git a/package.json b/package.json index 0fab135..d2d8ede 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.2.8", + "version": "1.2.9", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/reauth-user.js b/users/reauth-user.js index ece21db..a693a9a 100644 --- a/users/reauth-user.js +++ b/users/reauth-user.js @@ -37,7 +37,7 @@ const userAuth = require("./user-auth"); * @param {String} params.database - Target Database * @param {http.ServerResponse} params.response - Http response object * @param {http.IncomingMessage} params.request - Http request object - * @param {string} params.level - Authentication level + * @param {*} params.level - Authentication level * @param {String} params.encryptionKey - Encryption Key * @param {String} params.encryptionSalt - Encryption Salt * diff --git a/users/user-auth.js b/users/user-auth.js index bb5f192..a47a557 100644 --- a/users/user-auth.js +++ b/users/user-auth.js @@ -31,10 +31,10 @@ const parseCookies = require("../utils/functions/parseCookies"); * * @param {Object} params - Arg * @param {http.IncomingMessage} params.request - Http request object - * @param {String} params.encryptionKey - Encryption Key - * @param {String} params.encryptionSalt - Encryption Salt - * @param {String} params.level - Optional. "Deep" value indicates an extra layer of security - * @param {String} params.database - Database Name + * @param {string} params.encryptionKey - Encryption Key + * @param {string} params.encryptionSalt - Encryption Salt + * @param {("deep" | "normal")?} [params.level] - Optional. "Deep" value indicates an extra layer of security + * @param {string} params.database - Database Name * * @returns { AuthenticatedUserObject } */