This commit is contained in:
Benjamin Toby
2024-12-10 19:51:02 +01:00
parent ef6a7f1411
commit ff9ce28d1f
6 changed files with 10 additions and 38 deletions
@@ -45,7 +45,7 @@ module.exports = async function apiGoogleLogin({
if (!database || typeof database != "string" || database?.match(/ /)) {
return {
success: false,
user: undefined,
payload: undefined,
msg: "Please provide a database slug(database name in lowercase with no spaces)",
};
}
@@ -89,7 +89,7 @@ module.exports = async function apiGoogleLogin({
return {
success: false,
user: undefined,
payload: undefined,
msg: error.message,
};
}
+1 -4
View File
@@ -1057,10 +1057,7 @@ export type APIGoogleLoginFunctionParams = {
database: string;
additionalFields?: string[];
};
export type APIGoogleLoginFunctionReturn = {
dsqlUserId?: number | string;
} & HandleSocialDbFunctionReturn;
export type APIGoogleLoginFunction = (params: APIGoogleLoginFunctionParams) => Promise<APIGoogleLoginFunctionReturn>;
export type APIGoogleLoginFunction = (params: APIGoogleLoginFunctionParams) => Promise<APILoginFunctionReturn>;
/**
* Handle Social DB Function
*/
+1 -5
View File
@@ -1269,13 +1269,9 @@ export type APIGoogleLoginFunctionParams = {
additionalFields?: string[];
};
export type APIGoogleLoginFunctionReturn = {
dsqlUserId?: number | string;
} & HandleSocialDbFunctionReturn;
export type APIGoogleLoginFunction = (
params: APIGoogleLoginFunctionParams
) => Promise<APIGoogleLoginFunctionReturn>;
) => Promise<APILoginFunctionReturn>;
/**
* Handle Social DB Function