Skip to content

Commit 45a616e

Browse files
committed
fix (auth): resolved api login issue
1 parent 023501e commit 45a616e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/client/app/page.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ const Home = () => {
8181
console.error("Auth0 authentication error:", authError)
8282
toast.error("Authentication failed. Please try again.")
8383
// Redirect to login to re-attempt authentication.
84-
// FIX: Use window.location for full redirect to external Auth0 page
85-
if (typeof window !== "undefined") {
86-
window.location.href = "/api/auth/login"
87-
}
84+
router.push("/api/auth/login")
8885
return
8986
}
9087

0 commit comments

Comments
 (0)