This commit is contained in:
Benjamin Toby
2025-07-10 12:13:03 +01:00
parent 5ab079f687
commit f9725a1d6f
22 changed files with 262 additions and 177 deletions
@@ -17,6 +17,7 @@ export default async function apiGoogleLogin({
additionalData,
debug,
loginOnly,
apiUserId,
}: APIGoogleLoginFunctionParams): Promise<APILoginFunctionReturn> {
try {
const gUser: GoogleOauth2User | undefined = await new Promise(
@@ -78,6 +79,7 @@ export default async function apiGoogleLogin({
additionalFields,
debug,
loginOnly,
apiUserId,
});
////////////////////////////////////////
@@ -85,7 +87,7 @@ export default async function apiGoogleLogin({
////////////////////////////////////////
return { ...loggedInGoogleUser };
} catch (/** @type {any} */ error: any) {
} catch (error: any) {
console.log(`api-google-login.ts ERROR: ${error.message}`);
return {