From 488f0981504ec7ddd34d2c6c9766ee6f4b2c39ee Mon Sep 17 00:00:00 2001 From: Leanstix Date: Fri, 13 Sep 2024 14:54:22 +0100 Subject: [PATCH] testing to Know the user token --- app/callback/auth/page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/callback/auth/page.js b/app/callback/auth/page.js index 14fc4b6..b36b1b7 100644 --- a/app/callback/auth/page.js +++ b/app/callback/auth/page.js @@ -37,6 +37,7 @@ export default function ValidateToken() { if (!response.ok) throw new Error("Failed to fetch user token"); const data = await response.json(); + console.log(data) const userToken = data?.userToken; // Save the user token as a cookie @@ -48,7 +49,7 @@ export default function ValidateToken() { // Redirect the user after validation setTimeout(() => { router.push("/login"); // Redirect to the homepage or any route - }, 1500); // Delay for user feedback + }, 6000); // Delay for user feedback } catch (error) { alert("Failed to retrieve user token!"); // Notify the user of failure