import { redirect } from 'next/navigation'; import { Alert, AlertDescription, AlertTitle } from '@kit/ui/alert'; import { Button } from '@kit/ui/button'; import { Trans } from '@kit/ui/trans'; interface Params { searchParams: { error: string; }; } function AuthCallbackErrorPage({ searchParams }: Params) { const { error } = searchParams; // if there is no error, redirect the user to the sign-in page if (!error) { redirect('/auth/sign-in'); } return (
); } export default AuthCallbackErrorPage;