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 ebe6efef876b..d4a1cd485052 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); } } }