Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix lint errors

Tuan Dang767abe51ef8b
diff --git a/backend/src/controllers/v3/signupController.ts b/backend/src/controllers/v3/signupController.ts
index f173841898..449df4e11a 100644
--- a/backend/src/controllers/v3/signupController.ts
+++ b/backend/src/controllers/v3/signupController.ts
@@ -71,8 +71,7 @@ export const completeAccountSignup = async (req: Request, res: Response) => {
if (providerAuthToken) {
await validateProviderAuthToken({
email,
- providerAuthToken,
- user,
+ providerAuthToken
});
} else {
const [AUTH_TOKEN_TYPE, AUTH_TOKEN_VALUE] = <[string, string]>req.headers["authorization"]?.split(" ", 2) ?? [null, null]
@@ -117,16 +116,8 @@ export const completeAccountSignup = async (req: Request, res: Response) => {
if (!user)
throw new Error("Failed to complete account for non-existent user"); // ensure user is non-null
- const hasSamlEnabled = user.authMethods
- .some(
- (authMethod: AuthMethod) =>
- [
- AuthMethod.OKTA_SAML,
- AuthMethod.AZURE_SAML,
- AuthMethod.JUMPCLOUD_SAML
- ].includes(authMethod)
- );
-
+ const hasSamlEnabled = user.authMethods.some((authMethod: AuthMethod) => [AuthMethod.OKTA_SAML, AuthMethod.AZURE_SAML, AuthMethod.JUMPCLOUD_SAML].includes(authMethod));
+
if (!hasSamlEnabled) { // TODO: modify this part
// initialize default organization and workspace
await initializeDefaultOrg({