Add OTP & magic-link extraction test vectors for Slack, Discord, AWS Cognito, and Supabase
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- authentication, testing
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
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 typecheckandnpm testpass cleanly
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 4
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Dicka18/mailgate
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 75/100
All issues in Dicka18/mailgate
Similar issues
-
Add a languageOpengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement frontend priority:P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
geolens-io/geolens#4153 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
xdelmo/Portfolio-minimal#667 ·
Maintainers usually reply within 1 day
-
enhancement javascript
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tamadalab/welfare-time#165 ·
Maintainers usually reply within 1 day
-
bug react-native
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PostHog/posthog-js#5908 ·
Maintainers usually reply within 2 days