Updates
This commit is contained in:
Vendored
+3
-1
@@ -29,10 +29,11 @@ export = githubAuth;
|
||||
* @param {string} params.encryptionKey - Encryption key
|
||||
* @param {string} params.encryptionSalt - Encryption salt
|
||||
* @param {object} [params.additionalFields] - Additional Fields to be added to the user object
|
||||
* @param {boolean} [params.user_id] - User ID
|
||||
*
|
||||
* @returns { Promise<FunctionReturn | undefined> }
|
||||
*/
|
||||
declare function githubAuth({ key, code, email, database, clientId, clientSecret, response, encryptionKey, encryptionSalt, additionalFields, }: {
|
||||
declare function githubAuth({ key, code, email, database, clientId, clientSecret, response, encryptionKey, encryptionSalt, additionalFields, user_id, }: {
|
||||
key: string;
|
||||
code: string;
|
||||
email: string | null;
|
||||
@@ -43,6 +44,7 @@ declare function githubAuth({ key, code, email, database, clientId, clientSecret
|
||||
encryptionKey: string;
|
||||
encryptionSalt: string;
|
||||
additionalFields?: object;
|
||||
user_id?: boolean;
|
||||
}): Promise<FunctionReturn | undefined>;
|
||||
declare namespace githubAuth {
|
||||
export { FunctionReturn };
|
||||
|
||||
Vendored
+7
-1
@@ -27,10 +27,13 @@ export = googleAuth;
|
||||
* @param {string} params.encryptionKey - Encryption key
|
||||
* @param {string} params.encryptionSalt - Encryption salt
|
||||
* @param {object} [params.additionalFields] - Additional Fields to be added to the user object
|
||||
* @param {boolean} [params.user_id] - User ID
|
||||
* @param {string | number} [params.apiUserID] - Required for Local
|
||||
* @param {boolean} [params.useLocal] - Whether to use a remote database instead of API
|
||||
*
|
||||
* @returns { Promise<FunctionReturn> }
|
||||
*/
|
||||
declare function googleAuth({ key, token, database, clientId, response, encryptionKey, encryptionSalt, additionalFields, }: {
|
||||
declare function googleAuth({ key, token, database, clientId, response, encryptionKey, encryptionSalt, additionalFields, user_id, apiUserID, useLocal, }: {
|
||||
key: string;
|
||||
token: string;
|
||||
database: string;
|
||||
@@ -39,6 +42,9 @@ declare function googleAuth({ key, token, database, clientId, response, encrypti
|
||||
encryptionKey: string;
|
||||
encryptionSalt: string;
|
||||
additionalFields?: object;
|
||||
user_id?: boolean;
|
||||
apiUserID?: string | number;
|
||||
useLocal?: boolean;
|
||||
}): Promise<FunctionReturn>;
|
||||
declare namespace googleAuth {
|
||||
export { FunctionReturn };
|
||||
|
||||
Reference in New Issue
Block a user