We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023501e commit 45a616eCopy full SHA for 45a616e
1 file changed
src/client/app/page.js
@@ -81,10 +81,7 @@ const Home = () => {
81
console.error("Auth0 authentication error:", authError)
82
toast.error("Authentication failed. Please try again.")
83
// 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
- }
+ router.push("/api/auth/login")
88
return
89
}
90
0 commit comments