Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix encoding; Disable reset

Tomas Valenta012201791c2a
diff --git a/apps/docs/src/components/AuthForm.tsx b/apps/docs/src/components/AuthForm.tsx
index b6f480c08..f13dcf91d 100644
--- a/apps/docs/src/components/AuthForm.tsx
+++ b/apps/docs/src/components/AuthForm.tsx
@@ -42,9 +42,8 @@ function AuthForm() {
}
}, [user.user, router, redirectTo])
-
return (
- <div className="mx-auto flex flex-1 w-full justify-center items-center flex-col">
+ <div className="mx-auto flex flex-1 w-full justify-center items-center flex-col pt-4">
<h1 className="text-4xl font-bold mt-8 mb-4">
{view === 'sign_in' && 'Sign in to E2B'}
{view === 'sign_up' && 'Sign up to E2B'}
@@ -76,7 +75,6 @@ function AuthForm() {
providerScopes={{
github: 'email',
}}
-
redirectTo={redirectTo}
/>
</div>
@@ -93,14 +91,14 @@ function AuthForm() {
</div>
}
- {view === 'sign_in' &&
+ {/* {view === 'sign_in' &&
<Button
onClick={() => setView('forgotten_password')}
variant="textSubtle"
>
Forgot your password?
</Button>
- }
+ } */}
{view === 'sign_in' &&
<div className="flex items-center justify-start gap-2">
diff --git a/apps/docs/src/styles/tailwind.css b/apps/docs/src/styles/tailwind.css
index 598d6137f..3ab3aa4cc 100644
--- a/apps/docs/src/styles/tailwind.css
+++ b/apps/docs/src/styles/tailwind.css
@@ -56,6 +56,10 @@
@apply rounded-full bg-zinc-800 border-zinc-700 hover:border-zinc-500 transition hover:bg-zinc-800 text-sm text-zinc-100;
}
+ .supabase-auth-ui_ui-message {
+ @apply text-sm text-zinc-500;
+ }
+
.supabase-auth-ui_ui-divider.auth-divider {
@apply border-zinc-900/5;
}
diff --git a/apps/docs/src/utils/useSignIn.tsx b/apps/docs/src/utils/useSignIn.tsx
index 8b1865b18..a19560679 100644
--- a/apps/docs/src/utils/useSignIn.tsx
+++ b/apps/docs/src/utils/useSignIn.tsx
@@ -23,7 +23,7 @@ export function useSignIn() {
if (opts?.redirectToCurrentUrl !== false) {
const url = typeof window !== 'undefined' ? window.location.href : undefined
- target += 'redirect_to=' + encodeURI(url)
+ target += 'redirect_to=' + encodeURIComponent(url)
}
if (opts?.redirectToCurrentUrl !== false && opts?.view) {
@@ -31,7 +31,7 @@ export function useSignIn() {
}
if (opts?.view) {
- target += 'view=' + encodeURI(opts.view)
+ target += 'view=' + encodeURIComponent(opts.view)
}
router.push(target, { scroll: true })