c/backend › command
0votes

Instant Email Verification Link

PromptLow risk
submitted by CommandVault editors to c/backend · 7 uses

Verify new accounts seamlessly

Prompt · 2 variables
Add email verification to sign-up.

Stack: {{stack}}
Until they verify, users may: {{goal}}

Requirements:
1. On sign-up, send a single-use, signed verification link that expires after 24 hours. Store only a hash of the token.
2. Enforce the restriction above on the server, not just in the UI.
3. Let people resend the link (rate-limited) and show a clear message when a link is expired or already used.
4. Clicking the link marks email_verified = true and logs them in or sends them to log in, depending on how our auth works.
5. Don't reveal whether an email address has an account on the resend form.

Tell me which files change, what the email says, and how to test the whole flow locally, including an expired link.
e.g. 'nothing until verified' or 'browse but not post'
Framework, language and versions, e.g. Next.js 16 App Router + TypeScript
0 commentsreport

Try it here

Fill in {{goal}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

How to use this prompt

  1. Fill in the 2 blanks above. The more specific you are, the better the answer.
  2. Copy it and paste it into ChatGPT, Claude, Gemini, Cursor or Codex, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  • {{goal}} e.g. 'nothing until verified' or 'browse but not post'
  • {{stack}} Framework, language and versions, e.g. Next.js 16 App Router + TypeScript

More from c/backend

See all of c/backend →
0 comments

Log in to join the discussion.