The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Redirect to /sign-in page if the user doesn't have a token and he wandered into a /sign-in-mfa page
Ivan Vasilov27c2b5d88592
diff --git a/studio/components/layouts/SignInLayout/SignInLayout.tsx b/studio/components/layouts/SignInLayout/SignInLayout.tsxindex cea1bea1203..d8907e92cef 100644--- a/studio/components/layouts/SignInLayout/SignInLayout.tsx+++ b/studio/components/layouts/SignInLayout/SignInLayout.tsx@@ -65,6 +65,11 @@ const SignInLayout = ({await queryClient.resetQueries()await pushNext()+ } else {+ // if the user doesn't have a token, he needs to go back to the sign-in page+ const redirectTo = buildPathWithParams('/sign-in')+ router.replace(redirectTo)+ return}}).catch(() => {}) // catch all errors thrown by auth methods