Chrome extension: a failed sign-in tells users to start a local dev server
Description
When the extension can't reach /api/extension/auth/start (offline, a blocked network, or an error from the server), the popup's sign-in error reads:
Could not reach Cap extension auth at https://cap.so. Start the local web server with bun run dev:extension and make sure the extension Options Cap URL is https://cap.so. Redirect URI: https://
.chromiumapp.org/. Failed to fetch
The dev-server part only applies to someone running Cap locally; a store user or a self-hoster can't act on it. #1993 shows a self-hoster getting the same message after a 400.
The text comes from checkAuthStartRoute in apps/chrome-extension/src/shared/api.ts, and the popup shows it as the sign-in error.
Reproduction
- Go offline, or block cap.so.
- Open the extension and click Sign in.
I've opened a PR that fixes this; it's linked below.