Add OTP & magic-link extraction test vectors for Slack, Discord, AWS Cognito, and Supabase

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

@onlykushalll is already working on this.

Since Nov 26, 2026.

  • #9 by @onlykushalll — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale

Research direction

Start with tests/otp.test.ts and src/lib/otp.ts to see how existing OTP and magic-link fixtures map to extraction patterns. Add sanitized cases for the listed providers and check that calendar years from 1990 through 2035 remain rejected. The linked open pull request indicates work is already underway; the stated completion checks are npm run typecheck and npm test.

Written by the indexing model from the issue text.

Description

enhancement good first issue help wanted

To improve OTP and magic-link detection accuracy across real-world authentication providers, let's expand our regression suite in tests/otp.test.ts and extraction patterns in src/lib/otp.ts.

Proposed providers to cover
  • Slack workspace confirmation codes (alphanumeric / hyphenated)
  • AWS Cognito & Auth0 verification templates
  • Supabase & Clerk magic sign-in links
  • Discord / Stripe security verification codes
Acceptance criteria
  • Add realistic sanitized fixtures (no real tokens/emails) to tests/otp.test.ts
  • Ensure calendar-year false-positive rejection (1990–2035) stays intact
  • npm run typecheck and npm test pass cleanly
Dominant language
JavaScript
Stars
0
Forks
3
Avg merge
1h 15m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Dicka18/mailgate

All issues in Dicka18/mailgate

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.