From afcdc37b7ab7f6f8fb89bb1445c416e361971ce2 Mon Sep 17 00:00:00 2001 From: Riyan-Mo Date: Tue, 22 Oct 2024 18:49:48 +0530 Subject: [PATCH 1/2] Added authentication error page --- .../[locale]/(marketing)/auth/error/page.tsx | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 frontend/app/[locale]/(marketing)/auth/error/page.tsx diff --git a/frontend/app/[locale]/(marketing)/auth/error/page.tsx b/frontend/app/[locale]/(marketing)/auth/error/page.tsx new file mode 100644 index 00000000..8205bb61 --- /dev/null +++ b/frontend/app/[locale]/(marketing)/auth/error/page.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import { AlertCircle } from 'lucide-react'; +import { Card } from '@/components/ui/card'; + +const AuthErrorPage = () => { + return ( +
+ +
+
+ +
+

Authentication Error

+

+ We're sorry, but there was an error during the authentication process. Please try again or contact support if the issue persists. +

+
+
+

Error Code: AUTH_001 | Time: {new Date().toLocaleTimeString()}

+
+
+
+ ); +}; + +export default AuthErrorPage; From 4dcd3b164442f0b39fed4616e2fabd016a2781d4 Mon Sep 17 00:00:00 2001 From: Riyan-Mo Date: Tue, 22 Oct 2024 19:23:46 +0530 Subject: [PATCH 2/2] Added login and back to home button --- .../app/[locale]/(marketing)/auth/error/page.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/app/[locale]/(marketing)/auth/error/page.tsx b/frontend/app/[locale]/(marketing)/auth/error/page.tsx index 8205bb61..a6ababa1 100644 --- a/frontend/app/[locale]/(marketing)/auth/error/page.tsx +++ b/frontend/app/[locale]/(marketing)/auth/error/page.tsx @@ -1,8 +1,12 @@ +'use client'; import React from 'react'; import { AlertCircle } from 'lucide-react'; import { Card } from '@/components/ui/card'; +import { useRouter } from 'next/navigation'; +import { Button } from '@/components/ui/button'; const AuthErrorPage = () => { + const router = useRouter(); return (
@@ -14,6 +18,14 @@ const AuthErrorPage = () => {

We're sorry, but there was an error during the authentication process. Please try again or contact support if the issue persists.

+
+ + +

Error Code: AUTH_001 | Time: {new Date().toLocaleTimeString()}