From 681255187f76424835cc8c35b3c3cda4882805ba Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Sun, 6 Aug 2023 22:30:02 +0800 Subject: [PATCH] modified initialize org to check for auth providers --- backend/src/controllers/v3/signupController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/controllers/v3/signupController.ts b/backend/src/controllers/v3/signupController.ts index b33a7fe0c..06fac4a85 100644 --- a/backend/src/controllers/v3/signupController.ts +++ b/backend/src/controllers/v3/signupController.ts @@ -117,7 +117,7 @@ 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 - if (user.authProvider !== AuthProvider.OKTA_SAML) { + if (!user.authProviders?.includes(AuthProvider.OKTA_SAML)) { // initialize default organization and workspace await initializeDefaultOrg({ organizationName,