Files
supabase/apps/studio/components/interfaces
Joshen Lim 4ce89b7090 Remove unnecessary guard in CLI login (#53707)
## Context

Resolves FE-5165

The CLI login screen could get stuck on the loading state and never
navigate to the device code view. Was happening due to two guards that
interact badly:
- `startedForSessionIdRef` stops the effect from sending a second POST
for the same `session_id`.
- An `isActive` flag, set to `false` in the effect cleanup, made the
POST handler ignore its result once the effect had been cleaned up.

It's seemingly a race condition issue as in my case I only ran into this
problem locally, but not on staging as `isActive` was getting flipped to
`false` and hence the UI never navigates to show the device code

Opting to remove the `isActive` guard and solely rely on
`startedForSessionIdRef.current` since the latter should be able to
handle this logic by itself

## To test
This one can only be tested locally i reckon
- [ ] Verify that you can login via CLI via `supabase login --profile
supabase-local`
2026-11-20 14:26:31 +07:00
..
2026-09-11 12:17:49 +08:00