Skip to main content

2 posts tagged with "Authentication"

View all tags

Chrome Extension Service Worker Can't Read Login Token? Cross-Context Token Sync

Β· 3 min read

TL;DR​

Chrome extension uses a sidepanel as the UI. User logs in, token goes to localStorage. But the Service Worker (background script) has no localStorage β€” calling it throws ReferenceError. Fix: after login, send the token to the Service Worker via chrome.runtime.sendMessage, which writes it to chrome.storage.local. Sidepanel reads localStorage, Service Worker reads chrome.storage.local.

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.