Skip to content

feat: add luhn PIN generation and validation - #602

Merged
TheVicky1 merged 1 commit into
TheVicky1:mainfrom
sahilthakurr24:feat/luhn-pin-verifier
Oct 13, 2026
Merged

TheVicky1 merged 1 commit into
TheVicky1:mainfrom
sahilthakurr24:feat/luhn-pin-verifier

Conversation

@sahilthakurr24

Copy link
Copy Markdown
Contributor

Summary

  • Added Luhn check digit calculation for 5-digit payloads.
  • Added 6-digit Luhn PIN generation.
  • Added Luhn PIN validation.
  • Added validation for invalid length and non-numeric PINs.

Testing

  • npm test

Closes #580

@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

@sahilthakurr24 is attempting to deploy a commit to the Vicky's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

👋 Welcome to PACT OS, @sahilthakurr24! 🚀

Thank you for taking the time to open your first pull request on PACT! We are thrilled to have you here in our open-source community.


🔍 What Happens Next?

  1. Automated Verification: Our Continuous Integration (CI) workflow is currently verifying:
    • 🔒 Zero-Secret Security Scan
    • 🔗 Markdown Link Integrity
    • 🧹 ESLint Code Quality
    • 🏷️ TypeScript Strict Typecheck
    • 🧪 56-Suite Automated Domain & Security Test Matrix
    • 🏗️ Next.js Production Build
  2. Maintainer Review: A maintainer (@TheVicky1) will review your pull request shortly.
  3. Friendly Iteration: If any adjustments or feedback are needed, we will provide clear, actionable suggestions to help get your PR merged smoothly.

📚 Helpful Quick Links

Thank you for helping make PACT better! Plan. Track. Improve. Repeat. 🏛️✨

@TheVicky1
TheVicky1 merged commit 799e65e into TheVicky1:main Oct 13, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accountability] Add Verification PIN Generator with Luhn Check Digit in src/lib/accountability/pin-verifier.ts

2 participants