Remove all 'useLocal' params
This commit is contained in:
@@ -16,7 +16,6 @@ type Param = {
|
||||
additionalFields?: string[];
|
||||
additionalData?: { [s: string]: string | number };
|
||||
apiUserID?: string | number;
|
||||
useLocal?: boolean;
|
||||
debug?: boolean;
|
||||
};
|
||||
|
||||
@@ -33,7 +32,6 @@ export default async function googleAuth({
|
||||
additionalFields,
|
||||
additionalData,
|
||||
apiUserID,
|
||||
useLocal,
|
||||
debug,
|
||||
}: Param): Promise<APILoginFunctionReturn> {
|
||||
const grabedHostNames = grabHostNames();
|
||||
@@ -96,7 +94,7 @@ export default async function googleAuth({
|
||||
DSQL_DB_USERNAME?.match(/./) &&
|
||||
DSQL_DB_PASSWORD?.match(/./) &&
|
||||
DSQL_DB_NAME?.match(/./) &&
|
||||
useLocal
|
||||
global.DSQL_USE_LOCAL
|
||||
) {
|
||||
if (debug) {
|
||||
console.log(`Google login with Local Paradigm ...`);
|
||||
@@ -107,7 +105,6 @@ export default async function googleAuth({
|
||||
additionalFields,
|
||||
additionalData,
|
||||
debug,
|
||||
useLocal: true,
|
||||
});
|
||||
} else {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user