Skip to content

The sign-in link

A standing link that signs one test account into the family web app, so an automated accessibility checker can reach the pages behind Sign in. It was made for AccessLint, which never types a password: its own sign-in methods need a password reset or a magic link by email, which the web app did not have. It has both since October 21, 2026 (Signing in by email); once AccessLint's managed inbox is the test account's email, this link can be turned off.

How it works

The link is a plain page address, https://silver.equalentry.com/signin/<secret>.

  1. Cloudflare Pages has no file at that path, so it answers with the web app, which reads the secret before anything else runs and takes it out of the address bar, leaving / (apps/web/src/sign-in-link.ts). The path does reach Cloudflare, so the secret can appear in its request data; for a test account that is accepted. The first form of the link, /#signin=<secret>, still works and keeps the secret in the browser.
  2. The web app sends the secret to POST /auth/link (apps/api/src/routes/auth.ts), which compares it in constant time with the Worker secret SIGN_IN_LINK_SECRET.
  3. On a match, the Worker starts an ordinary 30-day session for the account named by SIGN_IN_LINK_USER (in apps/api/wrangler.jsonc), and the web app opens signed in, as after typing a password. A wrong secret gets "That sign-in link did not work." and the sign-in form.

What keeps it safe

  • One account. The link signs in only access-lint, the Loved One who manages Access Smith's test memory bank and nothing else. It refuses a superadmin and any account without an email (a senior), whatever SIGN_IN_LINK_USER says, so a leaked link never reaches a real family.
  • Off unless both settings exist. With no secret, or one shorter than 32 characters, the route refuses every request. Local development has neither, so the link only ever works in production.
  • Easy to end. Deleting the secret turns the link off; setting a new one changes it.

What it does not protect: anyone holding the link can do what Access Lint can, which is to view and change Access Smith's test memories. AccessLint keeps the link in the flow's steps, so it may show in run screenshots or shared reports.

Turn it on, or change it

The Worker has to be deployed with this code first (pnpm deploy:api, and pnpm deploy:web for the page). Then run this. It makes a new secret, stores it in the Worker, and prints the link once, so the secret is never pasted anywhere:

cd ~/Documents/GitHub/SilverApp/apps/api && secret=$(openssl rand -hex 32) && printf '%s' "$secret" | npx wrangler secret put SIGN_IN_LINK_SECRET --env production && echo "https://silver.equalentry.com/signin/$secret" && unset secret

Running it again replaces the secret, and the old link stops working.

Turn it off

cd ~/Documents/GitHub/SilverApp/apps/api && npx wrangler secret delete SIGN_IN_LINK_SECRET --env production

Set up AccessLint

  1. On AccessLint's Domains page for silver.equalentry.com (add it if AccessLint still has seniorhealth.equalentry.com, the address before October 22, 2026, which redirects there), set Method to None and save: the link does the signing in.
  2. In a flow, make the first step a Go to with the link. Write the steps after it as if signed in; the page opens on Home for Access Smith (on Reminder from October 21 to November 12, 2026, and on Photos before that). A flow written for Reminder needs ?tab=reminder after the link's secret, or a click on Home's Reminder link first.
  3. Run a dry run. The first step's screenshot should show "Access Lint ยท Loved One" and a Sign out button.

Each run starts a new session, so a daily flow keeps about 30 sessions for Access Lint alive at a time; each ends after 30 days.