Skip to content

feat(twofactor): add HOTP-based two-factor authentication - #102

Merged
AbdulmujibOladayo merged 1 commit into
Breedar:mainfrom
wumibals:feat/two-factor-auth
Sep 11, 2026
Merged

feat(twofactor): add HOTP-based two-factor authentication#102
AbdulmujibOladayo merged 1 commit into
Breedar:mainfrom
wumibals:feat/two-factor-auth

Conversation

@wumibals

Copy link
Copy Markdown
Contributor

Adds a twofactor package implementing HOTP one-time codes (RFC 4226) for two-factor account verification, with a counter-window aware Verify helper.

Closes #55

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

@wumibals is attempting to deploy a commit to the abdulmujiboladayo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@AbdulmujibOladayo AbdulmujibOladayo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HOTP implementation follows RFC 4226 correctly (dynamic truncation, 6-digit mod). Verify()'s forward-window check is a sensible way to tolerate counter drift between client/server. LGTM.

@AbdulmujibOladayo
AbdulmujibOladayo merged commit 1520446 into Breedar:main Sep 11, 2026
2 of 3 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.

Add two-factor authentication

2 participants