Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore(auth): restore original code comments
Igor Correafaeedf770b6d
diff --git a/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx b/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsxindex 7b923acb85..9b1cc15e4b 100644--- a/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx+++ b/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx@@ -62,7 +62,9 @@ export const PasswordStep = ({providerAuthToken});+ // unset provider auth token in case it was usedSecurityClient.setProviderAuthToken("");+ // set JWT tokenSecurityClient.setToken(oauthLogin.token);if (callbackPort) {@@ -79,11 +81,14 @@ export const PasswordStep = ({}}+ // case: user has orgs, so we navigate the user to select an orgconst userOrgs = await fetchOrganizations();if (userOrgs.length > 0) {navigateToSelectOrganization(undefined, isAdminLogin);- } else {+ }+ // case: no orgs found, so we navigate the user to create an org+ else {await navigateUserToOrg({ navigate });}} catch (err: any) {@@ -122,6 +127,7 @@ export const PasswordStep = ({setIsLoading(true);if (callbackPort) {+ // attemptCliLoginconst isCliLoginSuccessful = await attemptCliLogin({email,password,@@ -157,6 +163,8 @@ export const PasswordStep = ({JTWToken: token};await instance.post(cliUrl, payload).catch(() => {+ // if error happens to communicate we set the token with an expiry in session storage+ // the cli-redirect page has logic to show this to user and ask them to paste it in terminalsessionStorage.setItem(SessionStorageKeys.CLI_TERMINAL_TOKEN,JSON.stringify({