amplify-ui icon indicating copy to clipboard operation
amplify-ui copied to clipboard

FR: 2FA Input whitespace is trimmed before submit

Open vasilicekaskinqualitypool opened this issue 1 year ago • 1 comments

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

Feature Request: Trim Whitespace in 2FA Code Input Field

Framework/Platform

React

UI Component

Authenticator

Feature Description

Currently, the input field for the 2FA (Two-Factor Authentication) code does not trim whitespace before submitting the code. This can lead to user frustration if they accidentally include leading or trailing spaces, causing their 2FA code to be rejected even though it is correct.

Please describe a solution you'd like.

Desired Behavior

The input field for the 2FA code should automatically trim any leading or trailing whitespace before submitting the code.

We love contributors! Is this something you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request.
  • [ ] ⚠️ This feature might incur a breaking change.

Hey @vasilicekaskinqualitypool thanks for reporting this issue. We're adding this request to our project roadmap.

esauerbo avatar Jul 30 '24 00:07 esauerbo