aws-amplify / aws-amplify/amplify-ui
Users can enter state where account is `Confirmed` but email User Attribute is `Not Verified`
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 347
- Avg merge
- 18h 29m
- Merged PRs (30d)
- 9
Description
Potential bug based on issue referenced in https://github.com/aws-amplify/amplify-ui/issues/6295
> I'm commenting to clarify one thing because I do believe it could be a similar request.
>
> My issue was filed in V5 which could cause confusion given that a lot of the API and hub events changed since.
>
> I do ask for what they ask for here: https://github.com/aws-amplify/amplify-js/issues/11270#issuecomment-1516828570
>
> One thing @rajleechaudry hasn't clarified, is whether they set the autoSignIn flag to true when calling the `signUp` method. We do this and end up with accounts that are `Confirmed` and have the email User Attribute as `Not verified`. In that case, there is no way for us to trigger the email verification flow in the `Authenticator`.
>
> If we were not to set the autoSignIn flag when calling `signUp`, back in v5, the `Authenticator` will go into the confirm signup flow which on success will set the user as `Confirmed` and email User Attribute as `Verified`.
>
> Meaning, in the `Authenticator`, for unauthenticated users, there is no way to trigger the email User Attribute verification flow if their account is marked as `Confirmed`.
_Originally posted by @ysabri in [#6295](https://github.com/aws-amplify/amplify-ui/issues/6295#issuecomment-2608635041)_
Contributor guide
Research direction
Read the discussion in #6295 and the referenced amplify-js comment, then trace the Authenticator flow around signUp with autoSignIn enabled. Reproduce the state where the account is Confirmed but the email attribute is Not verified; done should include a reachable email-verification flow for unauthenticated users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, react, typescript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100