SupabaseS
Supabase3mo ago
lasse

Realtime authentication requires publishable token for remote and JWT token for local connections?

Using Supabase v2.51.0 on macOS.

I create a client with createClient<Database>(supabaseUrl, "sb_publishable_..."):

  • Supabase cloud -- Websocket connection works
  • Local Supabase -- Websocket connection DOES NOT work. -> this ends up sending apitoken=sb_publishable_xxx, local supabase does not seem to accept the publishable key as the apikey
I create a client with createClient<Database>(supabaseUrl, "eyJhbGciOi...<564 char key>"):

  • Supabase cloud - Websocket connection works
  • Local Supabase - Websocket connection works
What am I doing wrong?

(Did some heavy editing of this original message, but can't change the title anymore)
Was this page helpful?