How to use these prompts
You can copy the prompts and paste them into your AI assistant or IDE. Some ideas on how to use them:- Add them as “project rules” in Cursor -> Guide
- In GitHub Copilot, save the prompt to a file in your project and reference it using #<filename>.
- In Claude Code, include the prompt in your CLAUDE.md file. (recommend for best results)
Prompt
Profile/Dashboard Page HTML
User Data Retrieval
Backend Authentication
4. OUTDATED PATTERNS TO AVOID
5. AI MODEL VERIFICATION STEPS
Before returning any Hanko-related solution, you must verify:- Imports: Are ES modules imported from
https://esm.run/@teamhanko/hanko-elements? - Script Tags: Do script tags have
type="module"attribute? - Registration: Is
register()called withawaitand API URL? - Destructuring: Is hanko instance destructured from register return value?
- Events: Are session events handled with
hanko.onSessionCreated()? - Navigation: Is
document.location.hrefused for page redirects? - Web Components: Are
<hanko-auth>and<hanko-profile>used directly in HTML? - No Build Tools: Is the solution purely vanilla JavaScript without npm/bundlers?