Remove all 'useLocal' params
This commit is contained in:
@@ -11,7 +11,6 @@ type Param = {
|
||||
additionalFields?: string[];
|
||||
additionalData?: { [s: string]: string | number };
|
||||
email?: string;
|
||||
useLocal?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -25,7 +24,6 @@ export default async function apiGithubLogin({
|
||||
additionalFields,
|
||||
email,
|
||||
additionalData,
|
||||
useLocal,
|
||||
}: Param): Promise<APILoginFunctionReturn> {
|
||||
if (!code || !clientId || !clientSecret || !database) {
|
||||
return {
|
||||
@@ -95,7 +93,6 @@ export default async function apiGithubLogin({
|
||||
social_id: socialId,
|
||||
supEmail: email,
|
||||
additionalFields,
|
||||
useLocal,
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////
|
||||
|
||||
@@ -16,7 +16,6 @@ export default async function apiGoogleLogin({
|
||||
additionalFields,
|
||||
additionalData,
|
||||
debug,
|
||||
useLocal,
|
||||
}: APIGoogleLoginFunctionParams): Promise<APILoginFunctionReturn> {
|
||||
try {
|
||||
const gUser: GoogleOauth2User | undefined = await new Promise(
|
||||
@@ -78,7 +77,6 @@ export default async function apiGoogleLogin({
|
||||
social_id: sub,
|
||||
additionalFields,
|
||||
debug,
|
||||
useLocal,
|
||||
});
|
||||
|
||||
////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user