import Link from 'next/link'; import { getSignInUrl, getUser, signOut } from '@workos-inc/authkit-nextjs'; export default async function HomePage() { // Retrieves the user from the session or returns `null` if no user is signed in const { user } = await getUser(); // Get the URL to redirect the user to AuthKit to sign in const signInUrl = await getSignInUrl(); /** * If a signed-in user is mandatory, you can use the `ensureSignedIn` * configuration option. If logged out, the below will immediately redirect * the user to AuthKit. After signing in, the user will automatically * be redirected back to this page. * */ // const { user } = await getUser({ ensureSignedIn: true }); if (!user) { return Sign in; } return (
{ 'use server'; await signOut(); }} >

Welcome back{user.firstName && `, ${user.firstName}`}

); }

Contact Us

At Foia-GPT.COM, we make it easy for you to submit a complaint and take the first step towards justice. Our AI legal companion, Justice Sentinel, will guide you through the process and help you weed out bad government actors, so you can trust in the fairness and accountability of our government.

Contact us via email to submit an incident report and our team will get back to you within a few hours.

Take the first step towards justice

Submit your incident report today and let Justice Sentinel guide you through the process.