You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple Supabase client instances with debug code logging sessions in production #60
This runs every time the module is imported - on every page load, logging session data to the console.
Potential for service role key leaks - If supabase-admin.ts is ever imported on the client side (even accidentally), the SUPABASE_SERVICE_ROLE_KEY would be exposed to the browser, giving full database admin access.
Inconsistent session handling - Different parts of the app use different client instances, which may have different cookie/session states.
Fix
Remove the debug getSession() code from supabase.ts
Ensure supabase-admin.ts is only imported in server-side code (use if (typeof window === 'undefined') guard or move to a server-only directory)
Activity