The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
bug: fix sign-in when returnTo=sign-in (#24893)
Simon Ha203d9e4c1eeb
diff --git a/apps/studio/components/interfaces/SignIn/SignInForm.tsx b/apps/studio/components/interfaces/SignIn/SignInForm.tsxindex d1f424d6bda..f0d5bf56358 100644--- a/apps/studio/components/interfaces/SignIn/SignInForm.tsx+++ b/apps/studio/components/interfaces/SignIn/SignInForm.tsx@@ -52,8 +52,9 @@ const SignInForm = () => {toast.success(`Signed in successfully!`, { id: toastId })await queryClient.resetQueries()-- router.push(getReturnToPath())+ const returnTo = getReturnToPath()+ // since we're already on the /sign-in page, prevent redirect loops+ router.push(returnTo === '/sign-in' ? '/projects' : returnTo)} catch (error) {toast.error((error as AuthError).message, { id: toastId })}