Skip to content

The open alternative to Salesforce, designed for AI.

fix AuthException parameters

Weiko4ed1db3845a1
diff --git a/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts b/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts
index ebe6efef876..d4a1cd48505 100644
--- a/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts
+++ b/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts
@@ -124,7 +124,7 @@ export class GoogleAuthController {
}),
);
}
- throw new AuthException(AuthExceptionCode.INTERNAL_SERVER_ERROR, err);
+ throw new AuthException(err, AuthExceptionCode.INTERNAL_SERVER_ERROR);
}
}
}