hunk.code_window:       cy.getByTestId('password').type('usEr_password_123');
         cy.getByTestId('submitButton').click();
         cy.location('pathname').should('equal', '/auth/application');
         cy.getByTestId('app-creation').type('Organization Name');
         cy.getByTestId('submit-btn').click();
         cy.location('pathname').should('equal', '/templates');
       });
     });
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:       cy.location('pathname').should('equal', '/quickstart');
  
hunk.file_path: apps/web/cypress/tests/auth.spec.ts
hunk.type: replace
file: import { useContext, useEffect } from 'react';
  import { useNavigate, useSearchParams } from 'react-router-dom';
  import jwtDecode from 'jwt-decode';
  import { IJwtPayload } from '@novu/shared';
  import { AuthContext } from '../../store/authContext';
  import { LoginForm } from '../../components/auth/LoginForm';
  import AuthLayout from '../../components/layout/components/AuthLayout';
  import AuthContainer from '../../components/layout/components/AuthContainer';
  
  export default function LoginPage() {
    const { setToken, token } = useContext(AuthContext);
    const navigate = useNavigate();
    const [params] = useSearchParams();
    const queryToken = params.get('token');
  
    useEffect(() => {
      if (queryToken) {
        setToken(queryToken);
      }
    }, [queryToken]);
  
    useEffect(() => {
      if (token) {
        const user = jwtDecode<IJwtPayload>(token);
  
        if (!user.organizationId || !user.environmentId) {
          navigate('/auth/application');
        } else {
          navigate('/');
        }
      }
    }, [token]);
  
    return (
      <AuthLayout>
        <AuthContainer
          title="Sign In"
          description=" Welcome back! Sign in with the data you entered in your registration"
        >
          <LoginForm />
        </AuthContainer>
      </AuthLayout>
    );
  }
  