AlexGalhardo

How To Add An Email Token Flow — Communication skill for Claude Code

Communication community

How to add an email-based, one-time-token flow.

How to install How To Add An Email Token Flow

Installs to ~/.claude/skills/alexgalhardo-adonisjs-v7-claudecode-todo-microsaas-how-to-add-an-email-token-flow/SKILL.md

Terminal
mkdir -p ~/.claude/skills/alexgalhardo-adonisjs-v7-claudecode-todo-microsaas-how-to-add-an-email-token-flow && curl -fsSL https://raw.githubusercontent.com/AlexGalhardo/adonisjs-v7-claudecode-todo-microsaaS/HEAD/.claude/skills/how-to-add-an-email-token-flow.md -o ~/.claude/skills/alexgalhardo-adonisjs-v7-claudecode-todo-microsaas-how-to-add-an-email-token-flow/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What How To Add An Email Token Flow does

How to add an email-based, one-time-token flow

Reference: password reset and magic link both use this exact pattern (see `app/controllers/password_resets_controller.ts` and `app/controllers/magic_links_controller.ts`). Reach for it any time a flow needs "email a link, click it once, it expires."

1. Reuse the shared `auth_tokens` table, don't add a new one

`database/migrations/*_create_auth_tokens_table.ts` already has `user_id`, `type` (discriminator column, extend the enum for a new flo

Alternatives in Communication

Full documentation available on GitHub

View Source Repository