Social accounts: X's 127.0.0.1 callback, "Get it" links, save in place; cart logo

- X refuses "localhost" in callback URLs, so its sign-in now uses
  http://127.0.0.1:8470/auth/x/callback (shown on the page and sent to X);
  LinkedIn and Reddit keep localhost.
- Every key, on Social accounts and the AI tab, has a "Get it" link to the
  service's page for it (opens a new tab) and says where on that page to
  find it. Addresses checked on 2026-11-21.
- Each network's card saves its own keys in place (htmx swaps the card),
  saying "Saved." and enabling Connect when ready; no reload. Without
  JavaScript it still saves and reloads.
- The shopping-cart image is the logo in the sidebar, the tab icon (PNG,
  and a multi-size favicon.ico at /favicon.ico) and the touch icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 11:01:01 -07:00
co-authored by Claude Opus 5.5
parent d9b1467365
commit 1f181ed554
10 changed files with 154 additions and 47 deletions
+2 -2
View File
@@ -123,9 +123,9 @@ Reddit's Data API terms need Reddit's approval for commercial use. Supermarket i
## Signing in to X, LinkedIn and Reddit
Sign-ins come back to Supermarket at `http://localhost:8470/auth/<provider>/callback`. Register these callback URLs in your apps:
Sign-ins come back to Supermarket at `http://localhost:8470/auth/<provider>/callback` (X: `127.0.0.1` instead of `localhost`). Register these callback URLs in your apps:
- X developer portal, your app's *User authentication settings*: `http://localhost:8470/auth/x/callback`
- X developer portal, your app's *User authentication settings*: `http://127.0.0.1:8470/auth/x/callback`. X refuses `localhost` in callback URLs; `127.0.0.1` is the same machine, and Supermarket sends X this address.
- LinkedIn developer portal, your app's *Auth* tab: `http://localhost:8470/auth/linkedin/callback`
- Reddit, [reddit.com/prefs/apps](https://www.reddit.com/prefs/apps): create a **web app** with the redirect URI `http://localhost:8470/auth/reddit/callback`, and put its client ID and secret under Settings → Social accounts