Skip to main content

2 posts tagged with "Supabase"

View all tags

Bypass Supabase Auth for Playwright E2E Testing Without Login

Β· 4 min read

Encountered this issue while building an AI Agent SaaS platform for a client. Here's the root cause and solution.

TL;DR​

E2E tests shouldn't depend on real OAuth login flows. By detecting localStorage test markers in the useAuth hook, you can inject mock auth state directly and skip Supabase initialization. Also change the Zustand store's loading default to false to prevent AuthGuard from showing an infinite spinner.

Three Pitfalls Integrating Supabase Auth with FastAPI

Β· 4 min read

Encountered this while building a SaaS authentication system for a client β€” recording the root causes and fixes.

TL;DR​

Supabase Auth + FastAPI integration has three common pitfalls: the JWKS path is not the standard one, ES256 signatures need conversion to DER format, and first-time users have no local database record. Complete solutions below.