Skip to content

docs: after paying, a one-time claim link, never the key - #89

Merged
Bryan Fawcett (bryanfawcett) merged 1 commit into
stagingfrom
claude/licence-onboarding
Oct 14, 2026
Merged

Bryan Fawcett (bryanfawcett) merged 1 commit into
stagingfrom
claude/licence-onboarding

Conversation

@bryanfawcett

Copy link
Copy Markdown
Member

Summary

The extension page's checkout note said "your licence key is emailed to you". The licence server now emails a one-time claim link and never the key (nyuchi/nyuchi-licence-server#45; the extension half is in toddle-enhancement-extension, branch claude/licence-onboarding).

The note now says:

  • the email has a one-time link to the licence, never the key itself;
  • open it in Chrome and click Add it to Chrome, with no key to copy;
  • the link works once, for 72 hours (the server's CLAIM_TTL_S), and an expired link can still be opened to ask for a new one, which goes to the same address;
  • a school licence's link goes to the buyer, who sets it up for every teacher through the Nyuchi console and Chrome policy;
  • once added, the licence is checked on the device, works offline, and follows the Chrome account. This part is unchanged.

There is no separate purchase thank-you page on this site; Buy Me a Coffee shows its own (see the owner steps below). src/data/legal.ts gets a comment fix only.

Tests

  • npm test (Astro build, then vitest, then the CSP check): 7 files, 115 tests pass. That includes the new tests/purchase.test.ts:
    • the note promises a link and never a key by email;
    • it states 72 hours and that a new link can be asked for;
    • it covers Add it to Chrome and the school path.
  • astro check: 0 errors. vp fmt --check and prettier: clean.
  • vp lint: the same 5 warnings as staging, all in scripts/.
  • markdownlint on CHANGELOG.md is clean. The entry is under Unreleased → Changed.

Merge with the server

Merge and release this together with the licence server's claim links (after the extension's 0.12.0 is on the Chrome Web Store). Until then, the current wording is the true one.

Owner steps not in this PR

  • Buy Me a Coffee: update the confirmation or thank-you message on both extras (581737 and 581738) to "check your email for a link to add your licence".
  • Legal pages: when 0.12.0 goes to review, add the claim request to src/data/legal.ts under next ("Exactly what leaves your device"; "Activating a key contacts nothing"). It is left out here because those claims describe the store build (current).

🤖 Generated with Claude Code

https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq


Generated by Claude Code

The checkout note on the extension page said the licence key is emailed.
The licence server now emails a one-time claim link instead (72 hours,
single use): the note says so, how to use it, how to get a new one, and
how a school licence differs. tests/purchase.test.ts holds it to that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
learning Ready Ready Preview Oct 13, 2026 5:41pm UTC

Request Review

@bryanfawcett
Bryan Fawcett (bryanfawcett) marked this pull request as ready for review October 14, 2026 00:50
@bryanfawcett
Bryan Fawcett (bryanfawcett) merged commit 33f54b3 into staging Oct 14, 2026
17 checks passed
@bryanfawcett
Bryan Fawcett (bryanfawcett) deleted the claude/licence-onboarding branch October 14, 2026 00:51
Bryan Fawcett (bryanfawcett) added a commit that referenced this pull request Oct 15, 2026
The licence server still emails the key; claim links ship with extension
0.12.0. Production should describe what buyers get today. Restore #89 when
0.12.0 and the server's claim links go live.


Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq

Co-authored-by: Bryan Fawcett <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 53b6cd1c Deployed Oct 13, 2026 by vercel[bot]
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.

2 participants