Skip to content

fix(cli): allow local storage without access token#5587

Closed
avallete wants to merge 1 commit into
developfrom
avallete/fix-storage-local-auth
Closed

fix(cli): allow local storage without access token#5587
avallete wants to merge 1 commit into
developfrom
avallete/fix-storage-local-auth

Conversation

@avallete

@avallete avallete commented Jun 16, 2026

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Bug fix.

What is the current behavior?

supabase storage --local fails before reaching the storage handler when no SUPABASE_ACCESS_TOKEN is configured. The storage command is grouped with Management API commands, so the shared root pre-run prompts for login before the local Storage API client can be selected.

Closes #3455.

What is the new behavior?

Local storage subcommands bypass the Management API login gate when storage is explicitly targeting the local stack. Default and linked storage usage still requires an access token.

The PR also adds command-level coverage for the linked/default storage auth path and the explicit local storage bypass.

Additional context

This is separate from the TypeScript typegen port regression discussed in #5551. Storage is still handled by the legacy Go command path; the TypeScript shim forwards --local, and the auth failure happens in the Go root pre-run.

@avallete avallete marked this pull request as ready for review June 16, 2026 18:03
@avallete avallete requested a review from a team as a code owner June 16, 2026 18:03
@github-actions

Copy link
Copy Markdown

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@586334efcfc71fce5b16a2a1f2ca29a8d5643c27

Preview package for commit 586334e.

@avallete avallete closed this Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

storage --local command requires SUPABASE_ACCESS_TOKEN

1 participant