aws-amplify / aws-amplify/amplify-ui

[FR] Authenticator - How to initiate confirm sign-in with new password?

Open
#4,996 5 comments 0 reactions 0 assignees View on GitHub
Authenticator feature-request
Dominant language
TypeScript
Stars
1.1k
Forks
347
Avg merge
18h 29m
Merged PRs (30d)
9

Description

### Before creating a new issue, please confirm:

- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-ui/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-ui/discussions).
- [X] I have tried disabling all browser extensions or using a different browser
- [X] I have tried deleting the node_modules folder and reinstalling my dependencies
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-ui/blob/main/CONTRIBUTING.md#bug-reports).

### On which framework/platform are you having an issue?

React

### Which UI component?

Authenticator

### How is your app built?

Vite

### What browsers are you seeing the problem on?

Chrome

### Which region are you seeing the problem in?

_No response_

### Please describe your bug.

When a new user is created in Cognito, an email with a link that has the initial password and the user's email is sent.
An example of the link would be `https://my.webapp/set-password?email=foo@bar.com&password=12345678`

I could not find any documentation or sample that shows how to show the amplify UI for confirm sing-in with new password.

### What's the expected behaviour?

I would like to directly show the user the change password interface and somehow pass the username and password that came from the URL query,m so that the user does not have to enter them manually.

### Help us reproduce the bug!

N/A

### Code Snippet

_No response_

### Console log output

_No response_

### Additional information and screenshots

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Authenticator component's existing React sign-in flow and the Cognito new-password confirmation path described in the issue. Determine whether the requested prefilled username and password behavior is supported or requires a documented interface; done means the supported flow is clear and demonstrated without requiring manual credential re-entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, react, typescript
Domain
authentication, documentation, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.