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
Vite Configuration
TypeScript Support
HankoAuth Vue Component
HankoProfile Vue Component
Vue Router Setup
App.vue with Router
Main.ts Integration
4. OUTDATED PATTERNS TO AVOID
5. AI MODEL VERIFICATION STEPS
Before returning any Hanko-related solution, you must verify:- Environment: Is
VITE_HANKO_API_URLconfigured with VITE_ prefix? - Configuration: Is
isCustomElementconfigured in vite.config.js? - TypeScript: Is
shims-vue.d.tsadded for .vue file support? - Registration: Is
register()called inonMountedfor each component? - Navigation: Is
useRouterfrom vue-router used for redirects? - Events: Are session events handled with
@onSessionCreatedin template? - Composition API: Are components using
<script setup lang="ts">? - Router: Is Vue Router properly configured with views and routes?