Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: remove un-needed updateCookie from Login.tsx (#1354)

Will Hutchinson57579e8d4d2a
diff --git a/js/app/bun.lock b/js/app/bun.lock
index abe551c154..24a2677495 100644
--- a/js/app/bun.lock
+++ b/js/app/bun.lock
@@ -1,5 +1,6 @@
{
"lockfileVersion": 1,
+ "configVersion": 0,
"workspaces": {
"": {
"name": "@coparse/monorepo",
diff --git a/js/app/packages/app/component/auth/Login.tsx b/js/app/packages/app/component/auth/Login.tsx
index 134d9cde76..4e33b98748 100644
--- a/js/app/packages/app/component/auth/Login.tsx
+++ b/js/app/packages/app/component/auth/Login.tsx
@@ -17,7 +17,6 @@ import {
Suspense,
Switch,
} from 'solid-js';
-import { updateCookie } from '@core/util/cookies';
import { EmailForm } from './EmailForm';
import { LoginOptions } from './LoginOptions';
import { identifyUser, Stage } from './Shared';
@@ -62,10 +61,6 @@ export function Login() {
});
const onComplete = async () => {
- const currentDate = new Date();
- const oneYearFromNow = new Date(
- currentDate.setFullYear(currentDate.getFullYear() + 1)
- );
setActiveModal();
unsetTokenPromise();
invalidateUserInfo();
@@ -75,12 +70,6 @@ export function Login() {
location.state?.originalLocation &&
location.state.originalLocation.pathname !== location.pathname
) {
- updateCookie('login', 'true', {
- expires: oneYearFromNow,
- maxAge: 31536000, // one year in seconds
- sameSite: 'Lax',
- path: '/',
- });
await identifyUser();
}
};