Updates
This commit is contained in:
@@ -20,7 +20,6 @@ export default async function googleAuth({
|
||||
encryptionSalt,
|
||||
additionalFields,
|
||||
additionalData,
|
||||
apiUserID,
|
||||
debug,
|
||||
secureCookie,
|
||||
loginOnly,
|
||||
@@ -80,7 +79,6 @@ export default async function googleAuth({
|
||||
debug,
|
||||
loginOnly,
|
||||
database,
|
||||
apiUserId: apiUserID || process.env.DSQL_API_USER_ID,
|
||||
};
|
||||
|
||||
if (useLocal) {
|
||||
|
||||
@@ -23,13 +23,9 @@ export default async function handleSocialDb({
|
||||
additionalFields,
|
||||
debug,
|
||||
loginOnly,
|
||||
apiUserId,
|
||||
}: HandleSocialDbFunctionParams): Promise<APIResponseObject> {
|
||||
try {
|
||||
const finalDbName = grabDbFullName({
|
||||
dbName: database,
|
||||
userId: apiUserId,
|
||||
});
|
||||
const finalDbName = database;
|
||||
|
||||
const existingSocialUserQUery = `SELECT * FROM users WHERE email = ? AND social_login='1' AND social_platform = ? `;
|
||||
const existingSocialUserValues = [email, social_platform];
|
||||
|
||||
@@ -17,7 +17,6 @@ export default async function apiGoogleLogin({
|
||||
additionalData,
|
||||
debug,
|
||||
loginOnly,
|
||||
apiUserId,
|
||||
}: APIGoogleLoginFunctionParams): Promise<APIResponseObject> {
|
||||
try {
|
||||
const gUser: GoogleOauth2User | undefined = await new Promise(
|
||||
@@ -79,7 +78,6 @@ export default async function apiGoogleLogin({
|
||||
additionalFields,
|
||||
debug,
|
||||
loginOnly,
|
||||
apiUserId,
|
||||
});
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
@@ -1170,7 +1170,6 @@ export type APIGoogleLoginFunctionParams = {
|
||||
additionalData?: { [key: string]: string | number };
|
||||
debug?: boolean;
|
||||
loginOnly?: boolean;
|
||||
apiUserId?: string | number;
|
||||
};
|
||||
|
||||
export type APIGoogleLoginFunction = (
|
||||
@@ -1191,7 +1190,6 @@ export type HandleSocialDbFunctionParams = {
|
||||
debug?: boolean;
|
||||
loginOnly?: boolean;
|
||||
social_id?: string | number;
|
||||
apiUserId?: string | number;
|
||||
};
|
||||
|
||||
export type HandleSocialDbFunctionReturn = {
|
||||
@@ -2478,7 +2476,6 @@ export type GoogleAuthParams = {
|
||||
encryptionSalt?: string;
|
||||
additionalFields?: string[];
|
||||
additionalData?: { [s: string]: string | number };
|
||||
apiUserID?: string | number;
|
||||
debug?: boolean;
|
||||
secureCookie?: boolean;
|
||||
loginOnly?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user