diff --git a/public/assets/images/splash-house.png b/public/assets/images/splash-house.png new file mode 100644 index 0000000..9946621 Binary files /dev/null and b/public/assets/images/splash-house.png differ diff --git a/public/assets/images/splash-logo.png b/public/assets/images/splash-logo.png new file mode 100644 index 0000000..4dd93c8 Binary files /dev/null and b/public/assets/images/splash-logo.png differ diff --git a/src/app/logout/page.tsx b/src/app/logout/page.tsx index 4291e9d..8d9cd57 100644 --- a/src/app/logout/page.tsx +++ b/src/app/logout/page.tsx @@ -3,6 +3,7 @@ import { useEffect, useRef } from 'react'; import { clearAuthCookies } from './actions'; import { signOut } from 'next-auth/react'; +import Image from 'next/image'; export default function LogoutPage() { const hasStarted = useRef(false); @@ -18,15 +19,15 @@ export default function LogoutPage() { localStorage.removeItem('refreshToken'); localStorage.removeItem('user'); - await signOut({ redirect: false }) + await signOut({ redirect: false }); // Delete httpOnly cookies via server action (Next.js cookies() API) await clearAuthCookies(); setTimeout(() => { // Redirect to login - window.location.reload() + window.location.reload(); window.location.href = '/login'; - }, 3000) + }, 3000); }; performLogout().catch(() => { @@ -35,16 +36,31 @@ export default function LogoutPage() { }, []); return ( -
- Please wait while we securely log you out... -
++ Signing out... +