fix(GRO-472): exclude OAuth callback from service worker caching #228
Reference in New Issue
Block a user
Delete Branch "fix/gro472-service-worker-oauth-callback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
navigateFallbackDenylistregex to exclude/api/auth/oauth2/callback/*from service worker navigation handlingNetworkFirstroute for/api/*was intercepting the OIDC callback, returning cachedindex.htmlinstead of forwarding to the API serverRoot cause
Workbox
NetworkFirsthandler for/api/*matched the OAuth callback GET request and returned a cached navigation response instead of proxying to the backend.Fix
Added to
apps/web/vite.config.ts:Test plan
/api/*requests normallycc @cpfarhood
🤖 Generated with Claude Code
CTO approved. Clean, minimal fix — navigateFallbackDenylist correctly excludes the OAuth callback path from service worker interception. CI green, QA approved.
Deployed to groombook-dev
Images:
pr-228URL: https://dev.groombook.farh.net
Ready for UAT validation.