Skip to content

Commit

Permalink
Merge pull request #26 from Leanstix/master
Browse files Browse the repository at this point in the history
test
  • Loading branch information
Leanstix authored Sep 13, 2024
2 parents 31743e5 + 80afa89 commit fe3b039
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/callback/auth/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fe3b039

Please sign in to comment.