diff --git a/packages/auth/src/middleware/passport/third-party-common.js b/packages/auth/src/middleware/passport/third-party-common.js index c25af011bd..1a99daec1c 100644 --- a/packages/auth/src/middleware/passport/third-party-common.js +++ b/packages/auth/src/middleware/passport/third-party-common.js @@ -60,12 +60,10 @@ exports.authenticateThirdParty = async function ( // exit early if there is still no user and auto creation is disabled if (!dbUser && requireLocalAccount) { - if (requireLocalAccount) { - return authError( - done, - "Email does not yet exist. You must set up your local budibase account first." - ) - } + return authError( + done, + "Email does not yet exist. You must set up your local budibase account first." + ) } // first time creation