Requested changes

This commit is contained in:
Daniel Hougaard
2024-09-10 11:07:25 +04:00
parent e6c0bbb25b
commit 54e6f4b607
4 changed files with 12 additions and 6 deletions
@@ -16,6 +16,7 @@ import { Button, Spinner } from "@app/components/v2";
import { SessionStorageKeys } from "@app/const";
import { useUser } from "@app/context";
import { useGetOrganizations, useLogoutUser, useSelectOrganization } from "@app/hooks/api";
import { UserAgentType } from "@app/hooks/api/auth/types";
import { Organization } from "@app/hooks/api/types";
import { getAuthToken, isLoggedIn } from "@app/reactQuery";
import { navigateUserToOrg } from "@app/views/Login/Login.utils";
@@ -70,7 +71,7 @@ export default function LoginPage() {
const { token } = await selectOrg.mutateAsync({
organizationId: organization.id,
customUserAgent: callbackPort ? "cli" : undefined
userAgent: callbackPort ? UserAgentType.CLI : undefined
});
if (callbackPort) {