Skip to content

signInWithWebUI password requirement hints in signup page do not update correctly #3996

@arctop-sk

Description

@arctop-sk

Describe the bug

We are using the following code:

let pluginOptions = AWSAuthWebUISignInOptions(preferPrivateSession: true) let scopes = ["openid", "profile", "email", "aws.cognito.signin.user.admin"] let options = AuthWebUISignInRequest.Options(scopes: scopes, pluginOptions: pluginOptions) let signInResult = try await Amplify.Auth.signInWithWebUI(presentationAnchor: UIApplication.shared.firstWindow, options: options)

When navigating to the sign up page, the fields stating the password requirements are not correctly updating as the password is typed in. For example, entering a number as the last character doesn't update the "require numbers" hint.

It appears as if there is a 1 character lag between the input the user has put in and the input the hints are processing. In the image attached, the filed has the password "a1" entered. as you can tell the "require numbers" hint is still red. It will turn green if I add another character (not another number, any character)

Image

Steps To Reproduce

1. Launch a web sign in page.
2. navigate to the sign up page.
3. enter a password and watch the hints not correctly updating.

You can very easily check with our app:

https://apps.apple.com/us/app/arctop/id6446177823

As opposed to how the same backend renders on the web:

http://developer.arctop.com/

Expected behavior

The hint fields update correctly to reflect the entered password

Amplify Framework Version

2.48.0

Amplify Categories

Auth

Dependency manager

Swift PM

Swift version

5.8 - 6.1

CLI version

13.0

Xcode version

16.3 16E140

Relevant log output

<details>
<summary>Log Messages</summary>


INSERT LOG MESSAGES HERE

</details>

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

18.4 - 18.5

Device

Iphone 14, IPad

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to the Auth categorybugSomething isn't workingfollow upRequires follow up from maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions