From 3cc41b7b71bb9de422bc67b4a7831e83467b2302 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 26 Feb 2025 01:31:50 +0100 Subject: [PATCH] auth: redirect to auth page when callback page has no token (#454) --- apps/readest-app/src/app/auth/error/page.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/readest-app/src/app/auth/error/page.tsx b/apps/readest-app/src/app/auth/error/page.tsx index a787fa4b..a2dee522 100644 --- a/apps/readest-app/src/app/auth/error/page.tsx +++ b/apps/readest-app/src/app/auth/error/page.tsx @@ -11,7 +11,7 @@ export default function AuthErrorPage() { useEffect(() => { const timer = setTimeout(() => { router.push('/auth'); - }, 5000); + }, 3000); return () => clearTimeout(timer); }, [router]); @@ -20,10 +20,6 @@ export default function AuthErrorPage() {
-

Authentication Error

-

- Something went wrong during the authentication process. Please try again. -

You will be redirected to the login page shortly...