Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update withAuth.tsx

Jonathan Summers-Muir35731e2cc6ec
diff --git a/studio/hooks/misc/withAuth.tsx b/studio/hooks/misc/withAuth.tsx
index 1949b763fd4..6d4a54a0e01 100644
--- a/studio/hooks/misc/withAuth.tsx
+++ b/studio/hooks/misc/withAuth.tsx
@@ -108,7 +108,6 @@ export function withAuth<T>(
}
function defaultRedirectTo(ref: string | string[] | undefined) {
- const { basePath } = useRouter()
return IS_PLATFORM ? `/sign-in` : ref !== undefined ? `/project/${ref}` : '/projects'
}