supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.08k stars 209 forks source link

Supabase CLI: Logout Does Not Restrict Access to Previously Linked Projects #2594

Closed mmooccii closed 2 months ago

mmooccii commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

After logging out from a Supabase CLI account and logging in with a different account, it is still possible to affect the projects linked by the previous account.

To Reproduce Steps to reproduce the behavior:

  1. Run supabase login with Account A.
  2. Use supabase link to link a project.
  3. Execute supabase logout to log out.
  4. Run supabase login with Account B.
  5. Try to perform operations on the project linked by Account A.
  6. See the issue where operations on the project linked by Account A are still possible.

Expected behavior When logging in with Account B after logging out from Account A, operations on projects linked by Account A should be restricted.

System information

Additional context If applicable, add any other context about the problem here.

avallete commented 2 months ago

I will work on this.