Skip to content

Drop the token note from template connection pages - #432

Merged
tnkuehne merged 1 commit into
mainfrom
plain-disconnect-note
Nov 26, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
plain-disconnect-note

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The connected account on a template's page ended with "Disconnecting deletes the saved tokens from this app. To revoke access, also remove it in your Google account settings." Most people who connect an account don't know what tokens are, and the note suggests a second cleanup step they don't need: Disconnect already removes the app's access.

Changes

  • OAuth templates (templates/*/src/page.ts): the note below the account is gone. The Disconnect button is enough on its own.
  • Garmin Connect: the person created the key and it stays valid at Garmin, so the note stays, in plain words: "Disconnecting removes your key from this app. The key keeps working until you delete it on Garmin Connect." It shows only while the key works; when Garmin rejects it, the alert already says it expired or was deleted.

Screenshots

Before After
Gmail before Gmail after
Garmin Connect before Garmin Connect after

A rejected key, without the note:

Verification

  • Gmail, Strava, Garmin Connect, Qonto, WHOOP and GitHub template tests pass; formatting is clean.
  • Rendered with synthetic fixtures at 1280 px, including Garmin Connect with a rejected key.

Disconnecting already removes the app's access, so the OAuth pages no
longer explain tokens and provider settings. Garmin Connect says in
plain words that the key keeps working until it is deleted on Garmin.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs fb707d9 Nov 26 2026, 05:57 PM

<div class="card row"><div class="status">${key.status === "connected" ? '<span class="dot" aria-hidden="true"></span>' : ""}<div><strong>${escapeHtml((key.status === "connected" && key.displayName) || "Garmin account")}</strong><p class="muted small">${key.status === "connected" ? `Connected with the key saved on ${day(key.savedAt)}` : `The key saved on ${day(key.savedAt)} no longer works`}</p></div></div>
<form method="post" action="/disconnect"><button class="ghost">Disconnect</button></form></div>
<p class="muted small note">Disconnecting deletes the saved key from this app. To revoke the key itself, delete it on Garmin Connect.</p></section>`;
<p class="muted small note">Disconnecting removes your key from this app. The key keeps working until you delete it on Garmin Connect.</p></section>`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Expired keys sound usable

The new sentence also appears when key.status === "rejected". Those users see both “It expired or was deleted” and “The key keeps working until you delete it,” which contradict each other. Say that Disconnect does not delete the key on Garmin Connect, without promising that the key still works.

Suggested change
<p class="muted small note">Disconnecting removes your key from this app. The key keeps working until you delete it on Garmin Connect.</p></section>`;
<p class="muted small note">Disconnecting removes your key from this app. It does not delete the key on Garmin Connect.</p></section>`;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed: the note now shows only while the key works, so a rejected key shows only the alert.

@tnkuehne
tnkuehne merged commit 547a27c into main Nov 26, 2026
11 of 12 checks passed
@tnkuehne
tnkuehne deleted the plain-disconnect-note branch November 26, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant