Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

762 B
Raw Blame
import { BrandLogo } from '@truefoundry/trueforge-ui';
import { buildLoginHref } from './authFetch';
import './authScreens.css';

/** OIDC / login failure status. Mirrors the welcome page layout. */
export function AuthErrorScreen({ reason }: { reason: string }) {
  const message = reason === 'login_failed' ? 'We couldn’t complete sign-in. Please try again.' : reason;
  return (
    <main className="auth-screen">
      <div className="auth-screen-card">
        <BrandLogo className="auth-screen-logo" />
        <h1 className="auth-screen-title">Sign-in failed</h1>
        <p className="auth-screen-message">{message}</p>
        <a className="auth-screen-button" href={buildLoginHref()}>
          Try again
        </a>
      </div>
    </main>
  );
}