Skip to content

feat: add alphanumeric OTPs#2455

Open
staaldraad wants to merge 1 commit intomasterfrom
feat/alphanumeric-otp
Open

feat: add alphanumeric OTPs#2455
staaldraad wants to merge 1 commit intomasterfrom
feat/alphanumeric-otp

Conversation

@staaldraad
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

feature

What is the current behavior?

OTPs are numeric. Typically 6 digits but configurable.

What is the new behavior?

OTPs can be alphanumeric, expanding the keyspace from 10 to 36 characters. Making a 6 character alphanumeric OTP roughly equivalent to a 10 character digit only OTP (31 bits vs 36 bits).

6 digit OTP: 10^6 --> 1,000,000
6 alphanumeric OTP: 36^6 --> 2,176,782,336

Additional context

Technically wouldn't be a breaking change but added a new config option to account for instances where client-side validation only expects digits. Or some other customer code-flows that expect OTPs to only be digits.

@staaldraad staaldraad requested a review from a team as a code owner March 29, 2026 12:04
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.

1 participant