Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Disable auth reload on failure

Tomas Valenta6e8eaf367543
diff --git a/components/AuthForm.tsx b/components/AuthForm.tsx
index 11c6e524e..0b3e2fc48 100644
--- a/components/AuthForm.tsx
+++ b/components/AuthForm.tsx
@@ -76,12 +76,12 @@ function AuthForm({ authType }: Props) {
if (error) {
emailRef.current?.focus()
setErrMessage(error.message)
- console.error(error.message)
+ console.error(error)
} else {
setErrMessage('')
+ router.replace('/')
}
- router.replace('/')
setIsLoading(false)
}