Skip to content

Instantly share code, notes, and snippets.

View sandengocka's full-sized avatar

Sanden Gocka sandengocka

View GitHub Profile
@sandengocka
sandengocka / local-development-clerk-supabase.md
Last active January 11, 2025 23:30
Bridging External Auth with Supabase Studio's User Impersonation

Bridging External Auth with Supabase User Impersonation

As promised, here’s a write up on how I integrated Clerk authentication with Supabase Studio’s user impersonation feature for local development. I drafted it as a mini “how-to” guide, and while writing it, I realized there might be a simpler solution on Supabase’s end to handle this more gracefully...more on that at the end! 😀

This gist is split into two main sections:

  • Section 1: A guide to bridging Clerk and Supabase Studio impersonation locally
  • Section 2: A proposed enhancement to Supabase Studio's impersonation mode to more elegantly solve the same problem for all environments

Section 1: A Guide to Bridging Clerk and Supabase Studio Impersonation Locally