The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix wrong logic
Joshen Limd1971db1dcba
diff --git a/studio/lib/auth.tsx b/studio/lib/auth.tsxindex 136282ad3d6..902be2efd73 100644--- a/studio/lib/auth.tsx+++ b/studio/lib/auth.tsx@@ -139,13 +139,13 @@ export const AuthProvider = ({ children }: PropsWithChildren<AuthProviderProps>)const value = useMemo(() => {if (IS_PLATFORM) {- return { session: DEFAULT_SESSION, isLoading: false, refreshSession } as const- } else {if (session) {return { session, isLoading: false, refreshSession } as const} else {return { session: null, isLoading: isLoading, refreshSession } as const}+ } else {+ return { session: DEFAULT_SESSION, isLoading: false, refreshSession } as const}}, [session, isLoading, refreshSession])